| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#include <ctype.h> |
| 7 |
#include <limits.h> |
| 8 |
#include <sys/stat.h> |
| 9 |
#include <time.h> |
| 10 |
#include <math.h> |
| 11 |
#include <stdio.h> |
| 12 |
#include <stdlib.h> |
| 13 |
#include <string.h> |
| 14 |
|
| 15 |
#ifdef __NDS__ |
| 16 |
#include <nds.h> |
| 17 |
#include <fat.h> |
| 18 |
#endif |
| 19 |
|
| 20 |
#ifdef GLK |
| 21 |
#include <glk.h> |
| 22 |
#include "gi_blorb.h" |
| 23 |
#endif |
| 24 |
|
| 25 |
#ifdef FCGIJACL |
| 26 |
#include <fcgi_stdio.h> |
| 27 |
#endif |
| 28 |
|
| 29 |
#include "version.h" |
| 30 |
|
| 31 |
#ifndef M_PI |
| 32 |
#define M_PI 3.14159265358979323846 |
| 33 |
#endif |
| 34 |
|
| 35 |
#ifdef _WIN32 |
| 36 |
#define DIR_SEPARATOR '\\' |
| 37 |
#define TEMP_DIR "temp\\" |
| 38 |
#define DATA_DIR "data\\" |
| 39 |
#define INCLUDE_DIR "include\\" |
| 40 |
#else |
| 41 |
#define DIR_SEPARATOR '/' |
| 42 |
#define DATA_DIR "data/" |
| 43 |
#define TEMP_DIR "temp/" |
| 44 |
#define INCLUDE_DIR "include/" |
| 45 |
#endif |
| 46 |
|
| 47 |
#ifdef __APPLE__ |
| 48 |
#define get_string jacl_get_string |
| 49 |
#endif |
| 50 |
|
| 51 |
extern short int spaced; |
| 52 |
|
| 53 |
extern char temp_directory[]; |
| 54 |
extern char data_directory[]; |
| 55 |
|
| 56 |
extern int walkthru_running; |
| 57 |
|
| 58 |
extern int start_of_last_command; |
| 59 |
extern int start_of_this_command; |
| 60 |
|
| 61 |
extern int objects, integers, functions, strings; |
| 62 |
|
| 63 |
extern int start_of_this_command; |
| 64 |
extern int start_of_last_command; |
| 65 |
extern int buffer_index; |
| 66 |
extern int objects; |
| 67 |
extern int integers; |
| 68 |
extern int player; |
| 69 |
extern int oec; |
| 70 |
extern int *object_element_address; |
| 71 |
extern int *object_backup_address; |
| 72 |
|
| 73 |
extern char error_buffer[]; |
| 74 |
extern char temp_buffer[]; |
| 75 |
|
| 76 |
extern char user_id[]; |
| 77 |
extern char prefix[]; |
| 78 |
extern char processed_file[]; |
| 79 |
extern char function_name[]; |
| 80 |
|
| 81 |
extern char override[]; |
| 82 |
extern char game_file[]; |
| 83 |
extern char game_path[]; |
| 84 |
extern char blorb[]; |
| 85 |
extern char bookmark[]; |
| 86 |
extern char walkthru[]; |
| 87 |
extern char include_directory[]; |
| 88 |
extern char temp_directory[]; |
| 89 |
extern char data_directory[]; |
| 90 |
extern int noun[]; |
| 91 |
extern char last_command[]; |
| 92 |
|
| 93 |
extern struct object_type *object[]; |
| 94 |
extern struct integer_type *integer_table; |
| 95 |
extern struct integer_type *integer[]; |
| 96 |
extern struct cinteger_type *cinteger_table; |
| 97 |
extern struct attribute_type *attribute_table; |
| 98 |
extern struct string_type *string_table; |
| 99 |
extern struct string_type *cstring_table; |
| 100 |
extern struct function_type *function_table; |
| 101 |
extern struct function_type *executing_function; |
| 102 |
extern struct command_type *completion_list; |
| 103 |
extern struct word_type *grammar_table; |
| 104 |
extern struct synonym_type *synonym_table; |
| 105 |
extern struct filter_type *filter_table; |
| 106 |
|
| 107 |
#ifdef GLK |
| 108 |
extern schanid_t sound_channel[]; |
| 109 |
extern strid_t game_stream; |
| 110 |
extern winid_t mainwin; |
| 111 |
extern winid_t statuswin; |
| 112 |
extern winid_t current_window; |
| 113 |
|
| 114 |
extern glui32 status_width, status_height; |
| 115 |
|
| 116 |
extern strid_t mainstr; |
| 117 |
extern strid_t statusstr; |
| 118 |
extern strid_t quotestr; |
| 119 |
extern strid_t inputstr; |
| 120 |
#else |
| 121 |
extern FILE *file; |
| 122 |
#endif |