mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Now that we replace missing libc functions, switch back to err().
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "asm/main.h"
|
||||
#include "asm/rpn.h"
|
||||
#include "asm/fstack.h"
|
||||
#include "extern/err.h"
|
||||
|
||||
#include "asmy.h"
|
||||
|
||||
@@ -213,9 +214,8 @@ void
|
||||
lex_CheckCharacterRange(UWORD start, UWORD end)
|
||||
{
|
||||
if (start > end || start < 1 || end > 127) {
|
||||
fprintf(stderr, "Invalid character range (start: %u, end: %u)\n",
|
||||
errx(1, "Invalid character range (start: %u, end: %u)",
|
||||
start, end);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -344,8 +344,6 @@ lex_AddStrings(struct sLexInitString * lex)
|
||||
while (*ppHash)
|
||||
ppHash = &((*ppHash)->pNext);
|
||||
|
||||
//printf("%s has hashvalue %d\n", lex->tzName, hash);
|
||||
|
||||
if (((*ppHash) =
|
||||
(struct sLexString *) malloc(sizeof(struct sLexString))) !=
|
||||
NULL) {
|
||||
|
||||
Reference in New Issue
Block a user