Skip to content
Snippets Groups Projects
Commit c5d981cb authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

minor changes

Rev: src/builtin_efuns.c:1.17
Rev: src/config.h:1.4
parent bb2fc127
No related branches found
No related tags found
No related merge requests found
...@@ -351,11 +351,13 @@ void f_backtrace(INT32 args) ...@@ -351,11 +351,13 @@ void f_backtrace(INT32 args)
ITEM(i)[0].subtype=NUMBER_NUMBER; ITEM(i)[0].subtype=NUMBER_NUMBER;
ITEM(i)[0].type=T_INT; ITEM(i)[0].type=T_INT;
} }
i->type_field = BIT_FUNCTION | BIT_INT | BIT_STRING;
}else{ }else{
ITEM(a)[frames].type=T_INT; ITEM(a)[frames].type=T_INT;
ITEM(a)[frames].u.integer=0; ITEM(a)[frames].u.integer=0;
} }
} }
a->type_field = BIT_ARRAY | BIT_INT;
} }
void f_add_efun(INT32 args) void f_add_efun(INT32 args)
...@@ -1202,6 +1204,7 @@ void f_sleep(INT32 args) ...@@ -1202,6 +1204,7 @@ void f_sleep(INT32 args)
} }
} }
#ifdef GC2
void f_gc(INT32 args) void f_gc(INT32 args)
{ {
INT32 tmp; INT32 tmp;
...@@ -1210,6 +1213,7 @@ void f_gc(INT32 args) ...@@ -1210,6 +1213,7 @@ void f_gc(INT32 args)
do_gc(); do_gc();
push_int(tmp - num_objects); push_int(tmp - num_objects);
} }
#endif
#ifdef TYPEP #ifdef TYPEP
#undef TYPEP #undef TYPEP
...@@ -1295,7 +1299,9 @@ void init_builtin_efuns() ...@@ -1295,7 +1299,9 @@ void init_builtin_efuns()
add_efun("upper_case",f_upper_case,"function(string:string)",0); add_efun("upper_case",f_upper_case,"function(string:string)",0);
add_efun("values",f_values,"function(string|list:int*)|function(array|mapping|object:mixed*)",0); add_efun("values",f_values,"function(string|list:int*)|function(array|mapping|object:mixed*)",0);
add_efun("zero_type",f_zero_type,"function(int:int)",0); add_efun("zero_type",f_zero_type,"function(int:int)",0);
#ifdef GC2
add_efun("gc",f_gc,"function(:int)",OPT_SIDE_EFFECT); add_efun("gc",f_gc,"function(:int)",OPT_SIDE_EFFECT);
#endif
} }
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
/* /*
* Undefine this to disable garabge collection * Undefine this to disable garabge collection
*/ */
#ifndef NO_GC
#define GC2 #define GC2
#endif
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment