Subversion Repositories shark

Rev

Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
struct match_token {
2
        int token;
3
        char *pattern;
4
};
5
 
6
typedef struct match_token match_table_t[];
7
 
8
enum {MAX_OPT_ARGS = 3};
9
 
10
typedef struct {
11
        char *from;
12
        char *to;
13
} substring_t;
14
 
15
int match_token(char *s, match_table_t table, substring_t args[]);
16
 
17
int match_int(substring_t *, int *result);
18
int match_octal(substring_t *, int *result);
19
int match_hex(substring_t *, int *result);
20
void match_strcpy(char *, substring_t *);
21
char *match_strdup(substring_t *);