mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-03-03 12:31:32 +00:00
tokenize_asoft: fix some minor issues found by qkumba code
don't need space after line number quotes, especially those in REM statements end at end of line
This commit is contained in:
parent
13aed3fe6f
commit
9a6ef1a7ae
@ -100,9 +100,11 @@ static int get_line_num(int *linenum, int *custom_offset) {
|
||||
|
||||
while (*line_ptr>' ') {
|
||||
if ((*line_ptr<'0')||(*line_ptr>'9')) {
|
||||
fprintf(stderr,"Invalid line number line %d\n",line);
|
||||
show_problem(line_ptr);
|
||||
exit(-1);
|
||||
// fprintf(stderr,"Invalid line number line %d\n",line);
|
||||
// show_problem(line_ptr);
|
||||
// exit(-1);
|
||||
/* not a bug */
|
||||
break;
|
||||
}
|
||||
num*=10;
|
||||
num+=(*line_ptr)-'0';
|
||||
@ -287,6 +289,9 @@ int main(int argc, char **argv) {
|
||||
/* remarks end at end of line */
|
||||
in_rem=0;
|
||||
|
||||
/* quotes do too */
|
||||
in_quotes=0;
|
||||
|
||||
/* 2 bytes is to ignore size from beginning of file */
|
||||
link_value=0x801+(offset-2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user