Work around HP-PA compiler bug: can't have conditional expression with
authorChris Hanson <org/chris-hanson/cph>
Wed, 28 Nov 1990 23:51:22 +0000 (23:51 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 28 Nov 1990 23:51:22 +0000 (23:51 +0000)
one arm of type void, even if entire expression is in effect position.

v7/src/microcode/obstack.h

index df40bfb1cf21d83d1288799ac43e59cc31c914c7..0ab90606359bc79de6f32740930494a427bd471d 100644 (file)
@@ -334,31 +334,31 @@ int obstack_chunk_size (struct obstack *obstack);
 #define obstack_grow(h,where,length)                                   \
 ( (h)->temp = (length),                                                        \
   (((h)->next_free + (h)->temp > (h)->chunk_limit)                     \
-   ? _obstack_newchunk ((h), (h)->temp) : 0),                          \
+   ? (_obstack_newchunk ((h), (h)->temp), 0) : 0),                     \
   bcopy (where, (h)->next_free, (h)->temp),                            \
   (h)->next_free += (h)->temp)
 
 #define obstack_grow0(h,where,length)                                  \
 ( (h)->temp = (length),                                                        \
   (((h)->next_free + (h)->temp + 1 > (h)->chunk_limit)                 \
-   ? _obstack_newchunk ((h), (h)->temp + 1) : 0),                      \
+   ? (_obstack_newchunk ((h), (h)->temp + 1), 0) : 0),                 \
   bcopy (where, (h)->next_free, (h)->temp),                            \
   (h)->next_free += (h)->temp,                                         \
   *((h)->next_free)++ = 0)
 
 #define obstack_1grow(h,datum)                                         \
 ( (((h)->next_free + 1 > (h)->chunk_limit)                             \
-   ? _obstack_newchunk ((h), 1) : 0),                                  \
+   ? (_obstack_newchunk ((h), 1), 0) : 0),                             \
   *((h)->next_free)++ = (datum))
 
 #define obstack_ptr_grow(h,datum)                                      \
 ( (((h)->next_free + sizeof (char *) > (h)->chunk_limit)               \
-   ? _obstack_newchunk ((h), sizeof (char *)) : 0),                    \
+   ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0),               \
   *((char **)(((h)->next_free+=sizeof(char *))-sizeof(char *))) = ((char *)datum))
 
 #define obstack_int_grow(h,datum)                                      \
 ( (((h)->next_free + sizeof (int) > (h)->chunk_limit)                  \
-   ? _obstack_newchunk ((h), sizeof (int)) : 0),                       \
+   ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0),                  \
   *((int *)(((h)->next_free+=sizeof(int))-sizeof(int))) = ((int)datum))
 
 #define obstack_ptr_grow_fast(h,aptr) (*((char **)(h)->next_free)++ = (char *)aptr)
@@ -367,7 +367,7 @@ int obstack_chunk_size (struct obstack *obstack);
 #define obstack_blank(h,length)                                                \
 ( (h)->temp = (length),                                                        \
   (((h)->chunk_limit - (h)->next_free < (h)->temp)                     \
-   ? _obstack_newchunk ((h), (h)->temp) : 0),                          \
+   ? (_obstack_newchunk ((h), (h)->temp), 0) : 0),                     \
   (h)->next_free += (h)->temp)
 
 #define obstack_alloc(h,length)                                                \