Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
obstack.h File Reference
#include <stddef.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  _obstack_chunk
 
struct  obstack
 

Macros

#define _OBSTACK_INTERFACE_VERSION   2
 
#define __FLEXIBLE_ARRAY_MEMBER   1
 
#define _OBSTACK_SIZE_T   size_t
 
#define _CHUNK_SIZE_T   size_t
 
#define _OBSTACK_CAST(type, expr)
 
#define __BPTR_ALIGN(B, P, A)
 
#define __PTR_ALIGN(B, P, A)
 
#define __attribute_pure__   /*_GL_ATTRIBUTE_PURE*/
 
#define __attribute_noreturn__
 
#define obstack_base(h)
 
#define obstack_chunk_size(h)
 
#define obstack_next_free(h)
 
#define obstack_alignment_mask(h)
 
#define obstack_init(h)
 
#define obstack_begin(h, size)
 
#define obstack_specify_allocation(h, size, alignment, chunkfun, freefun)
 
#define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg)
 
#define obstack_chunkfun(h, newchunkfun)
 
#define obstack_freefun(h, newfreefun)
 
#define obstack_1grow_fast(h, achar)
 
#define obstack_blank_fast(h, n)
 
#define obstack_memory_used(h)
 
#define obstack_object_size(h)
 
#define obstack_room(h)
 
#define obstack_empty_p(h)
 
#define obstack_make_room(h, length)
 
#define obstack_grow(h, where, length)
 
#define obstack_grow0(h, where, length)
 
#define obstack_1grow(h, datum)
 
#define obstack_ptr_grow(h, datum)
 
#define obstack_int_grow(h, datum)
 
#define obstack_ptr_grow_fast(h, aptr)
 
#define obstack_int_grow_fast(h, aint)
 
#define obstack_blank(h, length)
 
#define obstack_alloc(h, length)
 
#define obstack_copy(h, where, length)
 
#define obstack_copy0(h, where, length)
 
#define obstack_finish(h)
 
#define obstack_free(h, obj)
 

Functions

void _obstack_newchunk (struct obstack *, _OBSTACK_SIZE_T)
 
void _obstack_free (struct obstack *, void *)
 
int _obstack_begin (struct obstack *, _OBSTACK_SIZE_T, _OBSTACK_SIZE_T, void *(*)(size_t), void(*)(void *))
 
int _obstack_begin_1 (struct obstack *, _OBSTACK_SIZE_T, _OBSTACK_SIZE_T, void *(*)(void *, size_t), void(*)(void *, void *), void *)
 
_OBSTACK_SIZE_T _obstack_memory_used (struct obstack *) __attribute_pure__
 

Variables

__attribute_noreturn__ void(* obstack_alloc_failed_handler )(void)
 
int obstack_exit_failure
 

Macro Definition Documentation

◆ __attribute_noreturn__

#define __attribute_noreturn__

◆ __attribute_pure__

#define __attribute_pure__   /*_GL_ATTRIBUTE_PURE*/

◆ __BPTR_ALIGN

#define __BPTR_ALIGN ( B,
P,
A )
Value:
((B) + (((P) - (B) + (A)) & ~(A)))
#define P(a, b, c, d, k, s, t)
#define B(x, j)
Definition sha512_k.c:531
#define A(x)
Definition crc_macros.h:23

◆ __FLEXIBLE_ARRAY_MEMBER

#define __FLEXIBLE_ARRAY_MEMBER   1

◆ __PTR_ALIGN

#define __PTR_ALIGN ( B,
P,
A )
Value:
__BPTR_ALIGN (sizeof (ptrdiff_t) < sizeof (void *) ? (B) : (char *) 0, \
P, A)
#define __BPTR_ALIGN(B, P, A)
Definition obstack.h:137

◆ _CHUNK_SIZE_T

#define _CHUNK_SIZE_T   size_t

◆ _OBSTACK_CAST

#define _OBSTACK_CAST ( type,
expr )
Value:
(expr)

◆ _OBSTACK_INTERFACE_VERSION

#define _OBSTACK_INTERFACE_VERSION   2

◆ _OBSTACK_SIZE_T

#define _OBSTACK_SIZE_T   size_t

◆ obstack_1grow

#define obstack_1grow ( h,
datum )
Value:
(((obstack_room (h) < 1) \
? (_obstack_newchunk ((h), 1), 0) : 0), \
obstack_1grow_fast (h, datum))
#define obstack_room(h)
Definition obstack.h:443
void _obstack_newchunk(struct obstack *, _OBSTACK_SIZE_T)
Definition xheader_k.c:653
#define h(i)
Definition sha256.c:48

