Mercurial > hg > xemacs-beta
diff src/emacs.c @ 4458:d9b9b5f90386
Provide SHEBANG_PROGNAME on Win32; correct a bug with it and string concat'ing
nt/ChangeLog addition:
2008-05-13 Aidan Kehoe <kehoea@parhasard.net>
* xemacs.mak (PROGRAM_DEFINES):
Provide SHEBANG_PROGNAME on Win32 too.
src/ChangeLog addition:
2008-05-13 Aidan Kehoe <kehoea@parhasard.net>
* emacs.c (SHEBANG_EXE_PROGNAME_LENGTH):
Use WEXTSTRING separately on the two concatenated strings,
avoiding an error on Win32.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Tue, 13 May 2008 20:16:53 +0200 |
parents | ac6231e0c1df |
children | e34711681f30 |
line wrap: on
line diff
--- a/src/emacs.c Tue May 13 20:11:51 2008 +0200 +++ b/src/emacs.c Tue May 13 20:16:53 2008 +0200 @@ -958,7 +958,7 @@ #define SHEBANG_PROGNAME_LENGTH \ (int)((sizeof (WEXTSTRING (SHEBANG_PROGNAME)) - sizeof (WEXTSTRING ("")))) #define SHEBANG_EXE_PROGNAME_LENGTH \ - (int)(sizeof (WEXTSTRING (SHEBANG_PROGNAME ".exe")) \ + (int)(sizeof (WEXTSTRING (SHEBANG_PROGNAME) WEXTSTRING(".exe")) \ - sizeof (WEXTSTRING (""))) {