E
E. Robert Tisdale
Alex said:I don't need to. From the output I posted earlier
/usr/include/stdlib.h:106: warning: parameter names <...>
...you can clearly see the path.
This is indeed the file with the Sun copyright you see above.
I found this same copyright notice in 88 header files
in the implementation distributed with version 3.2 of gcc.
Regardless of origin, your stdlib.h header file
is almost certainly part of the GNU C implementation
distributed with gcc.
Yes. I said:
You said:
It doesn't have to be. It *could* be defined in stdlib.h.
I never said differently.
But the fact that size_t *could* be defined in stdlib.h itself
does *not* mean that size_t *is* defined in stdlib.h itself.
Which, I thought, was pretty obvious. However,
you went out on a tangent, trying to make me prove that
there is indeed an implementation
where size_t is defined in stdlib.h.
Such proof is inherently irrelevant!
It is *not* irrelevant to your claim
that you have found an implementation
where size_t is actually defined in stdlib.h itself.
Are you prepared to concede that you were wrong?
If you are aware of the fact that there *can* be an implementation
where size_t is defined in stdlib.h, why are you arguing?
I assume that you agree that since the ANSI/ISO C standards
do not specify that size_t is defined in stdlib.h itself
and not in any included header file, all implementations
*could* define size_t in a header file included by stdlib.h.
My assertion is simply that, in fact, all implementations
*do* define size_t in a header file included by stdlib.h.
All you need to do to disprove my assertion is to provide
one example of an implementation that actually defines size_t
in stdlib.h itself.
Are you going to write code to depend on that fact (I wonder how...)
until I find you an implementation where it would fail? Which I did.
No. You haven't demonstrated that
size_t is actually defined in stdlib.h itself.
You claimed that stdlib.h includes another header to define size_t.
I pointed out that it was speculation on your part
since the standard does not define it.
And I have pointed out that the ANSI/ISO C standards are irrelevant
to the question of whether or not size_t is defined in a header file
included by stdlib.h.
You are just ignorant of all the other considerations,
besides the standard, that go into an implementation.
For example, size_t is useful at a much lower level than stdlib.h
in most implementations so it is *always* defined
in a lower level header file included in stdlib.h.
That is *my* point. Again, you said that stdlib.h
includes a header to define size_t. I pointed out
that it doesn't have to, according to the standard.
And I never argued this point. I only asserted that
size_t was actually defined in a header file included by stdlib.h.
The absence of even one contradictory example supports my assertion.