stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r366901 - /incubator/stdcxx/trunk/etc/config/src/SIZE_T.cpp
Date Sat, 07 Jan 2006 20:08:27 GMT
Author: sebor
Date: Sat Jan  7 12:08:24 2006
New Revision: 366901

URL: http://svn.apache.org/viewcvs?rev=366901&view=rev
Log:
2006-01-07  Martin Sebor  <sebor@roguewave.com>

	STDCXX-95
	* SIZE_T.cpp: Defined _RWSTD_EOF and _RWSTD_WEOF to -1 even when
	the corresponding libc macros are not #defined.

Modified:
    incubator/stdcxx/trunk/etc/config/src/SIZE_T.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/SIZE_T.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/SIZE_T.cpp?rev=366901&r1=366900&r2=366901&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/SIZE_T.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/SIZE_T.cpp Sat Jan  7 12:08:24 2006
@@ -77,12 +77,22 @@
 #if defined (EOF)
     printf ("#define _RWSTD_EOF %d\n", EOF);
 #else
+    // define _RWSTD_EOF to the usual value even if WEOF is not #defined
+    // to avoid having to #ifdef around wchar_t code that needs the macro
+    printf ("#define _RWSTD_EOF %d\n", -1);
+    // also #define _RWSTD_NO_EOF to make it possible to determine
+    // whether EOF is or isn't defined in libc headers
     printf ("#define _RWSTD_NO_EOF\n");
 #endif   // EOF
 
 #if defined (WEOF)
     printf ("#define _RWSTD_WEOF %d\n", WEOF);
 #else
+    // define _RWSTD_WEOF to the usual value even if WEOF is not #defined
+    // to avoid having to #ifdef around wchar_t code that needs the macro
+    printf ("#define _RWSTD_WEOF %d   /* best guess */\n", -1);
+    // also #define _RWSTD_NO_WEOF to make it possible to determine
+    // whether WEOF is or isn't defined in libc headers
     printf ("#define _RWSTD_NO_WEOF\n");
 #endif   // WEOF
 



Mime
View raw message