delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/30/11:52:33

Message-ID: <3A4E20DA.71848665@softhome.net>
Date: Sat, 30 Dec 2000 18:52:26 +0100
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: PATCH: clarify relationships between GCC / DJGPP headers
Reply-To: djgpp-workers AT delorie DOT com

I think following minor comments won't hurt, so I'll
commit them shorty, unless somebody objects.

Laurynas

Index: djgpp/include/stdarg.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/stdarg.h,v
retrieving revision 1.6
diff -u -r1.6 stdarg.h
--- stdarg.h	2000/12/05 14:05:53	1.6
+++ stdarg.h	2000/12/30 16:50:44
@@ -21,7 +21,9 @@
 #define _VA_LIST
 #endif
 
-/* New va_list builtins from GCC 2.96 or later */
+/* For GCC 2.96 or later we use its builtin va_list                        */
+/* In most cases these definitions won't be used, because headers provided */
+/* by GCC hide them. But we can DTRT if GCC headers are missing.           */
 #if ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)) || (__GNUC__ >= 3)
 
 #define va_arg                  __builtin_va_arg
Index: djgpp/include/varargs.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/varargs.h,v
retrieving revision 1.4
diff -u -r1.4 varargs.h
--- varargs.h	2000/12/05 14:05:53	1.4
+++ varargs.h	2000/12/30 16:50:44
@@ -20,7 +20,9 @@
 #define _VA_LIST
 #endif
 
-/* For GCC 2.96 or later we use its builtin va_list */
+/* For GCC 2.96 or later we use its builtin va_list                        */
+/* In most cases these definitions won't be used, because headers provided */
+/* by GCC hide them. But we can DTRT if GCC headers are missing.           */
 #if ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)) || (__GNUC__ >= 3)
 
 #define va_alist     __builtin_va_alist
Index: djgpp/include/sys/djtypes.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/sys/djtypes.h,v
retrieving revision 1.7
diff -u -r1.7 djtypes.h
--- djtypes.h	2000/06/20 20:51:11	1.7
+++ djtypes.h	2000/12/30 16:50:45
@@ -15,7 +15,9 @@
 #define __DJ_time_t	typedef unsigned int time_t;
 #define __DJ_uid_t	typedef int uid_t;
 
-/* Under GCC 2.96 or later, we use its builtin va_list management.  */
+/* For GCC 2.96 or later we use its builtin va_list.                       */
+/* In most cases these definitions won't be used, because headers provided */
+/* by GCC hide them. But we can DTRT if GCC headers are missing.           */
 #if ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96)) || (__GNUC__ >= 3)
 #define __DJ_va_list    typedef __builtin_va_list va_list;
 #else

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019