forked from git-for-windows/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0001-use-gnu_printf.patch
More file actions
70 lines (61 loc) · 3.32 KB
/
Copy path0001-use-gnu_printf.patch
File metadata and controls
70 lines (61 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff -Naur bison-3.0.2-orig/lib/error.c bison-3.0.2/lib/error.c
--- bison-3.0.2-orig/lib/error.c 2013-10-23 12:25:42.000000000 +0400
+++ bison-3.0.2/lib/error.c 2014-07-31 10:25:23.799200000 +0400
@@ -68,11 +68,11 @@
/* In GNU libc we want do not want to use the common name 'error' directly.
Instead make it a weak alias. */
extern void __error (int status, int errnum, const char *message, ...)
- __attribute__ ((__format__ (__printf__, 3, 4)));
+ __attribute__ ((__format__ (gnu_printf, 3, 4)));
extern void __error_at_line (int status, int errnum, const char *file_name,
unsigned int line_number, const char *message,
...)
- __attribute__ ((__format__ (__printf__, 5, 6)));
+ __attribute__ ((__format__ (gnu_printf, 5, 6)));
# define error __error
# define error_at_line __error_at_line
diff -Naur bison-3.0.2-orig/lib/error.h bison-3.0.2/lib/error.h
--- bison-3.0.2-orig/lib/error.h 2013-08-02 19:03:13.000000000 +0400
+++ bison-3.0.2/lib/error.h 2014-07-31 10:27:52.529600000 +0400
@@ -40,11 +40,11 @@
If STATUS is nonzero, terminate the program with 'exit (STATUS)'. */
extern void error (int __status, int __errnum, const char *__format, ...)
- _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 4));
+ _GL_ATTRIBUTE_FORMAT ((gnu_printf, 3, 4));
extern void error_at_line (int __status, int __errnum, const char *__fname,
unsigned int __lineno, const char *__format, ...)
- _GL_ATTRIBUTE_FORMAT ((__printf__, 5, 6));
+ _GL_ATTRIBUTE_FORMAT ((gnu_printf, 5, 6));
/* If NULL, error will flush stdout, then print on stderr the program
name, a colon and a space. Otherwise, error will call this
diff -Naur bison-3.0.2-orig/lib/vasnprintf.h bison-3.0.2/lib/vasnprintf.h
--- bison-3.0.2-orig/lib/vasnprintf.h 2013-08-02 19:16:02.000000000 +0400
+++ bison-3.0.2/lib/vasnprintf.h 2014-07-31 10:28:11.748800000 +0400
@@ -68,9 +68,9 @@
# define vasnprintf rpl_vasnprintf
#endif
extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...)
- _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 4));
+ _GL_ATTRIBUTE_FORMAT ((gnu_printf, 3, 4));
extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)
- _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 0));
+ _GL_ATTRIBUTE_FORMAT ((gnu_printf, 3, 0));
#ifdef __cplusplus
}
diff -Naur bison-3.0.2-orig/src/complain.h bison-3.0.2/src/complain.h
--- bison-3.0.2-orig/src/complain.h 2013-12-03 18:15:16.000000000 +0400
+++ bison-3.0.2/src/complain.h 2014-07-31 10:29:29.436800000 +0400
@@ -108,7 +108,7 @@
/** Make a complaint, with maybe a location. */
void complain (location const *loc, warnings flags, char const *message, ...)
- __attribute__ ((__format__ (__printf__, 3, 4)));
+ __attribute__ ((__format__ (gnu_printf, 3, 4)));
/** Likewise, but with an \a argc/argv interface. */
void complain_args (location const *loc, warnings w, unsigned *indent,
@@ -117,7 +117,7 @@
/** Make a complaint with location and some indentation. */
void complain_indent (location const *loc, warnings flags, unsigned *indent,
char const *message, ...)
- __attribute__ ((__format__ (__printf__, 4, 5)));
+ __attribute__ ((__format__ (gnu_printf, 4, 5)));
/** Report an obsolete syntax, suggest the updated one. */