mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-26 11:30:12 +00:00
tokenize_asoft: reformat whitespace
should not be any other changes to code
This commit is contained in:
parent
f23458546f
commit
e1601457af
@ -52,6 +52,7 @@ int line=0;
|
||||
char input_line[BUFSIZ];
|
||||
|
||||
static void show_problem(char *line_ptr) {
|
||||
|
||||
int offset,i;
|
||||
|
||||
offset=(int)(line_ptr-input_line);
|
||||
@ -60,9 +61,8 @@ static void show_problem(char *line_ptr) {
|
||||
fprintf(stderr,"^\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int getnum(void) {
|
||||
|
||||
int num=0;
|
||||
|
||||
/* skip any whitespace */
|
||||
@ -89,7 +89,7 @@ static int getnum(void) {
|
||||
|
||||
static int in_quotes=0,in_rem=0;
|
||||
|
||||
static int find_token() {
|
||||
static int find_token(void) {
|
||||
|
||||
int ch,i;
|
||||
|
||||
@ -125,12 +125,15 @@ static int find_token() {
|
||||
// fprintf(stderr,
|
||||
// "Found token %x (%s) %d\n",0x80+i,
|
||||
// applesoft_tokens[i],i);
|
||||
|
||||
line_ptr+=strlen(applesoft_tokens[i]);
|
||||
|
||||
/* REM is 0x32 */
|
||||
if (i==0x32) in_rem=1;
|
||||
|
||||
return 0x80+i;
|
||||
}
|
||||
|
||||
//fprintf(stderr,"%s ",applesoft_tokens[i]);
|
||||
}
|
||||
}
|
||||
@ -143,15 +146,13 @@ static int find_token() {
|
||||
}
|
||||
|
||||
static void check_oflo(int size) {
|
||||
|
||||
if (size>MAXSIZE) {
|
||||
fprintf(stderr,"Output file too big!\n");
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
int offset=2,i;
|
||||
|
Loading…
Reference in New Issue
Block a user