🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #410

Re: void * not handled in AIX C compiler ?

#410
From: Johann Schweigl
Date: Fri, 06 Oct 1989 04:28
32 lines
2082 bytes
From article <2398@ibmpa.UUCP>, by webb@bass.tcspa.ibm.com (Bill Webb):
> 
> If the AIX compiler claims to be ANSI (I'm not sure if it does), then
> I'd suggest that you do report it as a bug and see if you can get it fixed.

I've got a number of good explanations to this question. 
I sum up by citing Karl Heuer:

---
I believe that AIX C is not intended  to be an ANSI C compiler.  
(Which is currently right -- johnny)
AIX C supports "void" because it's been part of the language for a decade.                               
It does not support declaring variables as "void *" because this is 
a recent invention, and the compiler  has not yet been upgraded to support  
ANSI C.                               
                                      
Despite appearances, it does not support "void *" in a typecast,       
either.  The compiler accepts the construct, but it doesn't behave the  
way X3J11 says.                      
                                     
The reason that "void *" isn't even accepted in a declaration is because  
of an implementation detail of the compiler.  Since "void *" was a       
meaningless type in pre-ANSI C, the compiler used that particular         
bit-pattern internally to mean "no type", i.e. for undeclared variables. 
---

Thanks to you all, johnny
-- 
This does not reflect the   | Johann  Schweigl | DOS machines? 
opinions of my employer.    | johnny@edvvie.at | I don't hate DOS machines. 
I am busy enough by talking |                  | I just feel better when I
about my own ...            |   EDVG  Vienna   | don't see one ...
Technical Details
Message-ID: <169@eliza.edvvie.at>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!bloom-beacon!eru!luth!sunic!mcsun!tuvie!edvvie!eliza!johnny
References: <2398@ibmpa.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!bloom-beacon!eru!luth!sunic!mcsun!tuvie!edvvie!eliza!johnny
From: johnny@edvvie.at (Johann Schweigl)
Newsgroups: comp.sys.ibm.pc.rt,comp.unix.aix,comp.lang.c
Subject: Re: void * not handled in AIX C compiler ?
Message-ID: <169@eliza.edvvie.at>
Date: 6 Oct 89 04:28:43 GMT
References: <2398@ibmpa.UUCP>
Organization: Edv GesmbH, Austria/Europa
Lines: 32