2009-02-21 12:52:44 +02:00
|
|
|
#ifndef __INSTEAD_H__
|
|
|
|
#define __INSTEAD_H__
|
|
|
|
|
2010-09-16 16:16:43 +03:00
|
|
|
#define INSTEAD_NIL 0
|
|
|
|
#define INSTEAD_NUM 1
|
|
|
|
#define INSTEAD_STR 2
|
|
|
|
#define INSTEAD_BOOL 3
|
|
|
|
|
|
|
|
struct instead_args {
|
|
|
|
int type;
|
|
|
|
const char *val;
|
|
|
|
};
|
|
|
|
|
2009-02-21 12:52:44 +02:00
|
|
|
extern int instead_init(void);
|
|
|
|
extern int instead_load(char *game);
|
|
|
|
extern void instead_done(void);
|
|
|
|
extern char *instead_cmd(char *s);
|
2010-09-16 16:16:43 +03:00
|
|
|
extern int instead_function(char *s, struct instead_args *args);
|
2009-11-12 11:07:17 +02:00
|
|
|
extern int instead_eval(char *s);
|
2009-11-13 10:19:23 +02:00
|
|
|
extern int instead_clear(void);
|
2009-11-12 11:07:17 +02:00
|
|
|
extern char *instead_retval(int n);
|
2009-11-13 10:19:23 +02:00
|
|
|
extern int instead_bretval(int n);
|
2009-11-14 20:10:10 +02:00
|
|
|
extern int instead_iretval(int n);
|
2010-07-15 09:59:57 +03:00
|
|
|
extern int instead_lang(void);
|
2009-08-26 08:25:53 +03:00
|
|
|
char *fromgame(const char *s);
|
2009-10-12 08:07:15 +03:00
|
|
|
extern int instead_encode(const char *s, const char *d);
|
2009-02-21 12:52:44 +02:00
|
|
|
#endif
|