Commit da621917 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

First compiler now recoginize what will become "VMOD objects"

once I get the other compiler to cope too.

This snapshot is committed to solicit feedback, so please do :-)
parent 01598057
......@@ -167,7 +167,13 @@ vcc_ParseImport(struct vcc *tl)
Fh(tl, 0, "static struct vmod_priv vmod_priv_%.*s;\n", PF(mod));
for (; *spec != NULL; spec++) {
p = *spec;
if (!strcmp(p, "INIT")) {
if (!strcmp(p, "OBJ")) {
// Nothing yet
} else if (!strcmp(p, "METHOD")) {
// Nothing yet
} else if (!strcmp(p, "FINI")) {
// Nothing yet
} else if (!strcmp(p, "INIT")) {
p += strlen(p) + 1;
Fi(tl, 0, "\t%s(&vmod_priv_%.*s, &VCL_conf);\n",
p, PF(mod));
......
This diff is collapsed.
......@@ -14,7 +14,8 @@ noinst_LTLIBRARIES = libvmod_debug.la
libvmod_debug_la_LDFLAGS = $(AM_LDFLAGS) -module -export-dynamic -avoid-version -shared -rpath /nowhere
libvmod_debug_la_SOURCES = \
vmod_debug.c
vmod_debug.c \
vmod_debug_obj.c
nodist_libvmod_debug_la_SOURCES = \
vcc_if.c \
......
......@@ -31,3 +31,7 @@ Function VOID panic(STRING_LIST)
Function STRING author(ENUM { phk, des, kristian, mithrandir })
Function VOID test_priv_call(PRIV_CALL)
Function VOID test_priv_vcl(PRIV_VCL)
Object obj(STRING) {
Method STRING .foo(STRING)
Method TIME .date()
}
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