mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added Cyc_car / Cyc_cdr
This commit is contained in:
parent
9c04662938
commit
fe65274c77
2 changed files with 14 additions and 0 deletions
|
@ -122,6 +122,8 @@ extern object Cyc_global_variables;
|
|||
int _cyc_argc;
|
||||
char **_cyc_argv;
|
||||
void gc_init_heap(long heap_size);
|
||||
object Cyc_car(void *data, object lis);
|
||||
object Cyc_cdr(void *data, object lis);
|
||||
object Cyc_get_global_variables();
|
||||
object Cyc_get_cvar(object var);
|
||||
object Cyc_set_cvar(object var, object value);
|
||||
|
|
12
runtime.c
12
runtime.c
|
@ -527,6 +527,18 @@ int equal(object x, object y)
|
|||
}
|
||||
}
|
||||
|
||||
object Cyc_car(void *data, object lis)
|
||||
{
|
||||
Cyc_check_pair(data, lis);
|
||||
return car(lis);
|
||||
}
|
||||
|
||||
object Cyc_cdr(void *data, object lis)
|
||||
{
|
||||
Cyc_check_pair(data, lis);
|
||||
return cdr(lis);
|
||||
}
|
||||
|
||||
object Cyc_get_global_variables()
|
||||
{
|
||||
return Cyc_global_variables;
|
||||
|
|
Loading…
Add table
Reference in a new issue