aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-08 02:34:31 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-08 02:34:31 -0800
commit3dc56de0ae42b40104337803c392f506491b30d6 (patch)
treeb2bd0dfd8253425ea88681950c2930c9b6d48cda /function.h
parentb2e58091802403649fbecd260f39e8f3b288f611 (diff)
Excised some more halloc and array_list_t
Diffstat (limited to 'function.h')
-rw-r--r--function.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/function.h b/function.h
index 0e8ed821..93f76b3c 100644
--- a/function.h
+++ b/function.h
@@ -14,6 +14,7 @@
#include "util.h"
#include "common.h"
+#include "event.h"
#include <tr1/memory>
using std::tr1::shared_ptr;
@@ -28,7 +29,7 @@ class env_vars;
structure is used for that purpose. Parhaps these two should be
merged.
*/
-typedef struct function_data
+struct function_data_t
{
/**
Name of function
@@ -45,7 +46,7 @@ typedef struct function_data
/**
List of all event handlers for this function
*/
- array_list_t *events;
+ std::vector<event_t *> events;
/**
List of all named arguments for this function
*/
@@ -55,7 +56,7 @@ typedef struct function_data
of the underlying function.
*/
int shadows;
-} function_data_t;
+};
class function_info_t {
public: