chiark / gitweb /
cleanup: remove unused "line" member in struct transform
[secnet.git] / conffile_internal.h
index 4c2cb36bc6714776ddb16e3f380be7a375329d5d..073ab26ba6d51b185ea757bff0d6e29fb6fd7bd0 100644 (file)
@@ -4,9 +4,7 @@
 #include <stdio.h>
 #include "secnet.h"
 
-extern FILE *yyin;
-
-typedef string_t atom_t;
+typedef cstring_t atom_t;
 
 /* Parse tree for configuration file */
 
@@ -37,13 +35,13 @@ struct p_node {
     struct p_node *r;
 };
 
-extern int yylex(void);
-extern string_t config_file;
-extern uint32_t config_lineno;
+extern cstring_t config_file;
+extern int config_lineno;
+extern int yynerrs;
 
 /* Keys in dictionaries are 'atoms', which are constructed from strings
    using this call. Atoms may be compared using '=='. */
-extern atom_t intern(string_t string);
+extern atom_t intern(cstring_t string);
 
 extern struct p_node *parse_conffile(FILE *conffile);