03-06-2009, 12:30 PM
Suppose file f.c contains
but never defines or references that externally-declared identifiers.
Suppose also that the whole program is constituted by f.c and g.c, where g.c contains
Note that there are no other files in the program and that the program is valid C.
In particular, no compilation unit defines or uses the identifiers declared in f.c.
Is this code violating rule 5.5?
Thanks,
Roberto
Code:
extern int a;
extern int f(int x);
Suppose also that the whole program is constituted by f.c and g.c, where g.c contains
Code:
static int a = 3;
static int f(int x) {
return x+a;
}
In particular, no compilation unit defines or uses the identifiers declared in f.c.
Is this code violating rule 5.5?
Thanks,
Roberto