yann@1
|
1 |
[dank] Modified very slightly to apply to 2.2.5.
|
yann@1
|
2 |
|
yann@1
|
3 |
2003-03-05 Roland McGrath <roland@redhat.com>
|
yann@1
|
4 |
|
yann@1
|
5 |
* stdio-common/sscanf.c: Use prototype defn with ... syntax.
|
yann@1
|
6 |
* libio/swscanf.c: Likewise.
|
yann@1
|
7 |
* libio/swprintf.c: Likewise.
|
yann@1
|
8 |
|
yann@1
|
9 |
===================================================================
|
yann@1
|
10 |
RCS file: /cvs/glibc/libc/stdio-common/sscanf.c,v
|
yann@1
|
11 |
retrieving revision 1.8
|
yann@1
|
12 |
retrieving revision 1.9
|
yann@1
|
13 |
diff -u -r1.8 -r1.9
|
yann@1
|
14 |
--- libc/stdio-common/sscanf.c 2002/08/10 09:24:42 1.8
|
yann@1
|
15 |
+++ libc/stdio-common/sscanf.c 2003/03/05 19:58:03 1.9
|
yann@1
|
16 |
@@ -1,4 +1,4 @@
|
yann@1
|
17 |
-/* Copyright (C) 1991, 1995, 1996, 1998 Free Software Foundation, Inc.
|
yann@1
|
18 |
+/* Copyright (C) 1991,1995,1996,1998,2002,2003 Free Software Foundation, Inc.
|
yann@1
|
19 |
This file is part of the GNU C Library.
|
yann@1
|
20 |
|
yann@1
|
21 |
The GNU C Library is free software; you can redistribute it and/or
|
yann@1
|
22 |
@@ -27,9 +27,7 @@
|
yann@1
|
23 |
/* Read formatted input from S, according to the format string FORMAT. */
|
yann@1
|
24 |
/* VARARGS2 */
|
yann@1
|
25 |
int
|
yann@1
|
26 |
-sscanf (s, format)
|
yann@1
|
27 |
- const char *s;
|
yann@1
|
28 |
- const char *format;
|
yann@1
|
29 |
+sscanf (const char *s, const char *format, ...)
|
yann@1
|
30 |
{
|
yann@1
|
31 |
va_list arg;
|
yann@1
|
32 |
int done;
|
yann@1
|
33 |
===================================================================
|
yann@1
|
34 |
RCS file: /cvs/glibc/libc/libio/swprintf.c,v
|
yann@1
|
35 |
retrieving revision 1.3
|
yann@1
|
36 |
retrieving revision 1.4
|
yann@1
|
37 |
diff -u -r1.3 -r1.4
|
yann@1
|
38 |
--- libc/libio/swprintf.c 2001/07/06 04:55:32 1.3
|
yann@1
|
39 |
+++ libc/libio/swprintf.c 2003/03/05 19:58:03 1.4
|
yann@1
|
40 |
@@ -1,4 +1,5 @@
|
yann@1
|
41 |
-/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc.
|
yann@1
|
42 |
+/* Copyright (C) 1991,1995,1997,1998,1999,2000,2003
|
yann@1
|
43 |
+ Free Software Foundation, Inc.
|
yann@1
|
44 |
This file is part of the GNU C Library.
|
yann@1
|
45 |
|
yann@1
|
46 |
The GNU C Library is free software; you can redistribute it and/or
|
yann@1
|
47 |
@@ -22,10 +23,7 @@
|
yann@1
|
48 |
/* Write formatted output into S, according to the format string FORMAT. */
|
yann@1
|
49 |
/* VARARGS3 */
|
yann@1
|
50 |
int
|
yann@1
|
51 |
-swprintf (s, n, format)
|
yann@1
|
52 |
- wchar_t *s;
|
yann@1
|
53 |
- size_t n;
|
yann@1
|
54 |
- const wchar_t *format;
|
yann@1
|
55 |
+swprintf (wchar_t *s, size_t n, const wchar_t *format, ...)
|
yann@1
|
56 |
{
|
yann@1
|
57 |
va_list arg;
|
yann@1
|
58 |
int done;
|
yann@1
|
59 |
===================================================================
|
yann@1
|
60 |
RCS file: /cvs/glibc/libc/libio/swscanf.c,v
|
yann@1
|
61 |
retrieving revision 1.2
|
yann@1
|
62 |
retrieving revision 1.3
|
yann@1
|
63 |
diff -u -r1.2 -r1.3
|
yann@1
|
64 |
--- libc/libio/swscanf.c 2001/07/06 04:55:32 1.2
|
yann@1
|
65 |
+++ libc/libio/swscanf.c 2003/03/05 19:58:03 1.3
|
yann@1
|
66 |
@@ -1,4 +1,4 @@
|
yann@1
|
67 |
-/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
|
yann@1
|
68 |
+/* Copyright (C) 1991,1995,1996,1998,1999,2003 Free Software Foundation, Inc.
|
yann@1
|
69 |
This file is part of the GNU C Library.
|
yann@1
|
70 |
|
yann@1
|
71 |
The GNU C Library is free software; you can redistribute it and/or
|
yann@1
|
72 |
@@ -22,9 +22,7 @@
|
yann@1
|
73 |
/* Read formatted input from S, according to the format string FORMAT. */
|
yann@1
|
74 |
/* VARARGS2 */
|
yann@1
|
75 |
int
|
yann@1
|
76 |
-swscanf (s, format)
|
yann@1
|
77 |
- const wchar_t *s;
|
yann@1
|
78 |
- const wchar_t *format;
|
yann@1
|
79 |
+swscanf (const wchar_t *s, const wchar_t *format, ...)
|
yann@1
|
80 |
{
|
yann@1
|
81 |
va_list arg;
|
yann@1
|
82 |
int done;
|