Mercurial > repos > rhope
diff runtime/object.h @ 53:70af7fa155d0
Cleaned up some C warnings and added a simple compile script
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 29 Apr 2010 04:32:54 +0000 |
parents | 3e20ed8959c4 |
children | 04baa003de5a |
line wrap: on
line diff
--- a/runtime/object.h Wed Apr 28 01:23:30 2010 -0400 +++ b/runtime/object.h Thu Apr 29 04:32:54 2010 +0000 @@ -30,10 +30,10 @@ int32_t boxed_size; } blueprint; -typedef struct object { +struct object { rh_atomic32(refcount); blueprint *bprint; -} object; +}; typedef struct { object base; @@ -41,7 +41,7 @@ } multisize; -typedef struct calldata { +struct calldata { rhope_func tail_func; struct context *ct; void *locals; @@ -50,7 +50,7 @@ uint16_t num_params; uint16_t resume; object *params[1]; -} calldata; +}; #define OBegin typedef struct { #define Object(name) } nt_ ## name; typedef struct { object SP_header; nt_ ## name payload; } t_ ## name;