mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
Replaced void*data with auto_ptr<function_data_t>, eliminating antoher halloc.
This commit is contained in:
4
parser.h
4
parser.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user