Entry point of standalone programs is now called init_ECL_PROGRAM().

This commit is contained in:
jgarcia 2006-10-22 16:22:04 +00:00
parent 54f460ceaf
commit fdf09f5850
2 changed files with 6 additions and 1 deletions

View file

@ -102,6 +102,11 @@ ECL 1.0:
- Variable EXT:*HELP-MESSAGE* and EXT:+DEFAULT-COMMAND-ARG-RULES+ exported.
- C:BUILD-PROGRAM now uses a unique prefix for the initialization function,
init_ECL_PROGRAM, to avoid collisions when both the program and a component
have the same name:
(C:BUILD-PROGRAM "ls" :lisp-files '("ls.o"))
* Contributed code:
- New examples: cmdline/ls.lsp

View file

@ -292,7 +292,7 @@ static cl_object VV[VM];
(when (or (symbolp output-name) (stringp output-name))
(setf output-name (compile-file-pathname output-name :type :program)))
(unless init-name
(setf init-name (init-function-name (pathname-name output-name) nil)))
(setf init-name (init-function-name "ECL_PROGRAM" nil)))
(format c-file +lisp-program-init+ init-name "" shared-data-file
submodules "")
(format c-file #+:win32 (ecase system (:console +lisp-program-main+)