X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Ftoken.h;h=1856cbf8a6d632882d89a73bc93a9cc4d9047639;hb=12179dea039515c06168c0037d048566a3f623de;hp=5a3f9254240c75fa1d652ea4a76448e309e3e084;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/common-src/token.h b/common-src/token.h index 5a3f925..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.10.8.3 2003/12/16 22:36:45 martinea 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)); -#ifndef HAVE_SHQUOTE_DECL -extern char *shquote P((char *str)); +extern char *quote(char *sep, char *str); +extern char *rxquote(char *str); +#ifndef HAVE_SHQUOTE +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