Mail Archives: djgpp-workers/2003/06/21/09:14:32
Eli Zaretskii wrote:
>
> > Date: Sat, 21 Jun 2003 00:37:39 -0400
> > From: CBFalconer <cbfalconer AT yahoo DOT com>
> >
> > I don't know the details of this, so I may be talking nonsense,
> > but it reminds me of what I found in looking at the present
> > memalign.c. That uses a herd of macros which do not appear in the
> > source, nor in malloc.h.
>
> If you mean BEFORE, ENDSZ, DATA, etc., then they are defined in
> libc/malloc.h. Since stdlib.h and libc/malloc.h are the only headers
> mentioned in memalign.c, I don't think looking up those macros is such
> a formidable taks. But if searching two headers is too much, you
> could always use Grep:
>
> fgrep -e BEFORE -e ENDSZ -e DATA %DJDIR%/include/.../*.h
>
> or, better yet, install the GNU ID-utils package, run `mkid' on both
> the `src' and `include' directories, and then type commands like
>
> lid ENDSZ
>
> to get much faster (and more accurate) results than with Grep.
No - my mistake was not searching far enough for malloc.h; I got
the wrong one. I have no problem with that organization. I
envisioned the macros hidden in something else down the food
chain. I didn't expand that tar file at all, just extracted
specific pieces.
BTW I have heard nothing about the use of hooks/malldbg with
memalign etc. I referred to in another thread.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
- Raw text -