diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-07 22:10:35 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-07 22:10:35 -0800 |
commit | 006523ac59e42bc4ed2339ef31d2f6b41bdb190e (patch) | |
tree | 3786298ddf2451e4fad4033d69d22b15cd40e3d0 /parser.h | |
parent | c0e783eb6e8c12d12c9dfbc62c4d5f820e6df61d (diff) |
Replaced void*data with auto_ptr<function_data_t>, eliminating antoher halloc.
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,8 +11,10 @@ #include "util.h" #include "parser.h" #include "event.h" +#include "function.h" #include <vector> #include <deque> +#include <memory> #define PARSER_TEST_ERROR 1 #define PARSER_TEST_INCOMPLETE 2 @@ -81,7 +83,7 @@ typedef struct block /** Block type-specific data */ - void *data; + std::auto_ptr<function_data_t> function_data; #if 0 union |