changeset 1178:e9b2d21cf078 trunk

[svn] - possible crash fixes wrt global regs
author nenolod
date Fri, 08 Jun 2007 14:24:30 -0700
parents a7c98f237b03
children f121f2b1711a
files ChangeLog src/paranormal/libcalc/dict.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jun 08 11:19:25 2007 -0700
+++ b/ChangeLog	Fri Jun 08 14:24:30 2007 -0700
@@ -1,3 +1,12 @@
+2007-06-08 18:19:25 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2548]
+  - add general_evaluate which can run arbitrary VM code
+  
+  trunk/src/paranormal/builtins.c |    2 
+  trunk/src/paranormal/general.c  |   83 ++++++++++++++++++++++++++++++++++++++++
+  2 files changed, 85 insertions(+)
+
+
 2007-06-08 17:58:23 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2546]
   - i forgot to commit something here
--- a/src/paranormal/libcalc/dict.c	Fri Jun 08 11:19:25 2007 -0700
+++ b/src/paranormal/libcalc/dict.c	Fri Jun 08 14:24:30 2007 -0700
@@ -65,7 +65,7 @@
 
     global_dict.v_count = 0;
     global_dict.v_space = V_SPACE_INIT;
-    global_dict.variables = (var_t *) g_new(var_t, dict->v_space);
+    global_dict.variables = (var_t *) g_new(var_t, global_dict.v_space);
     global_dict_initialized = 1;
 
     for (i = 0; i < 100; i++) {