From 718bac29232752f6020d637a0309ac9fe2935b80 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 10 Nov 2000 04:21:10 +0000 Subject: Update. 2000-11-07 Akim Demaille * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second argument `data' for consistency with the prototypes. Qualify it `const'. (obstack_copy, obstack_copy0): Rename the second argument as `address' for consistency. Qualify it `const'. * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow) (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify `const' their input argument (`data' or `address'). Adjust the corresponding macros to include `const' in casts. --- malloc/obstack.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'malloc/obstack.c') diff --git a/malloc/obstack.c b/malloc/obstack.c index 6b32678b56..8368f28896 100644 --- a/malloc/obstack.c +++ b/malloc/obstack.c @@ -524,20 +524,20 @@ int (obstack_make_room) (obstack, length) return obstack_make_room (obstack, length); } -void (obstack_grow) (obstack, pointer, length) +void (obstack_grow) (obstack, data, length) struct obstack *obstack; - POINTER pointer; + const POINTER data; int length; { - obstack_grow (obstack, pointer, length); + obstack_grow (obstack, data, length); } -void (obstack_grow0) (obstack, pointer, length) +void (obstack_grow0) (obstack, data, length) struct obstack *obstack; - POINTER pointer; + const POINTER data; int length; { - obstack_grow0 (obstack, pointer, length); + obstack_grow0 (obstack, data, length); } void (obstack_1grow) (obstack, character) @@ -581,20 +581,20 @@ POINTER (obstack_alloc) (obstack, length) return obstack_alloc (obstack, length); } -POINTER (obstack_copy) (obstack, pointer, length) +POINTER (obstack_copy) (obstack, address, length) struct obstack *obstack; - POINTER pointer; + const POINTER address; int length; { - return obstack_copy (obstack, pointer, length); + return obstack_copy (obstack, address, length); } -POINTER (obstack_copy0) (obstack, pointer, length) +POINTER (obstack_copy0) (obstack, address, length) struct obstack *obstack; - POINTER pointer; + const POINTER address; int length; { - return obstack_copy0 (obstack, pointer, length); + return obstack_copy0 (obstack, address, length); } #endif /* __STDC__ */ -- cgit v1.2.3