This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

missing stdio.h prototypes


Hi,

I noticed a couple of missing prototypes in stdio.h, siscanf and viprintf, the attached patch adds these.

newlib 1.14.0 added a dprintf prototype which I commented locally. Is this a standard function? This is a name I've used for quite some time for debug output and usually define as a macro.

Dave

diff -Nbaur newlib-1.14.0/newlib/libc/include/stdio.h newlib-1.14.0-arm/newlib/libc/include/stdio.h
--- newlib-1.14.0/newlib/libc/include/stdio.h	Wed Oct 12 00:59:32 2005
+++ newlib-1.14.0-arm/newlib/libc/include/stdio.h	Fri Apr 14 22:08:39 2006
@@ -179,6 +179,7 @@
 int	_EXFUN(printf, (const char *, ...));
 int	_EXFUN(scanf, (const char *, ...));
 int	_EXFUN(sscanf, (const char *, const char *, ...));
+int	_EXFUN(siscanf, (const char *, const char *, ...));
 int	_EXFUN(vfprintf, (FILE *, const char *, __VALIST));
 int	_EXFUN(vprintf, (const char *, __VALIST));
 int	_EXFUN(vsprintf, (char *, const char *, __VALIST));
@@ -229,7 +230,7 @@
 #ifndef _REENT_ONLY
 int	_EXFUN(asiprintf, (char **, const char *, ...));
 int	_EXFUN(asprintf, (char **, const char *, ...));
-int	_EXFUN(dprintf, (int, const char *, ...));
+//int	_EXFUN(dprintf, (int, const char *, ...));
 int	_EXFUN(fcloseall, (_VOID));
 int	_EXFUN(fiprintf, (FILE *, const char *, ...));
 int	_EXFUN(iprintf, (const char *, ...));
@@ -247,6 +248,7 @@
 int	_EXFUN(vfscanf, (FILE *, const char *, __VALIST));
 int	_EXFUN(viprintf, (const char *, __VALIST));
 int	_EXFUN(viscanf, (const char *, __VALIST));
+int	_EXFUN(viprintf, (const char *, __VALIST));
 int	_EXFUN(vscanf, (const char *, __VALIST));
 int	_EXFUN(vsiscanf, (const char *, const char *, __VALIST));
 int	_EXFUN(vsscanf, (const char *, const char *, __VALIST));

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