Commit 69455bec authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Unhide the functions we emit, so they appear in a backtrace.

parent 744c5ad3
......@@ -694,7 +694,11 @@ vcc_CompileSource(const struct vcc *tl0, struct vsb *sb, struct source *sp)
/* Emit method functions */
for (i = 0; i < VCL_MET_MAX; i++) {
Fc(tl, 1, "\nstatic int __match_proto__(vcl_func_f)\n");
Fh(tl, 1, "\nint __match_proto__(vcl_func_f)\n");
Fh(tl, 1,
"VGC_function_%s(const struct vrt_ctx *ctx);\n",
method_tab[i].name);
Fc(tl, 1, "\nint __match_proto__(vcl_func_f)\n");
Fc(tl, 1,
"VGC_function_%s(const struct vrt_ctx *ctx)\n",
method_tab[i].name);
......
......@@ -250,9 +250,9 @@ vcc_ParseFunction(struct vcc *tl)
return;
}
tl->curproc = vcc_AddProc(tl, tl->t);
Fh(tl, 0, "static int VGC_function_%.*s "
Fh(tl, 0, "int VGC_function_%.*s "
"(const struct vrt_ctx *ctx);\n", PF(tl->t));
Fc(tl, 1, "\nstatic int __match_proto__(vcl_func_t)\n");
Fc(tl, 1, "\nint __match_proto__(vcl_func_t)\n");
Fc(tl, 1, "VGC_function_%.*s(const struct vrt_ctx *ctx)\n",
PF(tl->t));
}
......
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