summaryrefslogtreecommitdiff
path: root/byterun.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun.c')
-rw-r--r--byterun.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/byterun.c b/byterun.c
index fe7d6d3a62..57c662009a 100644
--- a/byterun.c
+++ b/byterun.c
@@ -11,8 +11,20 @@
#include "EXTERN.h"
#include "perl.h"
-#include "bytecode.h"
-#include "byterun.h"
+
+void *
+bset_obj_store(void *obj, I32 ix)
+{
+ if (ix > obj_list_fill) {
+ if (obj_list_fill == -1)
+ New(666, obj_list, ix + 1, void*);
+ else
+ Renew(obj_list, ix + 1, void*);
+ obj_list_fill = ix;
+ }
+ obj_list[ix] = obj;
+ return obj;
+}
#ifdef INDIRECT_BGET_MACROS
void byterun(struct bytestream bs)