From a6f4bf74f964e101e25f0234ebcb3c3dde175df4 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 10 Jul 2004 08:28:08 +0000 Subject: [PATCH] moved swf_ResetReadBits from rfxswf.c to rfxswf.h. --- lib/rfxswf.c | 5 ----- lib/rfxswf.h | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 9b3c51e..e7cb0d8 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -65,11 +65,6 @@ U32 swf_GetTagLen(TAG * t) { return t->len; } U8* swf_GetTagLenPtr(TAG * t) { return &(t->data[t->len]); } U32 swf_GetTagPos(TAG * t) { return t->pos; } -// Basic Data Access Functions - -#define swf_ResetReadBits(tag) if (tag->readBit) { tag->pos++; tag->readBit = 0; } -#define swf_ResetWriteBits(tag) if (tag->writeBit) { tag->writeBit = 0; } - // for future purpose: avoid high level lib functions to change tagpos/bitpos #define swf_SaveTagPos(tag) diff --git a/lib/rfxswf.h b/lib/rfxswf.h index b5e062c..3621321 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -151,6 +151,9 @@ typedef struct _TAG // NEVER access a Tag-Struct directly ! } TAG, * LPTAG; +#define swf_ResetReadBits(tag) if (tag->readBit) { tag->pos++; tag->readBit = 0; } +#define swf_ResetWriteBits(tag) if (tag->writeBit) { tag->writeBit = 0; } + typedef struct _SOUNDINFO { U8 stop; -- 1.7.10.4