mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +02:00
Refactoring
This commit is contained in:
parent
2ee4cd05b2
commit
dc33c2fd7e
3 changed files with 4 additions and 17 deletions
|
@ -237,7 +237,6 @@ object Cyc_num_op_va_list(void *data, int argc, object (fn_op(void *, common_typ
|
||||||
int equal(object,object);
|
int equal(object,object);
|
||||||
list assq(void *,object,list);
|
list assq(void *,object,list);
|
||||||
list assoc(void *,object x, list l);
|
list assoc(void *,object x, list l);
|
||||||
//object get(object,object);
|
|
||||||
object equalp(object,object);
|
object equalp(object,object);
|
||||||
object memberp(void *,object,list);
|
object memberp(void *,object,list);
|
||||||
object memqp(void *,object,list);
|
object memqp(void *,object,list);
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
#ifndef CYCLONE_TYPES_H
|
#ifndef CYCLONE_TYPES_H
|
||||||
#define CYCLONE_TYPES_H
|
#define CYCLONE_TYPES_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <time.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
// Maximum number of args that GC will accept
|
// Maximum number of args that GC will accept
|
||||||
|
|
12
runtime.c
12
runtime.c
|
@ -745,18 +745,6 @@ object memqp(void *data, object x, list l)
|
||||||
for (; l != NULL; l = cdr(l)) if (eq(x,car(l))) return boolean_t;
|
for (; l != NULL; l = cdr(l)) if (eq(x,car(l))) return boolean_t;
|
||||||
return boolean_f;}
|
return boolean_f;}
|
||||||
|
|
||||||
//object get(object x, object i)
|
|
||||||
//{
|
|
||||||
// object plist, plistd;
|
|
||||||
// if (x == NULL) return x;
|
|
||||||
// if (type_of(x)!=symbol_tag) {printf("get: bad x=%ld\n",((closure)x)->tag); exit(0);}
|
|
||||||
// plist = symbol_plist(x);
|
|
||||||
// for (; (plist != NULL); plist = cdr(plistd))
|
|
||||||
// {plistd = cdr(plist);
|
|
||||||
// if (eq(car(plist),i)) return car(plistd);}
|
|
||||||
// return NULL;
|
|
||||||
//}
|
|
||||||
|
|
||||||
object equalp(object x, object y)
|
object equalp(object x, object y)
|
||||||
{
|
{
|
||||||
for (; ; x = cdr(x), y = cdr(y)) {
|
for (; ; x = cdr(x), y = cdr(y)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue