aboutsummaryrefslogtreecommitdiff
path: root/src/parsertab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsertab.c')
-rw-r--r--src/parsertab.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/parsertab.c b/src/parsertab.c
index f876401..a3236d5 100644
--- a/src/parsertab.c
+++ b/src/parsertab.c
@@ -1,4 +1,4 @@
1/* grecs - Gray's Extensible Configuration System 1/* argot - Gray's Extensible Configuration System
2 Copyright (C) 2007-2016 Sergey Poznyakoff 2 Copyright (C) 2007-2016 Sergey Poznyakoff
3 3
4 Grecs is free software; you can redistribute it and/or modify it 4 Grecs is free software; you can redistribute it and/or modify it
@@ -20,32 +20,32 @@
20#include <stdlib.h> 20#include <stdlib.h>
21#include <strings.h> 21#include <strings.h>
22#include <errno.h> 22#include <errno.h>
23#include "grecs.h" 23#include "argot.h"
24 24
25static struct parser_tab { 25static struct parser_tab {
26 const char *name; 26 const char *name;
27 grecs_parser_t parser; 27 argot_parser_t parser;
28} parser_tab[] = { 28} parser_tab[] = {
29 { "GRECS", grecs_grecs_parser }, 29 { "ARGOT", argot_argot_parser },
30 { "PATH", grecs_path_parser }, 30 { "PATH", argot_path_parser },
31#ifdef ENABLE_META1_PARSER 31#ifdef ENABLE_META1_PARSER
32 { "META1", grecs_meta1_parser }, 32 { "META1", argot_meta1_parser },
33#endif 33#endif
34#ifdef ENABLE_BIND_PARSER 34#ifdef ENABLE_BIND_PARSER
35 { "BIND", grecs_bind_parser }, 35 { "BIND", argot_bind_parser },
36#endif 36#endif
37#ifdef ENABLE_DHCPD_PARSER 37#ifdef ENABLE_DHCPD_PARSER
38 { "DHCPD", grecs_dhcpd_parser }, 38 { "DHCPD", argot_dhcpd_parser },
39 { "DHCP", grecs_dhcpd_parser }, 39 { "DHCP", argot_dhcpd_parser },
40#endif 40#endif
41#ifdef ENABLE_GIT_PARSER 41#ifdef ENABLE_GIT_PARSER
42 { "GIT", grecs_git_parser }, 42 { "GIT", argot_git_parser },
43#endif 43#endif
44 { NULL } 44 { NULL }
45}; 45};
46 46
47int 47int
48grecs_enumerate_parsers(int (*fun)(const char *, grecs_parser_t, void *), 48argot_enumerate_parsers(int (*fun)(const char *, argot_parser_t, void *),
49 void *data) 49 void *data)
50{ 50{
51 struct parser_tab *pt; 51 struct parser_tab *pt;
@@ -56,8 +56,8 @@ grecs_enumerate_parsers(int (*fun)(const char *, grecs_parser_t, void *),
56 return rc; 56 return rc;
57} 57}
58 58
59grecs_parser_t 59argot_parser_t
60grecs_get_parser_by_type(const char *type) 60argot_get_parser_by_type(const char *type)
61{ 61{
62 struct parser_tab *pt; 62 struct parser_tab *pt;
63 63

Return to:

Send suggestions and report system problems to the System administrator.