diff options
author | Monty <xiphmont@xiph.org> | 2009-05-19 23:27:38 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2009-05-19 23:27:38 +0000 |
commit | 2847fef44c50bd277aed2200b8e06f7aabb34822 (patch) | |
tree | fb4a077fac9b41ecd266b9d2aac9be87401d23eb /include | |
parent | 19dbb37556979fa67a5830af3db9efb9503e6eb2 (diff) | |
download | ogg-2847fef44c50bd277aed2200b8e06f7aabb34822.tar.gz |
Update configure script to use new 'legal' names for cache vals (I hate you so much, autofoo)
Update ogg to check the return of all allocs for those on embedded
platforms with guarantees non-ovecommit. Be aware that these checks
are useless on any modern desktop OS, but that embedded folks with no
MMU and a hard heap boundary will benefit.
Add one new call to bitpacker that will query a write-mode
oggpack_buffer to see if it ran out of memory at some point; there was
no other way to add the error reporting in an ABI-compatible manner
(and it also allows the writepacker to avoid extra checks; it will
just keep going after running out of memory without faulting and state
can be queried later).
git-svn-id: http://svn.xiph.org/trunk/ogg@16016 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'include')
-rw-r--r-- | include/ogg/ogg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ogg/ogg.h b/include/ogg/ogg.h index 33ae3da..9ff2c95 100644 --- a/include/ogg/ogg.h +++ b/include/ogg/ogg.h @@ -116,6 +116,7 @@ typedef struct { /* Ogg BITSTREAM PRIMITIVES: bitstream ************************/ extern void oggpack_writeinit(oggpack_buffer *b); +extern int oggpack_writecheck(oggpack_buffer *b); extern void oggpack_writetrunc(oggpack_buffer *b,long bits); extern void oggpack_writealign(oggpack_buffer *b); extern void oggpack_writecopy(oggpack_buffer *b,void *source,long bits); @@ -134,6 +135,7 @@ extern long oggpack_bits(oggpack_buffer *b); extern unsigned char *oggpack_get_buffer(oggpack_buffer *b); extern void oggpackB_writeinit(oggpack_buffer *b); +extern int oggpackB_writecheck(oggpack_buffer *b); extern void oggpackB_writetrunc(oggpack_buffer *b,long bits); extern void oggpackB_writealign(oggpack_buffer *b); extern void oggpackB_writecopy(oggpack_buffer *b,void *source,long bits); |