Mercurial > repos > rhope
diff runtime/func.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 | a24eb366195c |
children | 04baa003de5a |
line wrap: on
line diff
--- a/runtime/func.h Wed Apr 28 01:23:30 2010 -0400 +++ b/runtime/func.h Thu Apr 29 04:32:54 2010 +0000 @@ -1,6 +1,9 @@ #ifndef _FUNC_H_ #define _FUNC_H_ +typedef struct object object; +typedef struct calldata calldata; + typedef enum { NORMAL_RETURN=0, EXCEPTION_RETURN, @@ -10,8 +13,8 @@ } returntype; -typedef returntype (*rhope_func)(struct calldata *); -typedef void (*special_func) (struct object *); +typedef returntype (*rhope_func)(calldata *); +typedef void (*special_func) (object *); #define MethodName(name,type) f_ ## name ## AT_ ## type