mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-04-18 05:37:42 +00:00
Refactor: moved function prsdtc() into prscat()
This commit is contained in:
parent
d6bff15152
commit
45d66353d0
14
vars.c
14
vars.c
@ -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('{'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user