Renamed package to ion1, and made it conflict with package 'ion'.
[ion1.git] / src / function.h
blob5af8188d6f9731571154932e1dff7511e11b13d2
1 /*
2 * ion/function.h
4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
6 */
8 #ifndef INCLUDED_FUNCTION_H
9 #define INCLUDED_FUNCTION_H
11 #include "common.h"
12 #include <libtu/tokenizer.h>
14 INTRSTRUCT(WFunction)
16 #include "thing.h"
19 enum{
20 FUNTAB_MAIN=0,
21 FUNTAB_MOVERES=1,
22 FUNTAB_INPUT=2
26 typedef void WFuncHandler(WThing *thing, WFunction *func,
27 int n, const Token *args);
30 DECLSTRUCT(WFunction){
31 WFuncHandler *callhnd;
32 WObjDescr *objdescr;
33 char *argtypes;
34 char *name;
35 void *fn;
39 extern WFunction *lookup_func(const char *name, int funtab);
40 extern int complete_mainfunc(char *nam, char ***cp_ret, char **beg);
42 #endif /* INCLUDED_FUNCTION_H */