◆ obstack_1grow_fast

#define obstack_1grow_fast ( h,
achar )
Value:
((void) (*((h)->next_free)++ = (achar)))

◆ obstack_alignment_mask

#define obstack_alignment_mask ( h)
Value:
((h)->alignment_mask)

◆ obstack_alloc

#define obstack_alloc ( h,
length )
Value:
(obstack_blank ((h), (length)), obstack_finish ((h)))
#define obstack_blank(h, length)
Definition obstack.h:504
#define obstack_finish(h)
Definition obstack.h:519

◆ obstack_base

#define obstack_base ( h)
Value:
((void *) (h)->object_base)

◆ obstack_begin

#define obstack_begin ( h,
size )
Value:
_obstack_begin ((h), (size), 0, \
_OBSTACK_CAST (void *(*) (size_t), obstack_chunk_alloc), \
_OBSTACK_CAST (void (*) (void *), obstack_chunk_free))
#define _OBSTACK_CAST(type, expr)
Definition obstack.h:130
int _obstack_begin(struct obstack *, _OBSTACK_SIZE_T, _OBSTACK_SIZE_T, void *(*)(size_t), void(*)(void *))
#define obstack_chunk_free
Definition tar_1_33.c:551
#define obstack_chunk_alloc
Definition tar_1_33.c:547
size_t size
Definition platform.h:559

◆ obstack_blank

#define obstack_blank ( h,
length )
Value:
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i) \
? (_obstack_newchunk ((h), (h)->temp.i), 0) : 0), \
obstack_blank_fast (h, (h)->temp.i))
#define obstack_blank_fast(h, n)
Definition obstack.h:282

◆ obstack_blank_fast

#define obstack_blank_fast ( h,
n )
Value:
((void) ((h)->next_free += (n)))

◆ obstack_chunk_size

#define obstack_chunk_size ( h)
Value:
((h)->chunk_size)

◆ obstack_chunkfun

#define obstack_chunkfun ( h,
newchunkfun )
Value:
((void) ((h)->chunkfun.extra = (void *(*) (void *, size_t)) (newchunkfun)))

◆ obstack_copy

#define obstack_copy ( h,
where,
length )
Value:
(obstack_grow ((h), (where), (length)), obstack_finish ((h)))
#define obstack_grow(h, where, length)
Definition obstack.h:464

◆ obstack_copy0

#define obstack_copy0 ( h,
where,
length )
Value:
(obstack_grow0 ((h), (where), (length)), obstack_finish ((h)))
#define obstack_grow0(h, where, length)
Definition obstack.h:472

◆ obstack_empty_p

#define obstack_empty_p ( h)
Value:
((h)->chunk->prev == 0 \
&& (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \
(h)->chunk->contents, \
(h)->alignment_mask))
#define __PTR_ALIGN(B, P, A)
Definition obstack.h:146

◆ obstack_finish

#define obstack_finish ( h)
Value:
(((h)->next_free == (h)->object_base \
? (((h)->maybe_empty_object = 1), 0) \
: 0), \
(h)->temp.p = (h)->object_base, \
(h)->next_free \
= __PTR_ALIGN ((h)->object_base, (h)->next_free, \
(h)->alignment_mask), \
(((size_t) ((h)->next_free - (char *) (h)->chunk) \
> (size_t) ((h)->chunk_limit - (char *) (h)->chunk)) \
? ((h)->next_free = (h)->chunk_limit) : 0), \
(h)->object_base = (h)->next_free, \
(h)->temp.p)

◆ obstack_free

#define obstack_free ( h,
obj )
Value:
((h)->temp.p = (void *) (obj), \
(((h)->temp.p > (void *) (h)->chunk \
&& (h)->temp.p < (void *) (h)->chunk_limit) \
? (void) ((h)->next_free = (h)->object_base = (char *) (h)->temp.p) \
: _obstack_free ((h), (h)->temp.p)))
void _obstack_free(struct obstack *, void *)
Definition xheader_k.c:602

◆ obstack_freefun

#define obstack_freefun ( h,
newfreefun )
Value:
((void) ((h)->freefun.extra = (void *(*) (void *, void *)) (newfreefun)))

◆ obstack_grow

#define obstack_grow ( h,
where,
length )
Value:
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i) \
? (_obstack_newchunk ((h), (h)->temp.i), 0) : 0), \
memcpy ((h)->next_free, where, (h)->temp.i), \
(h)->next_free += (h)->temp.i, \
(void) 0)

