(PRINTF_PROTO): Use __printf__ in __attribute__, not printf.

From-SVN: r13362
This commit is contained in:
Richard Kenner 1997-01-04 06:22:32 -05:00
parent 35d9eabb9d
commit 095f66970e
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* C Compatible Compiler Preprocessor (CCCP) /* C Compatible Compiler Preprocessor (CCCP)
Copyright (C) 1986, 87, 89, 92-95, 1996 Free Software Foundation, Inc. Copyright (C) 1986, 87, 89, 92-96, 1997 Free Software Foundation, Inc.
Written by Paul Rubin, June 1986 Written by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987 Adapted to ANSI C, Richard Stallman, Jan 1987
@ -191,13 +191,13 @@ my_bzero (b, length)
# define VA_START(va_list, var) va_start (va_list, var) # define VA_START(va_list, var) va_start (va_list, var)
# define PRINTF_ALIST(msg) char *msg, ... # define PRINTF_ALIST(msg) char *msg, ...
# define PRINTF_DCL(msg) # define PRINTF_DCL(msg)
# define PRINTF_PROTO(ARGS, m, n) PROTO (ARGS) __attribute__ ((format (printf, m, n))) # define PRINTF_PROTO(ARGS, m, n) PROTO (ARGS) __attribute__ ((format (__printf__, m, n)))
#else #else
# include <varargs.h> # include <varargs.h>
# define VA_START(va_list, var) va_start (va_list) # define VA_START(va_list, var) va_start (va_list)
# define PRINTF_ALIST(msg) msg, va_alist # define PRINTF_ALIST(msg) msg, va_alist
# define PRINTF_DCL(msg) char *msg; va_dcl # define PRINTF_DCL(msg) char *msg; va_dcl
# define PRINTF_PROTO(ARGS, m, n) () __attribute__ ((format (printf, m, n))) # define PRINTF_PROTO(ARGS, m, n) () __attribute__ ((format (__printf__, m, n)))
# define vfprintf(file, msg, args) \ # define vfprintf(file, msg, args) \
{ \ { \
char *a0 = va_arg(args, char *); \ char *a0 = va_arg(args, char *); \

View File

@ -1,5 +1,5 @@
/* Parse C expressions for CCCP. /* Parse C expressions for CCCP.
Copyright (C) 1987, 1992, 1994, 1995, 1996 Free Software Foundation. Copyright (C) 1987, 1992, 1994, 1995, 1996, 1997 Free Software Foundation.
This program is free software; you can redistribute it and/or modify it This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the under the terms of the GNU General Public License as published by the
@ -118,13 +118,13 @@ struct arglist {
# define VA_START(va_list, var) va_start (va_list, var) # define VA_START(va_list, var) va_start (va_list, var)
# define PRINTF_ALIST(msg) char *msg, ... # define PRINTF_ALIST(msg) char *msg, ...
# define PRINTF_DCL(msg) # define PRINTF_DCL(msg)
# define PRINTF_PROTO(ARGS, m, n) PROTO (ARGS) __attribute__ ((format (printf, m, n))) # define PRINTF_PROTO(ARGS, m, n) PROTO (ARGS) __attribute__ ((format (__printf__, m, n)))
#else #else
# include <varargs.h> # include <varargs.h>
# define VA_START(va_list, var) va_start (va_list) # define VA_START(va_list, var) va_start (va_list)
# define PRINTF_ALIST(msg) msg, va_alist # define PRINTF_ALIST(msg) msg, va_alist
# define PRINTF_DCL(msg) char *msg; va_dcl # define PRINTF_DCL(msg) char *msg; va_dcl
# define PRINTF_PROTO(ARGS, m, n) () __attribute__ ((format (printf, m, n))) # define PRINTF_PROTO(ARGS, m, n) () __attribute__ ((format (__printf__, m, n)))
# define vfprintf(file, msg, args) \ # define vfprintf(file, msg, args) \
{ \ { \
char *a0 = va_arg(args, char *); \ char *a0 = va_arg(args, char *); \