Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!ncar!gatech!prism!gs26 From: gs26@prism.gatech.EDU (Glenn R. Stone) Newsgroups: comp.unix.aix Subject: Re: Has anyone got less to work under AIX-3.1 on a RS6000 ? Keywords: AIXV3, malloc Message-ID: <17633@hydra.gatech.EDU> Date: 27 Nov 90 18:59:56 GMT References: <17570@hydra.gatech.EDU> <4355@awdprime.UUCP> Distribution: comp Organization: Dead Poets Society Lines: 24 In <4355@awdprime.UUCP> dcm@nostromo.austin.ibm.com (craig miller) writes: >In article <17570@hydra.gatech.EDU> gs26@prism.gatech.EDU (yours truly) writes: >>... >>and it works like a charm..... 'cept that you have to diddle with >>the malloc() code, because malloc() is a void in AIX3, not an int.... > Just one minor point here: Glenn, what do you mean, "malloc() > is a void in AIX3, not an int...."? So I was working from memory. calloc, not malloc.... DYNIX 3 (4.2 BSDish for the Sequent, the machine from which I post) has char *calloc.... and the less code assumes that, and does not cast the pointers explicitly. You have to go in and ANSI-ise the code... which is also good programming practice in non-ANSI (or at least to document the fact that hey! I'm assuming char *{m,c}alloc instead of void....) P'raps Henry should add to the First Commandment.... When weirdnesses happen in code thou didst not write, thou shalt REALLY study the output of _lint_ thy eternal friend and companion. -- Glenn R. Stone (gs26@prism.gatech.edu)