changeset 2524:5a7e2aa8fef5

Rename DMSupeResCtx to DMSupeResDecCtx.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 15 May 2020 04:04:57 +0300
parents 22d2cfeed831
children 19b0ca169361
files tools/lib64fmts.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Fri May 15 03:32:03 2020 +0300
+++ b/tools/lib64fmts.c	Fri May 15 04:04:57 2020 +0300
@@ -91,10 +91,10 @@
     Uint8 dbyte, repcount;
 
     size_t offs, end_offs;
-} DMSupeResCtx;
-
-
-static int fmtSupeResGetByte(DMSupeResCtx *ctx, Uint8 *data, const int mode)
+} DMSupeResDecCtx;
+
+
+static int fmtSupeResGetByte(DMSupeResDecCtx *ctx, Uint8 *data, const int mode)
 {
     if (!dmGrowBufGetU8(&ctx->src, data))
     {
@@ -107,7 +107,7 @@
 }
 
 
-static int fmtDecodeSupeRes24_25(DMSupeResCtx *ctx, Uint8 tmp)
+static int fmtDecodeSupeRes24_25(DMSupeResDecCtx *ctx, Uint8 tmp)
 {
     if (tmp == 0x24)
     {
@@ -131,7 +131,7 @@
 }
 
 
-static int fmtDecodeSupeResByte(DMSupeResCtx *ctx)
+static int fmtDecodeSupeResByte(DMSupeResDecCtx *ctx)
 {
     Uint8 tmp;
     int res;
@@ -186,7 +186,7 @@
 }
 
 
-static int fmtDecodeSupeResSection(DMSupeResCtx *ctx, const size_t offs, const size_t size)
+static int fmtDecodeSupeResSection(DMSupeResDecCtx *ctx, const size_t offs, const size_t size)
 {
     int res = DMERR_OK;
 
@@ -210,7 +210,7 @@
 
 static int fmtDecodeSupeRes(DMC64Image *img, const DMGrowBuf *psrc, const DMC64ImageFormat *fmt)
 {
-    DMSupeResCtx ctx;
+    DMSupeResDecCtx ctx;
     DMGrowBuf tmp;
     int res;