resolved line ending warnings

This commit is contained in:
GruelingPine185
2022-09-23 18:16:53 -04:00
parent 2b0b678e25
commit ecbfcc28b5
11 changed files with 9 additions and 11 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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

View File

@@ -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)))

View File

@@ -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"

View File

@@ -73,4 +73,4 @@ TokenType findTypeByKeyword(const char* keyword) {
}
return TOKEN_EOF;
}
}

View File

@@ -11,4 +11,4 @@ extern KeywordType keywordTypes[];
char* findKeywordByType(TokenType type);
TokenType findTypeByKeyword(const char* keyword);
TokenType findTypeByKeyword(const char* keyword);

View File

@@ -345,4 +345,4 @@ void printToken(Token* token) {
}
printf("\n");
}
}

View File

@@ -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);

View File

@@ -97,4 +97,4 @@ Literal getLiteralArray(LiteralArray* array, Literal index) {
}
return copyLiteral(array->literals[idx]);
}
}