Commit 905144b2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

This is a table-generating #include

parent 8aba928c
...@@ -9,6 +9,7 @@ pkginclude_HEADERS = \ ...@@ -9,6 +9,7 @@ pkginclude_HEADERS = \
tbl/http_response.h \ tbl/http_response.h \
tbl/locks.h \ tbl/locks.h \
tbl/steps.h \ tbl/steps.h \
tbl/symbol_kind.h \
tbl/vcc_types.h \ tbl/vcc_types.h \
tbl/vcl_returns.h \ tbl/vcl_returns.h \
tbl/vrt_stv_var.h \ tbl/vrt_stv_var.h \
......
...@@ -9,7 +9,6 @@ libvcl_la_LDFLAGS = -avoid-version ...@@ -9,7 +9,6 @@ libvcl_la_LDFLAGS = -avoid-version
libvcl_la_SOURCES = \ libvcl_la_SOURCES = \
vcc_compile.h \ vcc_compile.h \
vcc_token_defs.h \ vcc_token_defs.h \
symbol_kind.h \
\ \
vcc_acl.c \ vcc_acl.c \
vcc_action.c \ vcc_action.c \
......
...@@ -99,7 +99,7 @@ struct token { ...@@ -99,7 +99,7 @@ struct token {
enum symkind { enum symkind {
#define VCC_SYMB(uu, ll, dd) SYM_##uu, #define VCC_SYMB(uu, ll, dd) SYM_##uu,
#include "symbol_kind.h" #include "tbl/symbol_kind.h"
#undef VCC_SYMB #undef VCC_SYMB
}; };
......
...@@ -41,7 +41,7 @@ VCC_SymKind(struct vcc *tl, const struct symbol *s) ...@@ -41,7 +41,7 @@ VCC_SymKind(struct vcc *tl, const struct symbol *s)
{ {
switch(s->kind) { switch(s->kind) {
#define VCC_SYMB(uu, ll, dd) case SYM_##uu: return(dd); #define VCC_SYMB(uu, ll, dd) case SYM_##uu: return(dd);
#include "symbol_kind.h" #include "tbl/symbol_kind.h"
#undef VCC_SYMB #undef VCC_SYMB
default: default:
ErrInternal(tl); ErrInternal(tl);
......
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