Commits

mattias  committed f2e76b2

- ws + cs

  • Participants
  • Parent commits 86dce5a
  • Branches GD-2.0

Comments (0)

Files changed (1)

 #include <stdio.h>
 
 #ifdef VMS
-#define Putchar gdPutchar
+#	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 *);
-
+	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 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);
+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 (int *result, gdIOCtx * ctx);
- int gdGetInt (int *result, gdIOCtx * ctx);
- int gdGetIntLSB (int *result, 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(int *result, gdIOCtx *ctx);
+int gdGetInt(int *result, gdIOCtx *ctx);
+int gdGetIntLSB(int *result, gdIOCtx *ctx);
 
- int gdSeek (gdIOCtx * ctx, const int offset);
- long gdTell (gdIOCtx * ctx);
+int gdSeek(gdIOCtx *ctx, const int offset);
+long gdTell(gdIOCtx *ctx);
 
 #endif