mirror of
https://github.com/adamdunkels/ubasic.git
synced 2026-11-20 11:39:43 +00:00
fix the <LF> style on windows system
This commit is contained in:
parent
cc07193c23
commit
37ece868f1
2 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ singlechar(void)
|
|||
{
|
||||
if(*ptr == '\n') {
|
||||
return TOKENIZER_CR;
|
||||
} else if(*ptr == '\r'){
|
||||
return TOKENIZER_LF;
|
||||
} else if(*ptr == ',') {
|
||||
return TOKENIZER_COMMA;
|
||||
} else if(*ptr == ';') {
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ enum {
|
|||
TOKENIZER_GT,
|
||||
TOKENIZER_EQ,
|
||||
TOKENIZER_CR,
|
||||
TOKENIZER_LF,
|
||||
};
|
||||
|
||||
void tokenizer_goto(const char *program);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue