X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobstack%2Fobstack.h;h=141be27107b0147a3b6a647626768aeb61e39604;hb=051da28245f26cb1a073c764de235460e87ec64f;hp=206fe55050b4ea73d5266773961ebea587fb5e23;hpb=7b74666be6929322c6a603a6edd0131378f4c144;p=supertux.git diff --git a/src/obstack/obstack.h b/src/obstack/obstack.h index 206fe5505..141be2710 100644 --- a/src/obstack/obstack.h +++ b/src/obstack/obstack.h @@ -109,7 +109,7 @@ Summary: #ifdef __cplusplus extern "C" { #endif - + /* We need the type of a pointer subtraction. If __PTRDIFF_TYPE__ is defined, as with GNU C, use that; that way we don't pollute the namespace with 's symbols. Otherwise, include @@ -128,7 +128,7 @@ extern "C" { #define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A))) -/* Similiar to _BPTR_ALIGN (B, P, A), except optimize the common case +/* Similar to _BPTR_ALIGN (B, P, A), except optimize the common case where pointers can be converted to integers, aligned as integers, and converted back again. If PTR_INT_TYPE is narrower than a pointer (e.g., the AS/400), play it safe and compute the alignment @@ -189,7 +189,7 @@ extern int _obstack_memory_used (struct obstack *); void obstack_free (struct obstack *obstack, void *block); - + /* Error handler called when `obstack_chunk_alloc' failed to allocate more memory. This can be set to a user defined function which should either abort gracefully or use longjump - but shouldn't @@ -198,7 +198,7 @@ extern void (*obstack_alloc_failed_handler) (void); /* Exit value used when `print_and_abort' is used. */ extern int obstack_exit_failure; - + /* Pointer to beginning of object being allocated or to be allocated next. Note that this might not be the final address of the object because a new chunk might be needed to hold the final size. */ @@ -249,7 +249,7 @@ extern int obstack_exit_failure; #define obstack_blank_fast(h,n) ((h)->next_free += (n)) #define obstack_memory_used(h) _obstack_memory_used (h) - + #if defined __GNUC__ && defined __STDC__ && __STDC__ /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and does not implement __extension__. But that compiler doesn't define @@ -401,7 +401,7 @@ __extension__ \ if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \ __o->next_free = __o->object_base = (char *)__obj; \ else (obstack_free) (__o, __obj); }) - + #else /* not __GNUC__ or not __STDC__ */ # define obstack_object_size(h) \