comparison 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
comparison
equal deleted inserted replaced
52:079200bc3e75 53:70af7fa155d0
1 #ifndef _FUNC_H_ 1 #ifndef _FUNC_H_
2 #define _FUNC_H_ 2 #define _FUNC_H_
3
4 typedef struct object object;
5 typedef struct calldata calldata;
3 6
4 typedef enum { 7 typedef enum {
5 NORMAL_RETURN=0, 8 NORMAL_RETURN=0,
6 EXCEPTION_RETURN, 9 EXCEPTION_RETURN,
7 TAIL_RETURN, 10 TAIL_RETURN,
8 NO_CONVERSION, 11 NO_CONVERSION,
9 STACK_UNWIND 12 STACK_UNWIND
10 } returntype; 13 } returntype;
11 14
12 15
13 typedef returntype (*rhope_func)(struct calldata *); 16 typedef returntype (*rhope_func)(calldata *);
14 typedef void (*special_func) (struct object *); 17 typedef void (*special_func) (object *);
15 18
16 #define MethodName(name,type) f_ ## name ## AT_ ## type 19 #define MethodName(name,type) f_ ## name ## AT_ ## type
17 20
18 #define Func(name,numparams,callspace,localtype) \ 21 #define Func(name,numparams,callspace,localtype) \
19 returntype f_ ## name (calldata * cdata)\ 22 returntype f_ ## name (calldata * cdata)\