static void
cold_system (void)
{
SP = p4_S0;
# ifndef P4_NO_FP
FP = p4_F0;
# endif
# ifdef P4_RP_IN_VM
RP = p4_R0;
# endif
TIB = PFE.tib;
BASE = 10;
p4_DPL = -1;
PRECISION = p4_search_option_value("precision" ,9, 6, PFE.set);
WORDL_FLAG = 0;
if (p4_search_option_value("source-any-case" ,15, PFE_set.find_any_case,
PFE.set)) WORDL_FLAG |= WORDL_NOCASE;
if (p4_search_option_value("source-upper-case" ,17, PFE_set.upper_case_on,
PFE.set)) WORDL_FLAG |= WORDL_UPPER_CASE;
LOWER_CASE_FN = p4_search_option_value("lower-case-filenames" ,20,
PFE_set.lower_case_fn, PFE.set);
FLOAT_INPUT = P4_opt.float_input;
PFE.local = (char (*)[32]) PFE.stack;
memset (PFE.files_top - 3, 0, sizeof (File) * 3);
PFE.stdIn = PFE.files_top - 3;
PFE.stdIn->f = stdin;
strcpy (PFE.stdIn->name, "<STDIN>" );
strcpy (PFE.stdIn->mdstr, "r" );
PFE.stdIn->mode = FMODE_RO;
PFE.stdOut = PFE.files_top - 2;
PFE.stdOut->f = stdout;
strcpy (PFE.stdOut->name, "<STDOUT>" );
strcpy (PFE.stdOut->mdstr, "a" );
PFE.stdOut->mode = FMODE_WO;
PFE.stdErr = PFE.files_top - 1;
PFE.stdErr->f = stderr;
strcpy (PFE.stdErr->name, "<STDERR>" );
strcpy (PFE.stdErr->mdstr, "a" );
PFE.stdErr->mode = FMODE_WO;
REDEFINED_MSG = P4_FALSE;
memset (PFE.dict, 0, (PFE.dictlimit - PFE.dict));
p4_preload_only ();
if (! PFE.abort_wl) PFE.abort_wl = p4_new_wordlist (0);
if (! PFE.prompt_wl) PFE.prompt_wl = p4_new_wordlist (0);
FX (p4_only_RT);
{
#ifndef MODULE0
#define MODULE0 extensions
#endif
extern const p4Words P4WORDS (forth);
extern const p4Words P4WORDS (MODULE0);
#ifdef MODULE1
extern const p4Words P4WORDS (MODULE1);
#endif
#ifdef MODULE2
extern const p4Words P4WORDS (MODULE2);
#endif
#ifdef MODULE3
extern const p4Words P4WORDS (MODULE3);
#endif
p4_load_words (&P4WORDS (forth), ONLY, 0);
p4_load_words (&P4WORDS (MODULE0), ONLY, 0);
#ifdef MODULE1
p4_load_words (&P4WORDS (MODULE1), ONLY, 0);
#endif
#ifdef MODULE2
p4_load_words (&P4WORDS (MODULE2), ONLY, 0);
#endif
#ifdef MODULE3
p4_load_words (&P4WORDS (MODULE3), ONLY, 0);
#endif
if (PFE.set->loadlist[0])
p4_load_words (PFE.set->loadlist[0], ONLY, 0);
if (PFE.set->loadlist[1])
p4_load_words (PFE.set->loadlist[1], ONLY, 0);
if (PFE.set->loadlist[2])
p4_load_words (PFE.set->loadlist[2], ONLY, 0);
if (PFE.set->loadlist[3])
p4_load_words (PFE.set->loadlist[3], ONLY, 0);
}
CURRENT = CONTEXT[0] = PFE.forth_wl;
FX (p4_default_order);
REDEFINED_MSG = P4_TRUE;
} |