zsh-workers
 help / color / mirror / code / Atom feed
* brk/sbrk protos
@ 1995-11-07  3:53 Geoff Wing
  1995-11-08  4:39 ` Richard Coleman
  0 siblings, 1 reply; 2+ messages in thread
From: Geoff Wing @ 1995-11-07  3:53 UTC (permalink / raw)
  To: zsh-list

Heyla rc, can you take the brk and sbrk protos out of mem.c and
 have configure work them out.
ciao
-- 
Mason [G.C.W]  mason@werple.mira.net.au    "Hurt...Agony...Pain...LOVE-IT"


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: brk/sbrk protos
  1995-11-07  3:53 brk/sbrk protos Geoff Wing
@ 1995-11-08  4:39 ` Richard Coleman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Coleman @ 1995-11-08  4:39 UTC (permalink / raw)
  To: Geoff Wing; +Cc: zsh-list

> Heyla rc, can you take the brk and sbrk protos out of mem.c and
>  have configure work them out.

I'm not sure how we could do this in a robust fashion.
Each system keeps these prototypes hidden in a different place.
About the only thing I could do is grep in a few places for the
caddr_t type and use that if I find it.  Since these prototypes
are only used if you define ZSH_MEM, I not sure if we would
gain anything by this.  In general, it appears to be better to
use your systems malloc unless you are trying to debug memory
allocation problems.

Actually this reminds me of a couple of things I've been
wanting to do to mem.c.  I would like to separate mem.c into two
parts.  I would put the code for zsh's version of malloc/free/
etc... into its own file zmalloc.c (or whatever) and keep the
parts that zsh always uses (heap allocation, ...)  in mem.c

My rationale for this is that we could then experiment with using
alternate implementations of malloc such as GNU malloc or BSD
malloc.  Since the GNU malloc is GPL'ed, we couldn't include it
in the zsh distribution, but you could always download it yourself
and use it.

Just a random thought.

rc


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-11-08  4:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-11-07  3:53 brk/sbrk protos Geoff Wing
1995-11-08  4:39 ` Richard Coleman

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).