From 8603f38cb2dae562611b0c840c48c9888fb126bf Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Sun, 16 Apr 2000 01:59:29 +0200 Subject: * stack_alloc.c,stack-alloc.h: Change __tmp to __gmp_tmp. --- stack-alloc.c | 13 +++++++------ stack-alloc.h | 18 +++++++++--------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/stack-alloc.c b/stack-alloc.c index f36ee68f4..217f39e87 100644 --- a/stack-alloc.c +++ b/stack-alloc.c @@ -50,7 +50,7 @@ static tmp_stack *current = &xxx; /* Allocate a block of exactly bytes. This should only be called through the TMP_ALLOC macro, which takes care of rounding/alignment. */ void * -__tmp_alloc (size) +__gmp_tmp_alloc (size) unsigned long size; { void *this; @@ -95,19 +95,20 @@ __tmp_alloc (size) return this; } -/* Typically called at function entry. is assigned so that __tmp_free - can later be used to reclaim all subsequently allocated storage. */ +/* Typically called at function entry. is assigned so that + __gmp_tmp_free can later be used to reclaim all subsequently allocated + storage. */ void -__tmp_mark (mark) +__gmp_tmp_mark (mark) tmp_marker *mark; { mark->which_chunk = current; mark->alloc_point = current->alloc_point; } -/* Free everything allocated since was assigned by __tmp_mark */ +/* Free everything allocated since was assigned by __gmp_tmp_mark */ void -__tmp_free (mark) +__gmp_tmp_free (mark) tmp_marker *mark; { while (mark->which_chunk != current) diff --git a/stack-alloc.h b/stack-alloc.h index a84eeff58..b8f96bc78 100644 --- a/stack-alloc.h +++ b/stack-alloc.h @@ -36,13 +36,13 @@ struct tmp_marker typedef struct tmp_marker tmp_marker; #if __STDC__ -void *__tmp_alloc (unsigned long); -void __tmp_mark (tmp_marker *); -void __tmp_free (tmp_marker *); +void *__gmp_tmp_alloc (unsigned long); +void __gmp_tmp_mark (tmp_marker *); +void __gmp_tmp_free (tmp_marker *); #else -void *__tmp_alloc (); -void __tmp_mark (); -void __tmp_free (); +void *__gmp_tmp_alloc (); +void __gmp_tmp_mark (); +void __gmp_tmp_free (); #endif #ifndef __TMP_ALIGN @@ -51,6 +51,6 @@ void __tmp_free (); #define TMP_DECL(marker) tmp_marker marker #define TMP_ALLOC(size) \ - __tmp_alloc (((unsigned long) (size) + __TMP_ALIGN - 1) & -__TMP_ALIGN) -#define TMP_MARK(marker) __tmp_mark (&marker) -#define TMP_FREE(marker) __tmp_free (&marker) + __gmp_tmp_alloc (((unsigned long) (size) + __TMP_ALIGN - 1) & -__TMP_ALIGN) +#define TMP_MARK(marker) __gmp_tmp_mark (&marker) +#define TMP_FREE(marker) __gmp_tmp_free (&marker) -- cgit v1.2.1