[uClibc-cvs] uClibc/libc/sysdeps/linux/common/bits uClibc_stdio.h, 1.17, 1.18

Manuel Novoa III mjn3 at uclibc.org
Fri May 7 10:19:17 UTC 2004


Update of /var/cvs/uClibc/libc/sysdeps/linux/common/bits
In directory nail:/tmp/cvs-serv16796/libc/sysdeps/linux/common/bits

Modified Files:
	uClibc_stdio.h 
Log Message:
Fix a couple of issues in configurations I hadn't tested.


Index: uClibc_stdio.h
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/bits/uClibc_stdio.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- a/uClibc_stdio.h	14 Apr 2004 16:21:27 -0000	1.17
+++ b/uClibc_stdio.h	7 May 2004 10:19:14 -0000	1.18
@@ -1,30 +1,10 @@
-/*  Copyright (C) 2002     Manuel Novoa III
- *  Header for my stdio library for linux and (soon) elks.
- *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Library General Public
- *  License as published by the Free Software Foundation; either
- *  version 2 of the License, or (at your option) any later version.
+/* Copyright (C) 2002-2004   Manuel Novoa III    <mjn3 at codepoet.org>
  *
- *  This library is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- *  Library General Public License for more details.
+ * GNU Library General Public License (LGPL) version 2 or later.
  *
- *  You should have received a copy of the GNU Library General Public
- *  License along with this library; if not, write to the Free
- *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
  */
 
-/*  ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION!
- *
- *  This code is currently under development.  Also, I plan to port
- *  it to elks which is a 16-bit environment with a fairly limited
- *  compiler.  Therefore, please refrain from modifying this code
- *  and, instead, pass any bug-fixes, etc. to me.  Thanks.  Manuel
- *
- *  ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION! */
-
 #ifndef _STDIO_H
 #error Always include <stdio.h> rather than <bits/uClibc_stdio.h>
 #endif
@@ -410,11 +390,13 @@
 /* First define the default definitions.  They overriden below as necessary. */
 #define __FGETC_UNLOCKED(__stream)		(__fgetc_unlocked)((__stream))
 #define __FGETC(__stream)				(fgetc)((__stream))
+#define __GETC_UNLOCKED_MACRO(__stream)	(__fgetc_unlocked)((__stream))
 #define __GETC_UNLOCKED(__stream)		(__fgetc_unlocked)((__stream))
 #define __GETC(__stream)				(fgetc)((__stream))
 
 #define __FPUTC_UNLOCKED(__c, __stream)	(__fputc_unlocked)((__c),(__stream))
 #define __FPUTC(__c, __stream)			(fputc)((__c),(__stream))
+#define __PUTC_UNLOCKED_MACRO(__c, __stream) (__fputc_unlocked)((__c),(__stream))
 #define __PUTC_UNLOCKED(__c, __stream)	(__fputc_unlocked)((__c),(__stream))
 #define __PUTC(__c, __stream)			(fputc)((__c),(__stream))
 
@@ -423,6 +405,7 @@
 
 extern FILE *__stdin;			/* For getchar() macro. */
 
+# undef  __GETC_UNLOCKED_MACRO
 # define __GETC_UNLOCKED_MACRO(__stream)					\
 		( ((__stream)->__bufpos < (__stream)->__bufgetc_u)	\
 		  ? (*(__stream)->__bufpos++)						\
@@ -481,6 +464,7 @@
 
 extern FILE *__stdout;			/* For putchar() macro. */
 
+# undef  __PUTC_UNLOCKED_MACRO
 # define __PUTC_UNLOCKED_MACRO(__c, __stream)						\
 		( ((__stream)->__bufpos < (__stream)->__bufputc_u)	\
 		  ? (*(__stream)->__bufpos++) = (__c)				\




More information about the uClibc-cvs mailing list