Ignore:
Timestamp:
Sep 7, 2004, 4:34:11 AM (21 years ago)
Author:
bird
Message:

GCC v3.3.4 - official sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc/include/obstack.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1473 r1474  
    347347#endif
    348348
    349 #define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = achar)
     349#define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = (achar))
    350350
    351351#define obstack_blank_fast(h,n) ((h)->next_free += (n))
     
    416416   if (__o->next_free + 1 > __o->chunk_limit)                           \
    417417     _obstack_newchunk (__o, 1);                                        \
    418    *(__o->next_free)++ = (datum);                                       \
     418   obstack_1grow_fast (__o, datum);                                     \
    419419   (void) 0; })
    420420
     
    428428   if (__o->next_free + sizeof (void *) > __o->chunk_limit)             \
    429429     _obstack_newchunk (__o, sizeof (void *));                          \
    430    *((void **)__o->next_free)++ = ((void *)datum);                      \
    431    (void) 0; })
     430   obstack_ptr_grow_fast (__o, datum); })
    432431
    433432# define obstack_int_grow(OBSTACK,datum)                                \
     
    436435   if (__o->next_free + sizeof (int) > __o->chunk_limit)                \
    437436     _obstack_newchunk (__o, sizeof (int));                             \
    438    *((int *)__o->next_free)++ = ((int)datum);                           \
     437   obstack_int_grow_fast (__o, datum); })
     438
     439# define obstack_ptr_grow_fast(OBSTACK,aptr)                            \
     440__extension__                                                           \
     441({ struct obstack *__o1 = (OBSTACK);                                    \
     442   *(const void **) __o1->next_free = (aptr);                           \
     443   __o1->next_free += sizeof (const void *);                            \
    439444   (void) 0; })
    440445
    441 # define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr)
    442 # define obstack_int_grow_fast(h,aint) (*((int *) (h)->next_free)++ = (int) aint)
     446# define obstack_int_grow_fast(OBSTACK,aint)                            \
     447__extension__                                                           \
     448({ struct obstack *__o1 = (OBSTACK);                                    \
     449   *(int *) __o1->next_free = (aint);                                   \
     450   __o1->next_free += sizeof (int);                                     \
     451   (void) 0; })
    443452
    444453# define obstack_blank(OBSTACK,length)                                  \
     
    448457   if (__o->chunk_limit - __o->next_free < __len)                       \
    449458     _obstack_newchunk (__o, __len);                                    \
    450    __o->next_free += __len;                                             \
     459   obstack_blank_fast (__o, __len);                                     \
    451460   (void) 0; })
    452461
     
    536545( (((h)->next_free + 1 > (h)->chunk_limit)                              \
    537546   ? (_obstack_newchunk ((h), 1), 0) : 0),                              \
    538   (*((h)->next_free)++ = (datum)))
     547  obstack_1grow_fast (h, datum))
    539548
    540549# define obstack_ptr_grow(h,datum)                                      \
    541550( (((h)->next_free + sizeof (char *) > (h)->chunk_limit)                \
    542551   ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0),                \
    543   (*((char **) (((h)->next_free+=sizeof(char *))-sizeof(char *))) = ((char *) datum)))
     552  obstack_ptr_grow_fast (h, datum))
    544553
    545554# define obstack_int_grow(h,datum)                                      \
    546555( (((h)->next_free + sizeof (int) > (h)->chunk_limit)                   \
    547556   ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0),                   \
    548   (*((int *) (((h)->next_free+=sizeof(int))-sizeof(int))) = ((int) datum)))
    549 
    550 # define obstack_ptr_grow_fast(h,aptr) (*((char **) (h)->next_free)++ = (char *) aptr)
    551 # define obstack_int_grow_fast(h,aint) (*((int *) (h)->next_free)++ = (int) aint)
     557  obstack_int_grow_fast (h, datum))
     558
     559# define obstack_ptr_grow_fast(h,aptr)                                  \
     560  (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr))
     561
     562# define obstack_int_grow_fast(h,aint)                                  \
     563  (((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr))
    552564
    553565# define obstack_blank(h,length)                                        \
     
    555567  (((h)->chunk_limit - (h)->next_free < (h)->temp)                      \
    556568   ? (_obstack_newchunk ((h), (h)->temp), 0) : 0),                      \
    557   ((h)->next_free += (h)->temp))
     569  obstack_blank_fast (h, (h)->temp))
    558570
    559571# define obstack_alloc(h,length)                                        \
Note: See TracChangeset for help on using the changeset viewer.