From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: build problem with patch level 1.5301
Date: Sat, 14 May 2011 17:22:18 +0100 [thread overview]
Message-ID: <20110514172218.026dd8b5@pws-pc.ntlworld.com> (raw)
In-Reply-To: <110513210002.ZM17090@torch.brasslantern.com>
On Fri, 13 May 2011 21:00:00 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> All that's really necessary, though, is to make the typedef for
> "Heapid" visible regardless of whether ZSH_HEAP_DEBUG is defined.
No problem with that, but it's probably a bit safer also to hide the
prototypes of things we don't need to see.
Index: Src/mem.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/mem.c,v
retrieving revision 1.19
diff -p -u -r1.19 mem.c
--- Src/mem.c 14 May 2011 00:07:42 -0000 1.19
+++ Src/mem.c 14 May 2011 16:20:45 -0000
@@ -123,6 +123,7 @@ static Heap heaps;
static Heap fheap;
+/**/
#ifdef ZSH_HEAP_DEBUG
/*
* The heap ID we'll allocate next.
@@ -172,6 +173,8 @@ new_heap_id(void)
{
return next_heap_id++;
}
+
+/**/
#endif
/* Use new heaps from now on. This returns the old heap-list. */
@@ -723,6 +726,7 @@ hrealloc(char *p, size_t old, size_t new
}
}
+/**/
#ifdef ZSH_HEAP_DEBUG
/*
* Check if heap_id is the identifier of a currently valid heap,
@@ -768,6 +772,7 @@ memory_validate(Heapid heap_id)
return 1;
}
+/**/
#endif
/* allocate memory from the current memory pool and clear it */
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next prev parent reply other threads:[~2011-05-14 16:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-14 1:28 nits with new _git Mikael Magnusson
2011-05-14 1:46 ` Mikael Magnusson
2011-05-14 8:38 ` Nikolai Weibull
2011-05-17 13:02 ` Nikolai Weibull
2011-05-14 3:13 ` build problem with patch level 1.5301 S. Cowles
2011-05-14 4:00 ` Bart Schaefer
2011-05-14 16:22 ` Peter Stephenson [this message]
2011-05-17 12:56 ` nits with new _git Nikolai Weibull
2011-05-29 15:11 ` Nikolai Weibull
2011-06-03 21:39 ` Mikael Magnusson
2011-07-20 11:28 ` Nikolai Weibull
2011-07-21 9:06 ` Nikolai Weibull
2011-07-21 9:57 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110514172218.026dd8b5@pws-pc.ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).