1 |
/* Declarations for token handling. |
2 |
* |
3 |
* IRC Services is copyright (c) 1996-2009 Andrew Church. |
4 |
* E-mail: <achurch@achurch.org> |
5 |
* Parts written by Andrew Kempe and others. |
6 |
* This program is free but copyrighted software; see the file GPL.txt for |
7 |
* details. |
8 |
*/ |
9 |
|
10 |
#ifndef TOKEN_H |
11 |
#define TOKEN_H |
12 |
|
13 |
/* Information about a token (what message it corresponds to): */ |
14 |
typedef struct { |
15 |
const char *token, *message; |
16 |
} TokenInfo; |
17 |
|
18 |
#define init_token RENAME_SYMBOL(init_token) |
19 |
#define exit_token RENAME_SYMBOL(exit_token) |
20 |
extern int init_token(TokenInfo *tokens); |
21 |
extern void exit_token(void); |
22 |
|
23 |
#endif /* TOKEN_H */ |
24 |
|
25 |
/* |
26 |
* Local variables: |
27 |
* c-file-style: "stroustrup" |
28 |
* c-file-offsets: ((case-label . *) (statement-case-intro . *)) |
29 |
* indent-tabs-mode: nil |
30 |
* End: |
31 |
* |
32 |
* vim: expandtab shiftwidth=4: |
33 |
*/ |