stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r609466 - in /incubator/stdcxx/branches/4.2.x: include/ansi/cstdio tests/regress/27.cstdio.stdcxx-195.cpp
Date Sun, 06 Jan 2008 23:18:57 GMT
Author: sebor
Date: Sun Jan  6 15:18:56 2008
New Revision: 609466

URL: http://svn.apache.org/viewvc?rev=609466&view=rev
Log:
2008-01-06  Martin Sebor  <sebor@roguewave.com>

	Merged revs 608712 and 608713 from trunk:

	2008-01-03 Martin Sebor <sebor@roguewave.com>
	
	STDCXX-195
	* include/ansi/cstdio [_RWSTD_STRICT_ANSI] (fpos_t, remove, rename,
	tmpfile, tmpnam, fclose, fflush, fopen, freopen, setbuf, setvbuf,
	fprintf, fscanf, printf, scanf, sprintf, sscanf, vfprintf, vprintf,
	vsprintf, fgetc, fgets, fputc, fputs, getc, getchar, gets, putc,
	putchar, puts, ungetc, fread, fwrite, fgetpos, fseek, fsetpos, ftell,
	rewind, clearerr, feof, ferror, perror): Undefined shadow macros in
	strict mode (only).

	2008-01-03 Martin Sebor <sebor@roguewave.com>

	* tests/regress/27.cstdio.stdcxx-195.cpp: New regression test for
	STDCXX-195.

Added:
    incubator/stdcxx/branches/4.2.x/tests/regress/27.cstdio.stdcxx-195.cpp
      - copied unchanged from r608713, incubator/stdcxx/trunk/tests/regress/27.cstdio.stdcxx-195.cpp
Modified:
    incubator/stdcxx/branches/4.2.x/include/ansi/cstdio

Modified: incubator/stdcxx/branches/4.2.x/include/ansi/cstdio
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/include/ansi/cstdio?rev=609466&r1=609465&r2=609466&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/include/ansi/cstdio (original)
+++ incubator/stdcxx/branches/4.2.x/include/ansi/cstdio Sun Jan  6 15:18:56 2008
@@ -23,7 +23,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2007 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -256,7 +256,55 @@
 
 }   // std
 
-#endif   // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
+
+#ifdef _RWSTD_STRICT_ANSI
+// undefine shadow macros in strict mode
+#  undef fpos_t
+#  undef remove
+#  undef rename
+#  undef tmpfile
+#  undef tmpnam
+#  undef fclose
+#  undef fflush
+#  undef fopen
+#  undef freopen
+#  undef setbuf
+#  undef setvbuf
+#  undef fprintf
+#  undef fscanf
+#  undef printf
+#  undef scanf
+#  undef sprintf
+#  undef sscanf
+#  undef vfprintf
+#  undef vprintf
+#  undef vsprintf
+#  undef fgetc
+#  undef fgets
+#  undef fputc
+#  undef fputs
+#  undef getc
+#  undef getchar
+#  undef gets
+#  undef putc
+#  undef putchar
+#  undef puts
+#  undef ungetc
+#  undef fread
+#  undef fwrite
+#  undef fgetpos
+#  undef fseek
+#  undef fsetpos
+#  undef ftell
+#  undef rewind
+#  undef clearerr
+#  undef feof
+#  undef ferror
+#  undef perror
+#endif
+
+
+#endif   // !_NO_NAMESPACE && !__NO_HONOR_STD && !_NO_USING_LIBC_IN_STD
 
 #endif   // _RWSTD_CSTDIO_INCLUDED
 



Mime
View raw message