• Poul-Henning Kamp's avatar
    Overhaul compiler to get rid of memory leaks and other bogons. · 1024202a
    Poul-Henning Kamp authored
    Add a memlist to the tokenlist and a function which allocates
    with malloc(3) and hangs the piece on the memlist of tokenlist.
    At the end of compilation, we ditch everything on the list.
    
    Handle vrt_obj.h like the other #includes, and stuff these
    into a vsb instead of directly to a file.
    
    Free decoded token string, if any.
    
    Pull creation and destruction of tokenlist into separate functions
    for code clarity.  Remember to destry everything in the tokenlist.
    
    Pull invocation of cc(1) into a separate function and change the
    way we do it, so we get any cc(1) groans and whines back in the
    vsb so a CLI user will see them.  More errorchecks than before.
    
    More comments throughout.
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1289 d4fa192b-c00b-0410-8231-f00ffab90ce4
    1024202a
Name
Last commit
Last update
..
Makefile.am Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
sample.vcl Loading commit data...
vcc_acl.c Loading commit data...
vcc_compile.c Loading commit data...
vcc_compile.h Loading commit data...
vcc_fixed_token.c Loading commit data...
vcc_gen_fixed_token.tcl Loading commit data...
vcc_gen_obj.tcl Loading commit data...
vcc_obj.c Loading commit data...
vcc_parse.c Loading commit data...
vcc_priv.h Loading commit data...
vcc_token.c Loading commit data...
vcc_token_defs.h Loading commit data...