comparison src/emacs.c @ 4973:3bf1b0f0c391

fix compile errors -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-02-04 Ben Wing <ben@xemacs.org> * emacs.c (SHEBANG_EXE_PROGNAME_LENGTH): * emacs.c (main_1): Restore old definition of SHEBANG_EXE_PROGNAME_LENGTH; not possible to ANSI-concatenate wide and narrow strings. * print.c (write_msg_istring): * print.c (write_msg_cistring): * print.c (write_msg_ascstring): Can't return a value in a void-declared function.
author Ben Wing <ben@xemacs.org>
date Thu, 04 Feb 2010 18:27:39 -0600
parents cbe181529c34
children 2bf7c51d7101
comparison
equal deleted inserted replaced
4972:c448f4c38d65 4973:3bf1b0f0c391
935 #endif 935 #endif
936 936
937 #define SHEBANG_PROGNAME_LENGTH \ 937 #define SHEBANG_PROGNAME_LENGTH \
938 (int)((sizeof (WEXTSTRING (SHEBANG_PROGNAME)) - sizeof (WEXTSTRING ("")))) 938 (int)((sizeof (WEXTSTRING (SHEBANG_PROGNAME)) - sizeof (WEXTSTRING (""))))
939 #define SHEBANG_EXE_PROGNAME_LENGTH \ 939 #define SHEBANG_EXE_PROGNAME_LENGTH \
940 (int)(sizeof (WEXTSTRING (SHEBANG_PROGNAME ".exe")) \ 940 (int)(sizeof (WEXTSTRING (SHEBANG_PROGNAME) WEXTSTRING (".exe")) \
941 - sizeof (WEXTSTRING (""))) 941 - sizeof (WEXTSTRING ("")))
942 942
943 { 943 {
944 int progname_len = wext_strlen (argv[0]); 944 int progname_len = wext_strlen (argv[0]);
945 if (progname_len >= SHEBANG_PROGNAME_LENGTH) 945 if (progname_len >= SHEBANG_PROGNAME_LENGTH)