Re: Automatically generate variables



Mark McIntyre wrote:
On Sun, 18 Feb 2007 11:15:17 +1300, in comp.lang.c , Ian Collins
<ian-news@xxxxxxxxxxx> wrote:

One has to draw the distinction between extensions to the language (the
&& gcc extension and operator overloading) and platform specific
libraries. It is a fairly straightforward exercise for a developer to
implement a set of functions defined in a library

I'm not sure I'd entirely agree with that. It'd be fairly hard to
implement the Win32 libraries on most embedded systems, I suspect.
Unless "implement" includes returining a noop...

It does, indeed. Point is that calling conventions, preprocessor magic,
syntax are all the same. If your program is

#include <windows.h>
int main (void)
{
return 0;
}

then it's a C program. If your program is

#include <magic.h>
int main (void)
{
return return 1.345e18u87;
}

then it's not.

Anything which conforms to the language defined in the current C
standard is a C program, which includes programs that include
non-standard headers.

Inasmuch as Geordie is still English. Which is to say not with respect
to passing an exam or making yourself understood in Arizona or
Auchtermuchty.

It's good that there is this English language, and nobody knows
now what really is "correct" English, but it doesn't have much
to do with C. What language is the first program posted here? Is
it C? If not, is it "you tell me what it is?". Whatever, that *is*
C even if you don't like Jacob Navia.

Yevgen
.



Relevant Pages

  • [PATCH v2]kernel: remove mess codes
    ... void __init ... static int __init ... have to play switch_stack games or in some way use the pt_regs struct. ... How to Apply These Terms to Your New Libraries ...
    (Linux-Kernel)
  • Re: lcc and c99 conformance
    ... int main ... void f ... libraries yet? ... since glibc has a complete implementation of the C99 libraries... ...
    (comp.compilers.lcc)
  • Re: wrong print
    ... you must be using non-standard libraries. ... int max_line_len = 1024; char **Amm,**Pss; ... char* readline; void scandir; ... Before posting for the first time to a group ALWAYS read the FAQ ...
    (comp.lang.c)
  • Re: I pee in the open
    ... assembler code, I omitted the comments to get a more compact source. ... Compile it with gcc -O3 -o annie annie.c, no libraries required. ... void x_send; ... int x_receive_raw; ...
    (alt.lang.asm)
  • Re: xwpe
    ... > libraries are found when i try to run a script i get this; ... now i get error messages which are quite strange to me, all i wan` t to do ... then i get an error message which says that main must return int so i change ... and i also don` t know why i can` t use void ...
    (alt.os.linux.suse)