*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
extern void interpret (void);
extern void init_memory (void);
+extern void init_proc (void);
+extern void init_sound (void);
+extern void init_text (void);
extern void init_undo (void);
extern void reset_memory (void);
zword h_terminating_keys = 0;
zword h_line_width = 0;
zbyte h_standard_high = 1;
-zbyte h_standard_low = 0;
+zbyte h_standard_low = 1;
zword h_alphabet = 0;
zword h_extension_table = 0;
zbyte h_user_name[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
zword hx_mouse_x = 0;
zword hx_mouse_y = 0;
zword hx_unicode_table = 0;
+zword hx_flags = 0;
+zword hx_fore_colour = 0;
+zword hx_back_colour = 0;
/* Stack data */
int mouse_y = 0;
int mouse_x = 0;
+int menu_selected = 0;
/* Window attributes */
/* User options */
-/*
int option_attribute_assignment = 0;
int option_attribute_testing = 0;
int option_context_lines = 0;
int option_expand_abbreviations = 0;
int option_script_cols = 80;
int option_save_quetzal = 1;
-*/
+int option_err_report_mode = ERR_DEFAULT_REPORT_MODE;
int option_sound = 1;
char *option_zcode_path;
void z_piracy (void)
{
- branch (!f_setup.piracy);
+ branch (!option_piracy);
}/* z_piracy */
{ "-Q", glkunix_arg_NoValue, "-Q: use old-style save format" },
{ "-t", glkunix_arg_NoValue, "-t: set Tandy bit" },
{ "-x", glkunix_arg_NoValue, "-x: expand abbreviations g/x/z" },
-{ "-I", glkunix_arg_NumberValue, "-I: interpreter number" },
{ "-s", glkunix_arg_NumberValue, "-s: random number seed value" },
{ "-S", glkunix_arg_NumberValue, "-S: transcript width" },
{ "-u", glkunix_arg_NumberValue, "-u: slots for multiple undo" },
int glkunix_startup_code(glkunix_startup_t *data)
{
- myargc = data->argc;
- myargv = data->argv;
+ myargc = data->argc;
+ myargv = data->argv;
os_init_setup ();
os_process_arguments (myargc, myargv);
init_buffer ();
init_err ();
init_memory ();
- init_process ();
+ init_proc ();
init_sound ();
+ init_text ();
os_init_screen ();