From 3e7340c52cf1c7d73aac9200a999f920104d9ee7 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sun, 14 Apr 2013 01:07:39 +0000 Subject: [PATCH] More external function flatening (less external symbols) --- fs.c | 5 ----- ftepp.c | 2 +- gmqcc.h | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fs.c b/fs.c index 1461bf9..e66e440 100644 --- a/fs.c +++ b/fs.c @@ -165,11 +165,6 @@ int fs_file_seek(FILE *fp, long int off, int whence) { return fseek(fp, off, whence); } -int fs_file_putc(FILE *fp, int ch) { - /* Invokes file_exception on windows if fp is null */ - return fputc(ch, fp); -} - int fs_file_flush(FILE *fp) { /* Invokes file_exception on windows if fp is null */ return fflush(fp); diff --git a/ftepp.c b/ftepp.c index a1b5f07..7337ba3 100644 --- a/ftepp.c +++ b/ftepp.c @@ -422,7 +422,7 @@ static bool ftepp_define_body(ftepp_t *ftepp, ppmacro *macro) return false; } - index = atoi(ftepp_tokval(ftepp)); + index = (int)strtol(ftepp_tokval(ftepp), NULL, 10); if (ftepp_next(ftepp) != ']') { ftepp_error(ftepp, "expected `]` in __VA_ARGS__ subscript"); diff --git a/gmqcc.h b/gmqcc.h index 2cc0864..3539155 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -469,7 +469,6 @@ int fs_file_getc (FILE *); int fs_file_flush (FILE *); int fs_file_printf (FILE *, const char *, ...); int fs_file_puts (FILE *, const char *); -int fs_file_putc (FILE *, int); int fs_file_seek (FILE *, long int, int); long int fs_file_tell (FILE *); -- 2.39.2