comparison src/dmzlib.c @ 2586:9807ae37ad69

Require stdbool.h, we require C11 now.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 Dec 2022 15:59:22 +0200
parents c72196d3fdbe
children
comparison
equal deleted inserted replaced
2585:ef6c826c5b7a 2586:9807ae37ad69
148 } 148 }
149 nextCode[s]++; 149 nextCode[s]++;
150 } 150 }
151 } 151 }
152 152
153 ctx->initialized = TRUE; 153 ctx->initialized = true;
154 return DMERR_OK; 154 return DMERR_OK;
155 } 155 }
156 156
157 157
158 static inline Uint8 dmZGet8(DMZLibContext * ctx) 158 static inline Uint8 dmZGet8(DMZLibContext * ctx)
623 623
624 return DMERR_OK; 624 return DMERR_OK;
625 } 625 }
626 626
627 627
628 int dmZLibParseHeader(DMZLibContext * ctx, BOOL checkPNG) 628 int dmZLibParseHeader(DMZLibContext * ctx, bool checkPNG)
629 { 629 {
630 // See http://tools.ietf.org/html/rfc1950 630 // See http://tools.ietf.org/html/rfc1950
631 int cmf = dmZGet8(ctx); // Compression method and flags 631 int cmf = dmZGet8(ctx); // Compression method and flags
632 int flags = dmZGet8(ctx); // Flags 632 int flags = dmZGet8(ctx); // Flags
633 int cmethod = (cmf & 15); 633 int cmethod = (cmf & 15);