mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
resolved line ending warnings
This commit is contained in:
@@ -96,4 +96,3 @@ int hookStandard(Interpreter* interpreter, Literal identifier, Literal alias) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -172,4 +172,4 @@ void emitASTNodePrefixIncrement(ASTNode** nodeHandle, Literal identifier, int in
|
||||
void emitASTNodePostfixIncrement(ASTNode** nodeHandle, Literal identifier, int increment);
|
||||
void emitASTNodeImport(ASTNode** nodeHandle, ASTNodeType mode, Literal identifier, Literal alias);
|
||||
void emitASTNodeIndex(ASTNode** nodeHandle, ASTNode* first, ASTNode* second, ASTNode* third);
|
||||
void emitASTNodeDot(ASTNode** nodeHandle, ASTNode* first);
|
||||
void emitASTNodeDot(ASTNode** nodeHandle, ASTNode* first);
|
||||
|
||||
@@ -9,4 +9,3 @@ int _push(Interpreter* interpreter, LiteralArray* arguments);
|
||||
int _pop(Interpreter* interpreter, LiteralArray* arguments);
|
||||
int _length(Interpreter* interpreter, LiteralArray* arguments);
|
||||
int _clear(Interpreter* interpreter, LiteralArray* arguments);
|
||||
|
||||
|
||||
@@ -122,4 +122,4 @@ void copyrightCommand(int argc, const char* argv[]) {
|
||||
printf("3. This notice may not be removed or altered from any source distribution.\n\n");
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -40,4 +40,4 @@ void copyrightCommand(int argc, const char* argv[]);
|
||||
#endif
|
||||
|
||||
//NOTE: assigning to a byte from a short loses data
|
||||
#define AS_USHORT(value) (*(unsigned short*)(&(value)))
|
||||
#define AS_USHORT(value) (*(unsigned short*)(&(value)))
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
#define NOTICE FONT_GREEN BACK_BLACK
|
||||
#define WARN FONT_YELLOW BACK_BLACK
|
||||
#define ERROR FONT_RED BACK_BLACK
|
||||
#define RESET "\033[0m"
|
||||
#define RESET "\033[0m"
|
||||
|
||||
@@ -73,4 +73,4 @@ TokenType findTypeByKeyword(const char* keyword) {
|
||||
}
|
||||
|
||||
return TOKEN_EOF;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,4 +11,4 @@ extern KeywordType keywordTypes[];
|
||||
|
||||
char* findKeywordByType(TokenType type);
|
||||
|
||||
TokenType findTypeByKeyword(const char* keyword);
|
||||
TokenType findTypeByKeyword(const char* keyword);
|
||||
|
||||
@@ -345,4 +345,4 @@ void printToken(Token* token) {
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@ TOY_API void initLexer(Lexer* lexer, char* source);
|
||||
Token scanLexer(Lexer* lexer);
|
||||
|
||||
//for debugging
|
||||
void printToken(Token* token);
|
||||
void printToken(Token* token);
|
||||
|
||||
@@ -97,4 +97,4 @@ Literal getLiteralArray(LiteralArray* array, Literal index) {
|
||||
}
|
||||
|
||||
return copyLiteral(array->literals[idx]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user