]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(obstack_object_size): Declare temporary, __o, to be const.
authorJim Meyering <jim@meyering.net>
Mon, 20 Jan 2003 15:45:53 +0000 (15:45 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 20 Jan 2003 15:45:53 +0000 (15:45 +0000)
(obstack_room): Likewise.
(obstack_empty_p): Likewise.

lib/obstack.h

index c949730e5e22aed3522b8cd0318684ff6beff679..c8c4ae9429bc741695e40d89f8a1728fcbbbaedd 100644 (file)
@@ -368,12 +368,12 @@ extern int obstack_exit_failure;
 
 # define obstack_object_size(OBSTACK)                                  \
   __extension__                                                                \
-  ({ struct obstack *__o = (OBSTACK);                                  \
+  ({ struct obstack const *__o = (OBSTACK);                            \
      (unsigned) (__o->next_free - __o->object_base); })
 
 # define obstack_room(OBSTACK)                                         \
   __extension__                                                                \
-  ({ struct obstack *__o = (OBSTACK);                                  \
+  ({ struct obstack const *__o = (OBSTACK);                            \
      (unsigned) (__o->chunk_limit - __o->next_free); })
 
 # define obstack_make_room(OBSTACK,length)                             \
@@ -386,7 +386,7 @@ __extension__                                                               \
 
 # define obstack_empty_p(OBSTACK)                                      \
   __extension__                                                                \
-  ({ struct obstack *__o = (OBSTACK);                                  \
+  ({ struct obstack const *__o = (OBSTACK);                            \
      (__o->chunk->prev == 0 && __o->next_free - __o->chunk->contents == 0); })
 
 # define obstack_grow(OBSTACK,where,length)                            \