{
char old_setting;
integer nn;
- bool bottomline;
+ boolean bottomline;
integer i;
integer j;
integer l;
break;
default:
- print_cmd_chr(assign_toks, t + (hash_size + 1307));
+ print_cmd_chr(assign_toks, t - output_text + output_routine_loc);
break;
}
print(buffer[k]);
first = cur_input.limit_field;
-
- {
- ;
- print_string("=>");
- term_input("=>", 0);
- }
+ prompt_input("=>");
if (last > first)
{
t = s;
do
{
- {
- q = get_avail();
- mem[p].hh.v.RH = q;
- mem[q].hh.v.LH = mem[t].hh.v.LH;
- p = q;
- }
-
+ store_new_token(info(t));
incr(m);
u = link(t);
v = s;
while (true)
{
- {
- {
- q = avail;
-
- if (q == 0)
- q = get_avail();
- else
- {
- avail = mem[q].hh.v.RH;
- mem[q].hh.v.RH = 0;
-#ifdef STAT
- incr(dyn_used);
-#endif /* STAT */
- }
- }
-
- mem[p].hh.v.RH = q;
- mem[q].hh.v.LH = cur_tok;
- p = q;
- }
-
+ fast_store_new_token(cur_tok);
get_token();
if (cur_tok == par_token)
}
lab31:
rbraceptr = p;
-
- {
- q = get_avail();
- mem[p].hh.v.RH = q;
- mem[q].hh.v.LH = cur_tok;
- p = q;
- }
+ store_new_token(cur_tok);
}
else
{
if (info(r) >= match_token)
goto lab22;
- {
- q = get_avail();
- mem[p].hh.v.RH = q; /* p may be used without having ... */
- mem[q].hh.v.LH = cur_tok;
- p = q;
- }
+ store_new_token(cur_tok);
}
incr(m); /* m may be used without having been ... */
get_x_token();
if (cur_cs == 0)
- {
- q = get_avail();
- mem[p].hh.v.RH = q;
- mem[q].hh.v.LH = cur_tok;
- p = q;
- }
+ store_new_token(cur_tok);
}
while(!(cur_cs != 0));
back_input();
}
/* sec 0407 */
-bool scan_keyword_(char * s)
+boolean scan_keyword_(const char * s)
{
halfword p;
halfword q;
- char * k;
+ const char * k;
p = backup_head;
link(p) = 0;
if ((cur_cs == 0) && ((cur_chr == (*k)) || (cur_chr == (*k) - 'a' + 'A')))
{
- {
- q = get_avail();
- mem[p].hh.v.RH = q;
- mem[q].hh.v.LH = cur_tok;
- p = q;
- }
-
+ store_new_token(cur_tok);
incr(k);
}
else if ((cur_cmd != spacer) || (p != backup_head))
cur_val = f;
}
/* sec 0578 */
-void find_font_dimen_(bool writing)
+void find_font_dimen_(boolean writing)
{
internal_font_number f;
integer n;
cur_val = fmem_ptr - 1;
}
else if (n > 0)
- cur_val = n + param_base[f]; /* 98/Oct/5 */
-// else
-// cur_val = (&font_check[f] - &font_info[0]); /* 98/Oct/5 */
-/* checksum = (((font_check[f].b0) << 8 | font_check[f].b1) << 8 |
- font_check[f].b2) << 8 | font_check[f].b3; */
+ cur_val = n + param_base[f];
}
-/* compiler error: '-' : incompatible types - from 'union fmemoryword *' to 'struct fourunsignedchars *' */
+
if (cur_val == fmem_ptr)
{
print_err("Font ");
-/* print_esc(hash[(hash_size + 524) + f].v.RH); */
print_esc(""); print(font_id_text(f));
print_string(" has only ");
print_int(font_params[f]);
error();
}
}
-/* NOTE: the above use of /fontdimen0 to access the checksum is a kludge */
-/* In future would be better to do this by allocating one more slot for */
-/* for parameters when a font is read rather than carry checksum separately */
-/* The above gets the value byte order reversed ... 98/Oct/5 */
/* sec 0413 */
-void scan_something_internal_(small_number level, bool negative)
+void scan_something_internal_(small_number level, boolean negative)
{
halfword m;
integer p;
}
{
- cur_val = eqtb[m].hh.v.RH;
+ cur_val = eqtb[m].hh.rh;
cur_val_level = tok_val;
}
}
scan_font_ident();
{
- cur_val = font_id_base + cur_val; /* 96/Jan/10 */
+ cur_val = font_id_base + cur_val;
cur_val_level = ident_val;
}
}
case assign_glue:
{
- cur_val = eqtb[m].hh.v.RH;
+ cur_val = eqtb[m].hh.rh;
cur_val_level = glue_val;
}
break;
case assign_mu_glue:
{
- cur_val = eqtb[m].hh.v.RH;
+ cur_val = eqtb[m].hh.rh;
cur_val_level = mu_val;
}
break;
case set_aux:
- if (abs(mode)!= m)
+ if (abs(mode) != m)
{
print_err("Improper ");
print_cmd_chr(set_aux, m);
nest[nest_ptr] = cur_list;
p = nest_ptr;
- while (abs(nest[p].mode_field)!= vmode)
+ while (abs(nest[p].mode_field) != vmode)
decr(p);
{
else if ((cur_val_level >= glue_val) && (cur_val_level <= mu_val))
add_glue_ref(cur_val);
}
-/*****************************************************************************/
-/* Moved here to avoid question about pragma optimize 96/Sep/12 */
/* sec 0341 */
void get_next (void)
{
print_ln();
first = cur_input.start_field;
-
- {
- ;
- print_string("*");
- term_input("*", 0);
- }
-
+ prompt_input("*");
cur_input.limit_field = last;
if ((end_line_char < 0) || (end_line_char > 255))
align_state = 1000000L;
goto lab20;
}
-}
-//#pragma optimize ("", on) /* 96/Sep/12 */
\ No newline at end of file
+}
\ No newline at end of file