svnno****@sourc*****
svnno****@sourc*****
2009年 6月 8日 (月) 02:16:57 JST
Revision: 152 http://svn.sourceforge.jp/view?root=swfed&view=rev&rev=152 Author: yoya Date: 2009-06-08 02:16:57 +0900 (Mon, 08 Jun 2009) Log Message: ----------- bitstream_t 構造体の中身を表示する bitstream_print を追加 (デバッグ用) Modified Paths: -------------- trunk/src/bitstream.c trunk/src/bitstream.h -------------- next part -------------- Modified: trunk/src/bitstream.c =================================================================== --- trunk/src/bitstream.c 2009-06-07 16:46:07 UTC (rev 151) +++ trunk/src/bitstream.c 2009-06-07 17:16:57 UTC (rev 152) @@ -372,3 +372,10 @@ } printf("\n"); } +void +bitstream_print(bitstream_t *bs) { + printf("data=%p data_len=%lu data_alloc_len=%lu\n", + bs->data, bs->data_len, bs->data_alloc_len); + printf("byte_offset=%lu bit_offset=%lu\n", + bs->byte_offset, bs->bit_offset); +} Modified: trunk/src/bitstream.h =================================================================== --- trunk/src/bitstream.h 2009-06-07 16:46:07 UTC (rev 151) +++ trunk/src/bitstream.h 2009-06-07 17:16:57 UTC (rev 152) @@ -63,5 +63,6 @@ /* debug function */ extern unsigned long bitstream_hexdump(bitstream_t *bs, int length); +extern void bitstream_print(bitstream_t *bs); #endif /* __BITSTREAM_H__ */