Commit 80c0568e authored by Niels Möller's avatar Niels Möller
Browse files

Checked in final changes; these files are not used anymore.

Rev: src/config_parse.h:1.2
Rev: src/config_parse.y:1.2
parent 9aa41f20
......@@ -6,9 +6,11 @@
#include <stdio.h>
enum config_type { RULE_DEFAULT, RULE_NET, RULE_HOST };
#define GABA_DECLARE
#include "config_parse.h.x"
#endif /* GABA_DECLARE */
#undef GABA_DECLARE
/* GABA:
(class
......@@ -22,8 +24,6 @@
static struct config_pair *
make_config_pair(struct lsh_string *name, struct lsh_string *value);
enum config_type { RULE_DEFAULT, RULE_NET, RULE_HOST };
/* GABA:
(class
(name config_rule)
......
......@@ -3,22 +3,27 @@
#include "config_parse.h"
#include "string_buffer.h"
#include "xalloc.h"
#include <ctype.h>
#define GABA_DEFINE
#include "config_parse.h.x"
#endif /* GABA_DEFINE */
#undef GABA_DEFINE
struct parse_state
{
FILE *f;
struct config_rule *value;
};
#define YYPARSE_PARAM state
#define STATE ((struct parse_state *) state)
}%
static void yyerror(const char *s);
static int
yylex(YYSTYPE *val, void *state);
%}
/* Declarations */
%pure_parser
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment