X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Ftoken.h;h=1856cbf8a6d632882d89a73bc93a9cc4d9047639;hb=refs%2Ftags%2Fupstream%2F2.5.1;hp=6e33b7b3107ca96f8a51990058a065269a6c3d21;hpb=94c03cae686e4196a345d72452fda2a5203768ce;p=debian%2Famanda diff --git a/common-src/token.h b/common-src/token.h index 6e33b7b..1856cbf 100644 --- a/common-src/token.h +++ b/common-src/token.h @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: token.h,v 1.12 2003/03/26 20:17:13 kovert Exp $ + * $Id: token.h,v 1.13 2006/05/25 01:47:12 johnfranks Exp $ * * interface to token module */ @@ -35,18 +35,18 @@ typedef struct {char *word; int value;} table_t; -extern int split P((char *str, char **token, int toklen, char *sep)); -extern char *squotef P((char *format, ...)) +extern int split(char *str, char **token, int toklen, char *sep); +extern char *squotef(char *format, ...) __attribute__ ((format (printf, 1, 2))); -extern char *squote P((char *str)); -extern char *quotef P((char *sep, char *format, ...)) +extern char *squote(char *str); +extern char *quotef(char *sep, char *format, ...) __attribute__ ((format (printf, 2, 3))); -extern char *quote P((char *sep, char *str)); -extern char *rxquote P((char *str)); +extern char *quote(char *sep, char *str); +extern char *rxquote(char *str); #ifndef HAVE_SHQUOTE -extern char *shquote P((char *str)); +extern char *shquote(char *str); #endif -extern int table_lookup P((table_t *table, char *str)); -extern char *table_lookup_r P((table_t *table, int val)); +extern int table_lookup(table_t *table, char *str); +extern char *table_lookup_r(table_t *table, int val); #endif