option.c: fixed warnings
[k8jam.git] / src / parse.h
blob8c250fc99479c8b34f56c8c0e584a2ad9265c621
1 /*
2 * Copyright 1993, 2000 Christopher Seiwald.
3 * This file is part of Jam - see jam.c for Copyright information.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 * parse.h - make and destroy parse trees as driven by the parser
20 #ifndef JAMH_PARSE_H
21 #define JAMH_PARSE_H
24 /* parse tree node */
25 typedef struct _PARSE PARSE;
26 struct _PARSE {
27 LIST *(*func) (PARSE *p, LOL *args, int *jmp);
28 PARSE *left;
29 PARSE *right;
30 PARSE *third;
31 const char *string;
32 const char *string1;
33 int num;
34 int refs;
38 extern void parse_file (const char *f);
39 extern void parse_save (PARSE *p);
41 PARSE *parse_make (
42 LIST *(*func) (PARSE *p, LOL *args, int *jmp),
43 PARSE *left,
44 PARSE *right,
45 PARSE *third,
46 const char *string,
47 const char *string1,
48 int num
51 extern void parse_refer (PARSE *p);
52 extern void parse_free (PARSE *p);
55 extern const char *multiform_suffix (int cnt) JAMFA_CONST;
58 #endif