Changeset 8ec15cf in git


Ignore:
Timestamp:
08/01/14 02:18:55 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
6b86108
Parents:
57cecaa
Message:

src/img.c: In non-hosted mode, don't define GETC and PUTC if they're
already defined, to allow easy overriding with getc_unlocked() and
putc_unlocked().

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r57cecaa r8ec15cf  
     1Wed Jan 08 02:17:44 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/img.c: In non-hosted mode, don't define GETC and PUTC if they're
     4          already defined, to allow easy overriding with getc_unlocked() and
     5          putc_unlocked().
     6
    17Wed Jan 08 02:13:27 GMT 2014  Olly Betts <olly@survex.com>
    28
  • src/img.c

    r57cecaa r8ec15cf  
    6868# define fopenWithPthAndExt(PTH,FNM,EXT,MODE,X) \
    6969    ((*(X) = NULL), fopen(FNM,MODE))
    70 # define PUTC(C, FH) putc(C, FH)
    71 # define GETC(FH) getc(FH)
     70# ifndef PUTC
     71#  define PUTC(C, FH) putc(C, FH)
     72# endif
     73# ifndef GETC
     74#  define GETC(FH) getc(FH)
     75# endif
    7276# define fputsnl(S, FH) (fputs((S), (FH)) == EOF ? EOF : putc('\n', (FH)))
    7377# define SVX_ASSERT(X)
Note: See TracChangeset for help on using the changeset viewer.