From: kramm Date: Sat, 10 Jul 2004 08:28:08 +0000 (+0000) Subject: moved swf_ResetReadBits from rfxswf.c to rfxswf.h. X-Git-Tag: release-0-6-0~79 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=a6f4bf74f964e101e25f0234ebcb3c3dde175df4;p=swftools.git moved swf_ResetReadBits from rfxswf.c to rfxswf.h. --- 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;