Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
80c0568e
Commit
80c0568e
authored
Mar 13, 2002
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/config_parse.h
View file @
80c0568e
...
...
@@ -6,9 +6,11 @@
#include <stdio.h>
enum
config_type
{
RULE_DEFAULT
,
RULE_NET
,
RULE_HOST
};
#define GABA_DECLARE
#include "config_parse.h.x"
#
e
nd
if
/*
GABA_DECLARE
*/
#
u
nd
ef
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)
...
...
src/config_parse.y
View file @
80c0568e
...
...
@@ -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"
#
e
nd
if /*
GABA_DEFINE
*/
#
u
nd
ef
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment