diff options
author | pierrejoye <none@none> | 2013-04-03 14:23:11 +0200 |
---|---|---|
committer | pierrejoye <none@none> | 2013-04-03 14:23:11 +0200 |
commit | e20413bf6b872a8c23f1704a89295c5897347c9d (patch) | |
tree | f34b5402f97cd826bb312e18677f3974d53bfd52 /src/gd_io.h | |
parent | 385566e4ba57d803921a13306ead66f354cee0a2 (diff) | |
download | libgd-e20413bf6b872a8c23f1704a89295c5897347c9d.tar.gz |
- apply same CS everywhere
Diffstat (limited to 'src/gd_io.h')
-rw-r--r-- | src/gd_io.h | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/src/gd_io.h b/src/gd_io.h index 0f4aefa..72d5ca5 100644 --- a/src/gd_io.h +++ b/src/gd_io.h @@ -11,39 +11,38 @@ extern "C" { # define Putchar gdPutchar #endif -typedef struct gdIOCtx -{ - int (*getC)(struct gdIOCtx *); - int (*getBuf)(struct gdIOCtx *, void *, int); - void (*putC)(struct gdIOCtx *, int); - int (*putBuf)(struct gdIOCtx *, const void *, int); - /* seek must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */ - int (*seek)(struct gdIOCtx *, const int); - long (*tell)(struct gdIOCtx *); - void (*gd_free)(struct gdIOCtx *); -} -gdIOCtx; - -typedef struct gdIOCtx *gdIOCtxPtr; - -void Putword(int w, gdIOCtx *ctx); -void Putchar(int c, gdIOCtx *ctx); - -void gdPutC(const unsigned char c, gdIOCtx *ctx); -int gdPutBuf(const void *, int, gdIOCtx *); -void gdPutWord(int w, gdIOCtx *ctx); -void gdPutInt(int w, gdIOCtx *ctx); - -int gdGetC(gdIOCtx *ctx); -int gdGetBuf(void *, int, gdIOCtx *); -int gdGetByte(int *result, gdIOCtx *ctx); -int gdGetWord(int *result, gdIOCtx *ctx); -int gdGetWordLSB(signed short int *result, gdIOCtx *ctx); -int gdGetInt(int *result, gdIOCtx *ctx); -int gdGetIntLSB(signed int *result, gdIOCtx *ctx); - -int gdSeek(gdIOCtx *ctx, const int offset); -long gdTell(gdIOCtx *ctx); + typedef struct gdIOCtx { + int (*getC)(struct gdIOCtx *); + int (*getBuf)(struct gdIOCtx *, void *, int); + void (*putC)(struct gdIOCtx *, int); + int (*putBuf)(struct gdIOCtx *, const void *, int); + /* seek must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */ + int (*seek)(struct gdIOCtx *, const int); + long (*tell)(struct gdIOCtx *); + void (*gd_free)(struct gdIOCtx *); + } + gdIOCtx; + + typedef struct gdIOCtx *gdIOCtxPtr; + + void Putword(int w, gdIOCtx *ctx); + void Putchar(int c, gdIOCtx *ctx); + + void gdPutC(const unsigned char c, gdIOCtx *ctx); + int gdPutBuf(const void *, int, gdIOCtx *); + void gdPutWord(int w, gdIOCtx *ctx); + void gdPutInt(int w, gdIOCtx *ctx); + + int gdGetC(gdIOCtx *ctx); + int gdGetBuf(void *, int, gdIOCtx *); + int gdGetByte(int *result, gdIOCtx *ctx); + int gdGetWord(int *result, gdIOCtx *ctx); + int gdGetWordLSB(signed short int *result, gdIOCtx *ctx); + int gdGetInt(int *result, gdIOCtx *ctx); + int gdGetIntLSB(signed int *result, gdIOCtx *ctx); + + int gdSeek(gdIOCtx *ctx, const int offset); + long gdTell(gdIOCtx *ctx); #endif |