1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-08 21:29:30 +00:00

Refactor: moved function prsdtc() into prscat()

This commit is contained in:
Curtis F Kaylor 2018-02-08 23:14:34 -05:00
parent d6bff15152
commit 45d66353d0

14
vars.c
View File

@ -43,7 +43,6 @@ void chksym(int alwreg, char *name)
ERROR("Undeclared variable '%s' encountered\n", name, EXIT_FAILURE);
}
/* Parse Variable Name *
* Parameters: alwary - Allow Array Reference *
* Sets: vrname - operand for LDA/STA/LDY/STY */
@ -55,13 +54,6 @@ void reqvar(int alwary)
expctd("Variable");
}
/* Parse Data Constant */
void prsdtc()
{
dtype = DTBYTE;
prscon();
}
/* Parse Data Array */
void prsdta()
{
@ -123,8 +115,10 @@ void prsdat()
return;
}
skpspc();
if (iscpre())
prsdtc(); //Parse Data Constant
if (iscpre()) {
dtype = DTBYTE;
prscon(); //Parse Data Constant
}
else if (match('"'))
prsdts(); //Parse Data String
else if (match('{'))