Mail Archives: djgpp/2017/01/14/23:15:05
Hi,
On Saturday, January 14, 2017 at 6:11:21 AM UTC-6, Ozkan Sezer (sezeroz AT hates DOT spam) [via djgpp AT spam DOT sux] wrote:
> On 1/14/17, Eli Zaretskii (eliz AT nospam DOT no) [via
> djgpp-workers AT ugh DOT spam] <djgpp-workers AT die DOT spam> wrote:
> >> From: "Ozkan Sezer (sezeroz AT spam DOT hater) [via djgpp AT spammers DOT suck]"
> >> <djgpp AT nospam4 DOT u>
> >> Date: Sat, 14 Jan 2017 14:16:05 +0300
>
> > What problems does including stdlib.h cause?
>
> Problems are not from including stdlib.h but from not including string.h
> E.g. cpu.c from flac library includes memory.h possibly to get the proto
> for memset(). Their decision might be debatable, but that's what they do
> and it works everywhere except for djgpp, for which I suggested a patch
> http://lists.xiph.org/pipermail/flac-dev/2017-January/006109.html
Since it's non-standard, I can only guess where it comes from.
Presumably MSVC still supports it. I somehow doubt Linux included
it for its own sake.
And yet you go on to say this:
> Ozkan Sezer
> Sat Jan 14 23:27:58 UTC 2017
>
> Simpler patch attached, which just replaces memory.h with string.h
> cpu.c was the only source to use memory.h instead of string.h.
So it sounds moot, it's a non-issue.
FYI, I have various C compilers installed here (why? bored).
Omitting the DJGPP ones gives this:
e:\c\CC386\INCLUDE\MEMORY.H
e:\c\orangec.old\INCLUDE\MEMORY.H
e:\c\lsic86\INCLUDE\MEMORY.H
e:\c\watcom19\H\MEMORY.H
e:\c\watcom19\H\MEM.H
e:\c\tc\INCLUDE\MEM.H
e:\c\tcpp\INCLUDE\MEM.H
e:\c\EMX\INCLUDE\MEMORY.H
e:\c\dev86dos\include\memory.h
e:\c\tinyc\include\memory.h
e:\c\tinyc\include\mem.h
cc386/include/memory.h -- mem* prototypes, #include <stddef.h>
orangec.old/include/memory.h -- mem* prototypes, #include <stddef.h>
lsic86/include/memory.h -- one typedef, mem* prototypes
watcom19/h/memory.h -- almost nothing, #include <string.h>
watcom19/h/mem.h -- various typedefs, #include <string.h>
tc/include/mem.h -- (Turbo C 2.01) some typedefs, mem* prototypes
tcpp/include/mem.h -- (Turbo C++ 1.01) some typedefs, mem* prototypes
emx/include/memory.h -- one typedef, mem* prototypes
dev86dos/include/memory.h -- literally just #include <string.h>
tinyc/include/memory.h -- bunch of mem* prototypes
tinyc/include/mem.h -- #include <string.h>
Does that help?
- Raw text -