diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
commit | 973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch) | |
tree | 1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/include/token822.h | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
Diffstat (limited to 'src/include/token822.h')
-rw-r--r-- | src/include/token822.h | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/src/include/token822.h b/src/include/token822.h index 73ef0be..565cf5b 100644 --- a/src/include/token822.h +++ b/src/include/token822.h @@ -2,24 +2,7 @@ #define TOKEN822_H #include "genalloc.h" - -struct token822 { - int type; - char *s; - int slen; -}; - -GEN_ALLOC_typedef(token822_alloc, struct token822, t, len, a); - -int token822_parse(); -int token822_addrlist(); -int token822_unquote(); -int token822_unparse(); -void token822_free(); -void token822_reverse(); -int token822_ready(); -int token822_readyplus(); -int token822_append(); +#include "stralloc.h" #define TOKEN822_ATOM 1 #define TOKEN822_QUOTE 2 @@ -33,4 +16,24 @@ int token822_append(); #define TOKEN822_COLON 10 #define TOKEN822_DOT 11 +struct token822 { + int type; + char *s; + int slen; +}; + +GEN_ALLOC_typedef(token822_alloc, struct token822, t, len, a); +GEN_ALLOC_ready(token822_alloc, struct token822, t, len, a, i, n, x, 30, token822_ready); +GEN_ALLOC_readyplus(token822_alloc, struct token822, t, len, a, i, n, x, 30, token822_readyplus); +GEN_ALLOC_append( + token822_alloc, struct token822, t, len, a, i, n, x, 30, token822_readyplus, token822_append); + +int token822_parse(token822_alloc *, stralloc *, stralloc *); +int token822_addrlist( + token822_alloc *taout, token822_alloc *taaddr, token822_alloc *ta, int (*callback)()); +int token822_unquote(stralloc *, token822_alloc *); +int token822_unparse(stralloc *, token822_alloc *, unsigned int); +void token822_free(); +void token822_reverse(token822_alloc *); + #endif |