X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=file.c;fp=file.c;h=2f81be63c776adf9a30f6c8bd6ac33e23acb59f7;hp=2bbd81f89cc03705a18377b0dcb27eef9fdaf331;hb=4224ac5ca008f10dd981980cb0c215ed4d2fb03a;hpb=d18656c2dc9bdccf53ce711d46e6e8d6acae6d58 diff --git a/file.c b/file.c index 2bbd81f..2f81be6 100644 --- a/file.c +++ b/file.c @@ -131,12 +131,12 @@ * These are implemented as just generic wrappers to keep consistency in * the API. Not as macros though */ -void GMQCC_INLINE file_close(FILE *fp) { +void file_close(FILE *fp) { /* Invokes file_exception on windows if fp is null */ fclose (fp); } -size_t GMQCC_INLINE file_write ( +size_t file_write ( const void *buffer, size_t size, size_t count, @@ -146,22 +146,22 @@ size_t GMQCC_INLINE file_write ( return fwrite(buffer, size, count, fp); } -int GMQCC_INLINE file_error(FILE *fp) { +int file_error(FILE *fp) { /* Invokes file_exception on windows if fp is null */ return ferror(fp); } -int GMQCC_INLINE file_getc(FILE *fp) { +int file_getc(FILE *fp) { /* Invokes file_exception on windows if fp is null */ return fgetc(fp); } -int GMQCC_INLINE file_puts(FILE *fp, const char *str) { +int file_puts(FILE *fp, const char *str) { /* Invokes file_exception on windows if fp is null */ return fputs(str, fp); } -int GMQCC_INLINE file_seek(FILE *fp, long int off, int whence) { +int file_seek(FILE *fp, long int off, int whence) { /* Invokes file_exception on windows if fp is null */ return fseek(fp, off, whence); }