Added Nitfol and Frotz source code.
[projects/chimara/chimara.git] / interpreters / nitfol / infix.h
1 /* This is a Cfunctions (version 0.24) generated header file.
2    Cfunctions is a free program for extracting headers from C files.
3    Get Cfunctions from `http://www.hayamasa.demon.co.uk/cfunctions'. */
4
5 /* This file was generated with:
6 `cfunctions -i infix.c' */
7 #ifndef CFH_INFIX_H
8 #define CFH_INFIX_H
9
10 /* From `infix.c': */
11
12
13 #ifdef DEBUGGING
14 typedef enum { Z_UNKNOWN, Z_BOOLEAN, Z_NUMBER, Z_OBJECT, Z_ROUTINE, Z_STRING, Z_GLOBAL, Z_LOCAL, Z_BYTEARRAY, Z_WORDARRAY, Z_OBJPROP, Z_ATTR, Z_PROP, Z_ARRAY }z_type;
15 typedef struct z_typed z_typed;
16 struct z_typed {
17   zword v;      
18   z_type t;
19
20   zword o, p;   
21
22 ;
23 typedef struct {
24   const char *filename;
25   strid_t stream;
26   int num_lines;
27   glui32 *line_locations;
28
29 infix_file;
30 typedef struct {
31   infix_file *file;
32   int line_num;
33   int line_x;
34   const char *func_name;
35   unsigned func_num;
36   offset thisPC;
37
38 infix_location;
39 offset infix_get_routine_PC (zword routine );
40 void infix_file_print_line (infix_file *f , int line );
41 BOOL init_infix (strid_t infix );
42 void kill_infix (void);
43 void infix_print_znumber (zword blah );
44 void infix_print_offset (zword blah );
45 void infix_print_number (zword blah );
46 void infix_print_char (int blah );
47 void infix_print_fixed_char (int blah );
48 void infix_print_string (const char *blah );
49 void infix_print_fixed_string (const char *blah );
50 void infix_get_string (char *dest , int maxlen );
51 void infix_get_val (z_typed *val );
52 void infix_assign (z_typed *dest , zword val );
53 void infix_display (z_typed val );
54 int infix_find_file (infix_file **dest , const char *name );
55 BOOL infix_find_symbol (z_typed *val , const char *name , int len );
56 const char * infix_get_name (z_typed val );
57 BOOL infix_decode_PC (infix_location *dest , offset thisPC );
58 BOOL infix_decode_fileloc (infix_location *dest , const char *filename , unsigned line_num );
59 BOOL infix_decode_func_name (infix_location *dest , const char *file_name , const char *func_name );
60 void infix_gprint_loc (int frame , offset thisPC );
61 void infix_list_files (void);
62
63 #else
64 BOOL init_infix (strid_t unused );
65
66 #endif
67
68 #endif /* CFH_INFIX_H */