WIP conversion

This commit is contained in:
Justin Ethier 2021-05-20 19:58:14 -07:00
parent 92896d2202
commit c44f7fcc0b
2 changed files with 272 additions and 148 deletions

View file

@ -665,9 +665,6 @@ typedef uint32_t char_type;
/** Function type */ /** Function type */
typedef void (*function_type) (void *data, object clo, int argc, object *args); typedef void (*function_type) (void *data, object clo, int argc, object *args);
/** Primitive function */
typedef void (*primitive_function_type)(void *data, object cont, object args);
/** Non-CPS function type */ /** Non-CPS function type */
typedef object (*inline_function_type) (); typedef object (*inline_function_type) ();
@ -1473,8 +1470,8 @@ typedef closure0_type *macro;
typedef struct { typedef struct {
gc_header_type hdr; gc_header_type hdr;
tag_type tag; tag_type tag;
function_type fn;
const char *desc; const char *desc;
primitive_function_type fn;
} primitive_type; } primitive_type;
typedef primitive_type *primitive; typedef primitive_type *primitive;

415
runtime.c

File diff suppressed because it is too large Load diff