summaryrefslogtreecommitdiff
path: root/src/preproc/pproto.h
blob: 492b7cbe58903ba4dc8c665274ead26da8967c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
void            addrmlst     (char *fname, FILE *f);
void            advance_tok  (struct token **tp);
int                chk_eq_sign  (void);
long               conditional  (struct token **tp, struct token *trigger);
struct token      *copy_t       (struct token *t);
void            err1         (char *s);
void            err2         (char *s1, char *s2);
void            errfl1       (char *f, int l, char *s);
void            errfl2       (char *f, int l, char *s1, char *s2);
void            errfl3       (char *f, int l, char *s1, char *s2, char *s3);
void            errt1        (struct token *t, char *s);
void            errt2        (struct token *t, char *s1, char *s2);
void            errt3        (struct token *t, char *s1, char *s2, char *s3);
int                eval         (struct token *trigger);
void            fill_cbuf    (void);
void            free_id_lst  (struct id_lst *ilst);
void            free_plsts   (struct paste_lsts *plsts);
void            free_m       (struct macro *m);
void            free_m_lst   (struct macro *m);
void            free_t       (struct token *t);
void            free_t_lst   (struct tok_lst *tlst);
struct str_buf    *get_sbuf     (void);
void            include      (struct token *trigger, char *fname, int start);
void	init_files	(char *opt_lst,char * *opt_args);
void	init_files	(char *opt_lst,char * *opt_args);
void            init_macro   (void);
void            init_preproc (char *fname, char *opt_lst, char **opt_args);
void            init_sys     (char *fname, int argc, char *argv[]);
void            init_tok     (void);
struct token      *interp_dir   (void);
struct token      *mac_tok      (void);
void            merge_whsp   (struct token **whsp, struct token **next_t,
                                  struct token *(*t_src)(void));
void            m_delete     (struct token *mname);
void            m_install    (struct token *mname, int category,
                                  int multi_line, struct id_lst *prmlst,
                                  struct tok_lst *body);
struct macro      *m_lookup     (struct token *mname);
struct char_src   *new_cs       (char *fname, FILE *f, int bufsize);
struct id_lst     *new_id_lst   (char *id);
struct macro      *new_macro    (char *mname, int category,
                                  int multi_line, struct id_lst *prmlst,
                                  struct tok_lst *body);
struct mac_expand *new_me       (struct macro *m, struct tok_lst **args,
                                   struct tok_lst **exp_args);
struct paste_lsts *new_plsts    (struct token *trigger,
                                  struct tok_lst *tlst,
                                  struct paste_lsts *plst);
struct token      *new_token    (int id, char *image, char *fname,
                                  int line);
struct tok_lst    *new_t_lst    (struct token *tok);
struct token      *next_tok     (void);
void            nxt_non_wh   (struct token **tp);
void            output       (FILE *out_file);
struct token      *paste        (void);
void            pop_src      (void);
struct token      *preproc      (void);
void            push_src     (int flag, union src_ref *ref);
void            rel_sbuf     (struct str_buf *sbuf);
int                rt_state     (int tok_id);
void            show_usage   (void);
void            source       (char *fname);
void            str_src      (char *src_name, char *s, int len);
struct token      *tokenize     (void);