This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] - Fix ancient typo in i386-interix.h


Some time ago, a fix was made in cygwin.h and win32.h to define
the STRIP_NAME_ENCODING macro.  For Interix, the change was incompletely
applied.  This change makes i386-interix.h match the other two exactly.


Changelog:

Nov 4 1999  Donn Terry (donnte@microsoft.com)
	* i386-interix.h (STRIP_NAME_ENCODING): declare _new_name similarly
	to cygwin.h and win32.h.

diff gcc/config/i386/i386-interix.h.orig2 gcc/config/i386/i386-interix.h
diff include/ansidecl.h include.junk/ansidecl.h
--- gcc/config/i386/i386-interix.h.orig2	Thu Nov  4 09:01:56 1999
+++ gcc/config/i386/i386-interix.h	Thu Nov  4 09:02:21 1999
@@ -483,7 +483,7 @@ do {
\
   if (*_p == '@')							\
     {									\
       int _len = _p - _name;						\
-      _new_name = (char *) alloca (_len + 1);				\
+      char *_new_name = (char *) alloca (_len + 1);			\
       strncpy (_new_name, _name, _len);
\
       _new_name[_len] = '\0';						\
       (VAR) = _new_name;						\

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]