Direct disk writing

T

Tech07

Nobody said:
User-defined types and functions are not "extensions".

Try compiling something that includes windows.h without MS extensions.

(You weren't suggesting that the Windows API was nothing but functions that
adhere to the C std were you?).
 
J

James Dow Allen

$ make
gcc -W -Wall -ansi -pedantic -Wformat-nonliteral -Wcast-align
-Wpointer-arith -Wbad-function-cast -Wmissing-prototypes
-Wstrict-prototypes -Wmissing-declarations -Winline -Wundef
-Wnested-externs -Wcast-qual -Wshadow -Wconversion -Wwrite-strings
-ffloat-store -fno-builtin -O2 -g -pg -c -o silly.o silly.c
gcc -W -Wall -ansi -pedantic -Wformat-nonliteral -Wcast-align
-Wpointer-arith -Wbad-function-cast -Wmissing-prototypes
-Wstrict-prototypes -Wmissing-declarations -Winline -Wundef
-Wnested-externs -Wcast-qual -Wshadow -Wconversion -Wwrite-strings
-ffloat-store -fno-builtin -O2 -g -pg -o silly silly.o

Didn't you forget
-Wwarn_about_ridiculous_number_of_warning_options
 
N

Nobody

None of the above are defined by a user but by an implementation - and
that is known as an properitary extension that is not on topic to clc.

Er, no.

From the perspective of both the language definition and a particular C
implementation, it makes no difference whether a type or function is
declared in a source file which was written by the author of the file
which references it, or a source file written by a co-worker, or a binary
library and headers supplied by a third party (which may or may not be the
same third party which supplied the compiler).

There's "same translation unit" and "different translation unit". The
C language doesn't recognise any further subdivisions.
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top