C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Vanilla ANSI C headers wanted

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language (Moderated)
View previous topic :: View next topic  
Author Message
David Given
Guest





PostPosted: Tue Mar 13, 2007 3:03 am    Post subject: Vanilla ANSI C headers wanted Reply with quote



I'm working on this compiler/libc suite. It's a bit antiquated and the headers
badly need reworking to be brought up to date and to separate out the
platform-specific stuff from the platform-independent stuff.

Does anyone know where I can find a set of minimal ANSI headers that I can use
as a reference? (I'm also wanting Posix, too, but that can wait for now. As
well as being off-topic.) My usual source for this kind of thing --- the C
development kit for the BSD operating systems --- isn't really terribly useful
because the ANSI, Posix and platform-specific headers are all jumbled together
and it's not terribly clear which is which.

--
┌── dg@cowlark.com ─── http://www.cowlark.com ───────────────────
│ "Wizards get cranky, / Dark days dawn, / Riders smell manky, / The road
│ goes on. / Omens are lowering, / Elves go West; / The Shire needs
│ scouring, / You may as well quest." - John M. Ford
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
Back to top
Jack Klein
Guest





PostPosted: Thu Mar 29, 2007 6:19 am    Post subject: Re: Vanilla ANSI C headers wanted Reply with quote



On 12 Mar 2007 22:03:53 GMT, David Given <dg (AT) cowlark (DOT) com> wrote in
comp.lang.c.moderated:

Quote:
I'm working on this compiler/libc suite. It's a bit antiquated and the headers
badly need reworking to be brought up to date and to separate out the
platform-specific stuff from the platform-independent stuff.

Does anyone know where I can find a set of minimal ANSI headers that I can use
as a reference? (I'm also wanting Posix, too, but that can wait for now. As
well as being off-topic.) My usual source for this kind of thing --- the C
development kit for the BSD operating systems --- isn't really terribly useful
because the ANSI, Posix and platform-specific headers are all jumbled together
and it's not terribly clear which is which.

I am not really sure what a "vanilla" set of C headers would be, since
they must contain a large number of implementation-specific values.
Consider <limits.h>, <float.h>, and <stdio.h>, if not others, even
among the C90 headers. They all contain macros with values that are
not specified by the C standard, although certain limitations are
specified for some.

The most vanilla way, I suppose, would be to go through the
environment and library section of the standard, whatever version you
want to work with. All of the required function prototypes for each
header are there, as well as description of the macros and type
definitions that must be incorporated.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
Back to top
bytebro
Guest





PostPosted: Thu Mar 29, 2007 6:21 am    Post subject: Re: Vanilla ANSI C headers wanted Reply with quote



On 12 Mar, 22:03, David Given <d...@cowlark.com> wrote:
Quote:

Does anyone know where I can find a set of minimal ANSI headers that I can use
as a reference? (I'm also wanting Posix, too, but that can wait for now. As
well as being off-topic.) My usual source for this kind of thing --- the C
development kit for the BSD operating systems --- isn't really terribly useful
because the ANSI, Posix and platform-specific headers are all jumbled together
and it's not terribly clear which is which.

Why not take your BSD headers, and run them through the C preprocessor
with __STDC__ defined? In theory that should omit everything which is
not ANSI.

You can then do something similar but with _POSIX_C_SOURCE defined to
get the Posix stuff.
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.