register struct e_arg *arg;
{
- if (((!typset) && arg->ems_argtype) ||
- ((!arg->ems_argtype) && typset)) {
+ if (((!typset) && arg->ema_argtype) ||
+ ((!arg->ema_argtype) && typset)) {
/* End of arguments expected, but there are more, or
an argument expected, but there is none
*/
return;
}
- if (!(arg->ems_argtype & typset)) {
+ if (!(arg->ema_argtype & typset)) {
/* Type error */
EM_error = "Illegal parameter type";
}
case ps_pro:
getarg(pro_ptyp, &(p->em_arg));
getarg(cst_ptyp|ptyp(sp_cend), &dummy);
- if (dummy.ems_argtype == 0) {
+ if (dummy.ema_argtype == 0) {
p->em_nlocals = -1;
}
else p->em_nlocals = dummy.ema_cst;
int expsign;
long str2long();
- ap->ems_argtype = cst_ptyp;
+ ap->ema_argtype = cst_ptyp;
expsign = 0;
if (c == '+' || c == '-') {
strcpy(string.str, str);
ap->ema_string = string.str;
gettyp(cst_ptyp, &dummy);
- ap->ems_szoroff = dummy.ema_cst;
+ ap->ema_szoroff = dummy.ema_cst;
switch(c) {
case 'I':
- ap->ems_argtype = ico_ptyp;
+ ap->ema_argtype = ico_ptyp;
return sp_icon;
case 'U':
- ap->ems_argtype = uco_ptyp;
+ ap->ema_argtype = uco_ptyp;
return sp_ucon;
case 'F':
- ap->ems_argtype = fco_ptyp;
+ ap->ema_argtype = fco_ptyp;
return sp_fcon;
}
assert(0);
out("name\n");
ungetbyte(c);
ap->ema_dnam = getname()->str;
- ap->ems_argtype = sof_ptyp;
- argtyp = offsetted(sp_dnam, &(ap->ems_szoroff));
+ ap->ema_argtype = sof_ptyp;
+ argtyp = offsetted(sp_dnam, &(ap->ema_szoroff));
}
else if (c == '.') {
out(".label\n");
ap->ema_dlb = get15u();
- ap->ems_argtype = nof_ptyp;
- argtyp = offsetted(sp_dlb2, &(ap->ems_szoroff));
+ ap->ema_argtype = nof_ptyp;
+ argtyp = offsetted(sp_dlb2, &(ap->ema_szoroff));
}
else if (c == '*') {
out("*label\n");
ap->ema_ilb = get15u();
- ap->ems_argtype = ilb_ptyp;
+ ap->ema_argtype = ilb_ptyp;
argtyp = sp_ilb2;
}
else if (c == '$') {
out("$name\n");
ap->ema_pnam = getname()->str;
- ap->ems_argtype = pro_ptyp;
+ ap->ema_argtype = pro_ptyp;
argtyp = sp_pnam;
}
else if (c == '"' || c == '\'') {
ungetbyte(c);
s = getstring(0);
ap->ema_string = s->str;
- ap->ems_szoroff = s->length;
- ap->ems_argtype = str_ptyp;
+ ap->ema_szoroff = s->length;
+ ap->ema_argtype = str_ptyp;
argtyp = sp_scon;
}
else if (c == '?') {
out("?\n");
argtyp = sp_cend;
- ap->ems_argtype = 0;
+ ap->ema_argtype = 0;
}
else {
/* c != '\n', so "ungetbyte" not neccesary */
}
if (argtyp == sp_cend) {
- ap->ems_argtype = 0;
+ ap->ema_argtype = 0;
}
return;
}
gettyp(ptyp(sp_cst2), &dummy);
EM_lineno = dummy.ema_cst;
gettyp(str_ptyp, &dummy);
- btscpy(filebuf, dummy.ema_string, (int) dummy.ems_szoroff);
+ btscpy(filebuf, dummy.ema_string, (int) dummy.ema_szoroff);
EM_filename = filebuf;
}
default:
if (i < sp_fcst0+sp_ncst0 && i >= sp_fcst0) { /* A cst */
ap->ema_cst = i - sp_zcst0;
- ap->ems_argtype = cst_ptyp;
+ ap->ema_argtype = cst_ptyp;
i = sp_cst2;
}
break;
case sp_dlb1: /* Numeric data label encoded in one byte */
ap->ema_dlb = getbyte();
- ap->ems_szoroff = 0;
- ap->ems_argtype = nof_ptyp;
+ ap->ema_szoroff = 0;
+ ap->ema_argtype = nof_ptyp;
break;
case sp_dlb2: /* Numeric data label encoded in two bytes */
ap->ema_dlb = get16();
- ap->ems_szoroff = 0;
- ap->ems_argtype = nof_ptyp;
+ ap->ema_szoroff = 0;
+ ap->ema_argtype = nof_ptyp;
#ifdef CHECKING
if (ap->ema_dlb > 32767 && !EM_error) {
EM_error = "Illegal data label";
case sp_ilb1: /* Instruction label encoded in one byte */
ap->ema_ilb = getbyte();
- ap->ems_argtype = ilb_ptyp;
+ ap->ema_argtype = ilb_ptyp;
break;
case sp_ilb2: /* Instruction label encoded in two bytes */
ap->ema_ilb = get16();
- ap->ems_argtype = ilb_ptyp;
+ ap->ema_argtype = ilb_ptyp;
#ifdef CHECKING
if (ap->ema_ilb > 32767 && !EM_error) {
EM_error = "Illegal instruction label";
case sp_cst2: /* A cst encoded in two bytes */
ap->ema_cst = get16();
- ap->ems_argtype = cst_ptyp;
+ ap->ema_argtype = cst_ptyp;
break;
case sp_cst4: /* A cst encoded in four bytes */
ap->ema_cst = get32();
- ap->ems_argtype = cst_ptyp;
+ ap->ema_argtype = cst_ptyp;
break;
case sp_pnam: /* A procedure name */
}
#endif CHECKING
ap->ema_pnam = p->str;
- ap->ems_argtype = pro_ptyp;
+ ap->ema_argtype = pro_ptyp;
break;
}
}
#endif CHECKING
ap->ema_dnam = p->str;
- ap->ems_szoroff = 0;
- ap->ems_argtype = sof_ptyp;
+ ap->ema_szoroff = 0;
+ ap->ema_argtype = sof_ptyp;
break;
}
getarg(lab_ptyp, ap);
getarg(cst_ptyp, &dummy);
- ap->ems_szoroff = dummy.ema_cst;
+ ap->ema_szoroff = dummy.ema_cst;
break;
}
register struct string *p;
getarg(cst_ptyp, ap);
- ap->ems_szoroff = ap->ema_cst;
+ ap->ema_szoroff = ap->ema_cst;
p = getstring(0);
#ifdef CHECKING
if (state & INSTRING) {
xerror("Numeric constant too long");
}
#endif CHECKING
- ap->ems_argtype = ptyp(i);
+ ap->ema_argtype = ptyp(i);
ap->ema_string = p->str;
break;
}
register struct string *p;
p = getstring(0);
- ap->ems_argtype = str_ptyp;
+ ap->ema_argtype = str_ptyp;
ap->ema_string = p->str;
- ap->ems_szoroff = p->length;
+ ap->ema_szoroff = p->length;
break;
}
}
EM_error = "Bad argument type";
}
if (argtyp == sp_cend) {
- ap->ems_argtype = 0;
+ ap->ema_argtype = 0;
}
#else not CHECKING
if (i == sp_cend) {
- ap->ems_argtype = 0;
+ ap->ema_argtype = 0;
}
#endif CHECKING
}