Lines Matching refs:parse
43 static int get_char(struct parse *);
44 static void unget_char(struct parse *, int);
45 static void skip_to_eol(struct parse *);
46 static enum dhcp_token read_whitespace(int c, struct parse *cfile);
47 static enum dhcp_token read_string(struct parse *);
48 static enum dhcp_token read_number(int, struct parse *);
49 static enum dhcp_token read_num_or_name(int, struct parse *);
52 struct parse *
55 struct parse *tmp;
57 tmp = (struct parse *)malloc(sizeof(struct parse));
59 memset(tmp, 0, sizeof(struct parse));
102 end_parse(struct parse *cfile)
111 struct parse *saved_state;
133 save_parse_state(struct parse *cfile) {
134 struct parse *tmp;
140 struct parse *saved_state;
150 tmp = (struct parse *)malloc(sizeof(struct parse));
153 memset(tmp, 0, sizeof(struct parse));
155 memcpy(tmp, cfile, (size_t)&(((struct parse *)0)->comments));
166 restore_parse_state(struct parse *cfile) {
167 struct parse *saved_state;
175 memcpy(cfile, saved_state, (size_t)&(((struct parse *)0)->comments));
180 get_char(struct parse *cfile)
220 unget_char(struct parse *cfile, int c) {
251 get_raw_token(struct parse *cfile) {
315 struct parse *cfile, isc_boolean_t raw) {
355 next_token(const char **rval, unsigned *rlen, struct parse *cfile) {
366 next_raw_token(const char **rval, unsigned *rlen, struct parse *cfile) {
382 struct parse *cfile, isc_boolean_t raw) {
426 peek_token(const char **rval, unsigned *rlen, struct parse *cfile) {
437 peek_raw_token(const char **rval, unsigned *rlen, struct parse *cfile) {
446 skip_to_eol(struct parse *cfile)
471 read_whitespace(int c, struct parse *cfile) {
510 read_string(struct parse *cfile)
610 read_number(int c, struct parse *cfile)
683 read_num_or_name(int c, struct parse *cfile)