L
lauren
I've found this in some source file and have no idea what it is used
for. And help?
for. And help?
I've found this in some source file and have no idea what it is used
for. And help?
Kenny said:I've found this in some source file and have no idea what it is used
for. And help?
(hah hah hah - beat you to it, Keith [and others])
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
lauren said:Kenny said:I've found this in some source file and have no idea what it is used
for. And help?
(hah hah hah - beat you to it, Keith [and others])
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Of course I know this is not "that" portable but this is a component of
glibc and surely portable at least among Linux world. Standard C has
only 24 header files and we surely need to learn others
James Kuyper said:lauren said:Kenny said:I've found this in some source file and have no idea what it is
used for. And help?
(hah hah hah - beat you to it, Keith [and others])
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Of course I know this is not "that" portable but this is a component
of glibc and surely portable at least among Linux world. Standard C
has only 24 header files and we surely need to learn others
True, but the appropriate place to discuss those other headers is a
forum devoted specifically to the kind of systems where those headers
are present. A quick look at the file suggests that it may be
gcc-specific, so look for a gcc forum.
Anthony Fremont said:James said:lauren said:Kenny McCormack wrote:
I've found this in some source file and have no idea what it is
used for. And help?
(hah hah hah - beat you to it, Keith [and others])
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Of course I know this is not "that" portable but this is a component
of glibc and surely portable at least among Linux world. Standard C
has only 24 header files and we surely need to learn others
True, but the appropriate place to discuss those other headers is a
forum devoted specifically to the kind of systems where those headers
are present. A quick look at the file suggests that it may be
gcc-specific, so look for a gcc forum.
What file did you review, the OP didn't identify the environment at all. I
think you'll find a "sys/cdefs.h" on plenty of systems that don't use gcc.
It looks like "glue" to me. Just something to help some real-world
source code get along with real-world compilers and real-world
environments.
An cute excerpt of a cdefs.h I have here:
<snip>
/*
* GCC 2.95 provides `__restrict' as an extention to C90 to
* support the C99-specific `restrict' type qualifier. We
* happen to use `__restrict' as a way to define the `restrict'
* type qualifier without disturbing older software that is
* unaware of C99 keywords.
*/
#if !((defined(__GNUC__) && __GNUC__ == 2) && __GNUC_MINOR__ == 95)
#if !defined(__STDC_VERSION__) || \
(defined(__STDC_VERSION__) && __STDC_VERSION__ < 199901)
#define __restrict
Han from China - Master Troll said:Richard said:
Probably why the one-time poster "lauren" is asking it in the first
place.
Ouch. That's a pedant smackdown right there and will be used in the
next version of my topicality FAQ.
Since ANSI/ISO C doesn't define a sys/cdefs.h header, the pedants
can't say that a custom sys/cdefs.h header is off-topic, since
by their own bizarre reasoning, they're not allowed to take guesses
at the contents of sys/cdefs.h based on non-ANSI/ISO C experiences.
So if someone asks about windows.h, the appropriate response will
be "please tell us more about the file and/or post the contents",
since ANSI/ISO C doesn't forbid a custom windows.h header.
Whether this newsgroup is strictly for ANSI/ISO C
is a matter of opinion, since this newsgroup has no charter and, in fact,
has a founding message that predates ANSI/ISO C.
This got me into some thinking. Is the troll lying about this? Or
comp.lang.c is indeed older than the ANSI C standard? In which case,
since when it was decided that the topicallity of comp.lang.c is K&R
C, ANSI/ISO C?
It's not that I disagree with such topicallity, I'm just curious for
some comp.lang.c history...
Richard said:The contents are, however, C.
Anthony Fremont said:Why would you intentionally obfuscate your response like that? Does Han
from China have a habit of posting incorrect information? I hadn't noticed
him misleading anyone at any time; I may have missed it though.
Comp.lang.c is the renamed net.lang.c (renamed during the great
renaming). The original groups did not have charters. As part
of the reorganization during the great renaming a process was
established for creating new groups; this process included having
a charter. I have contributed to the news group off and on since
1983 but it goes back a bit further than that. (The usenet news
system started in 1979.)
What constitutes topicality is a communal decision, that by not
means is agreed to by everyone. In the beginning, insofar as
people worried about the issue, topicality was "the issues
involved in programming in C". That is the nature of topicality
in many programming language groups. IMACO that is what it
should be.
At some time in the last dozen years a group of people insisted
that the newsgroup was strictly for standard C (K&R, 89 and 99).
I wasn't posting in comp.lang.c when the revolution occurred;
perhaps one of the current regulars will admit to the details.
Judging from the current state of the group, the style of the
revolutionaries was aggressive, arrogant, and dogmatic.
Be that as it may, actual topicality is whatever the group is
willing to discuss. You can discuss pretty much anything you
want to provided that you don't phrase it in a way that tickles
the delicate antennae of the self-appointed topicality monitors.
Anthony said:James Kuyper wrote: ....
What file did you review, the OP didn't identify the environment at all. I
think you'll find a "sys/cdefs.h" on plenty of systems that don't use gcc.
Anthony Fremont said:Why would you intentionally obfuscate your response like that? Does Han
from China have a habit of posting incorrect information?
Richard said:There is no charter saying "ISO C". End of subject. The groups name is
comp.lang.c, similar its counterparts its for the discussion of the C
language.
A small clique tried limiting the topicality to things which only
interested them.
Kenny said:I've found this in some source file and have no idea what it is used
for. And help?
(hah hah hah - beat you to it, Keith [and others])
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Of course I know this is not "that" portable but this is a component of
glibc and surely portable at least among Linux world. Standard C has
only 24 header files and we surely need to learn others
Han said:Lauren wrote:
In this case, the one-time poster lauren is actually Flash Gordon (watch
for those silent ignores on this point, folks!), but since we won't
This got me into some thinking. Is the troll lying about this? Or
comp.lang.c is indeed older than the ANSI C standard? In which case,
since when it was decided that the topicallity of comp.lang.c is K&R
C, ANSI/ISO C?
It's not that I disagree with such topicallity, I'm just curious for
some comp.lang.c history...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.