◆ obstack_grow0

#define obstack_grow0 ( h,
where,
length )
Value:
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i + 1) \
? (_obstack_newchunk ((h), (h)->temp.i + 1), 0) : 0), \
memcpy ((h)->next_free, where, (h)->temp.i), \
(h)->next_free += (h)->temp.i, \
*((h)->next_free)++ = 0, \
(void) 0)

◆ obstack_init

#define obstack_init ( h)
Value:
_obstack_begin ((h), 0, 0, \
_OBSTACK_CAST (void *(*) (size_t), obstack_chunk_alloc), \
_OBSTACK_CAST (void (*) (void *), obstack_chunk_free))

◆ obstack_int_grow

#define obstack_int_grow ( h,
datum )
Value:
(((obstack_room (h) < sizeof (int)) \
? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \
#define obstack_int_grow_fast(h, aint)
Definition obstack.h:500
int
Definition lzoconf.h:340

◆ obstack_int_grow_fast

#define obstack_int_grow_fast ( h,
aint )
Value:
(((int *) ((h)->next_free += sizeof (int)))[-1] = (aint), \
(void) 0)

◆ obstack_make_room

#define obstack_make_room ( h,
length )
Value:
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i) \
? (_obstack_newchunk (h, (h)->temp.i), 0) : 0), \
(void) 0)

◆ obstack_memory_used

#define obstack_memory_used ( h)
Value:
_OBSTACK_SIZE_T _obstack_memory_used(struct obstack *) __attribute_pure__

◆ obstack_next_free

#define obstack_next_free ( h)
Value:
((void *) (h)->next_free)

◆ obstack_object_size

#define obstack_object_size ( h)
Value:
((_OBSTACK_SIZE_T) ((h)->next_free - (h)->object_base))
#define _OBSTACK_SIZE_T
Definition obstack.h:128

◆ obstack_ptr_grow

#define obstack_ptr_grow ( h,
datum )
Value:
(((obstack_room (h) < sizeof (char *)) \
? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \
#define obstack_ptr_grow_fast(h, aptr)
Definition obstack.h:496

◆ obstack_ptr_grow_fast

#define obstack_ptr_grow_fast ( h,
aptr )
Value:
(((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr), \
(void) 0)

◆ obstack_room

#define obstack_room ( h)
Value:
((_OBSTACK_SIZE_T) ((h)->chunk_limit - (h)->next_free))

◆ obstack_specify_allocation

#define obstack_specify_allocation ( h,
size,
alignment,
chunkfun,
freefun )
Value:
_obstack_begin ((h), (size), (alignment), \
_OBSTACK_CAST (void *(*) (size_t), chunkfun), \
_OBSTACK_CAST (void (*) (void *), freefun))

◆ obstack_specify_allocation_with_arg

#define obstack_specify_allocation_with_arg ( h,
size,
alignment,
chunkfun,
freefun,
arg )
Value:
_obstack_begin_1 ((h), (size), (alignment), \
_OBSTACK_CAST (void *(*) (void *, size_t), chunkfun), \
_OBSTACK_CAST (void (*) (void *, void *), freefun), arg)
int _obstack_begin_1(struct obstack *, _OBSTACK_SIZE_T, _OBSTACK_SIZE_T, void *(*)(void *, size_t), void(*)(void *, void *), void *)

Function Documentation

◆ _obstack_begin()

int _obstack_begin ( struct obstack * ,
_OBSTACK_SIZE_T ,
_OBSTACK_SIZE_T ,
void * *)(size_t,
void(*  )(void *) )
extern

◆ _obstack_begin_1()

int _obstack_begin_1 ( struct obstack * ,
_OBSTACK_SIZE_T ,
_OBSTACK_SIZE_T ,
void * *)(void *, size_t,
void(*  )(void *, void *),
void *  )
extern

◆ _obstack_free()

void _obstack_free ( struct obstack * h,
void * obj )
extern

Tar related function, version 1.34

◆ _obstack_memory_used()

_OBSTACK_SIZE_T _obstack_memory_used ( struct obstack * )
extern

◆ _obstack_newchunk()

void _obstack_newchunk ( struct obstack * h,
_OBSTACK_SIZE_T length )
extern

Tar related function, version 1.34

Variable Documentation

◆ obstack_alloc_failed_handler

__attribute_noreturn__ void(* obstack_alloc_failed_handler) (void) ( void )
extern

◆ obstack_exit_failure

int obstack_exit_failure
extern