...
DCL02-C implicitly assumes 'Global Scope' which can be confused with 'Scope within the same file'. Though it may not generate any errors, but there may be a possible violation of the rule as in the example below. Note the example below does not violate DCL32-C.
| Code Block | ||
|---|---|---|
| ||
file foo.h :: int id_O; // (captial letter O) |
...
file bar.h :: int id_0; // (numeric letter |
...
| Code Block | ||
|---|---|---|
| ||
extern int *global_symbol_definition_lookup_table_a; extern int *global_symbol_definition_lookup_table_b; zero) |
If a file foobar.h includes both foo.h and bar. h and another file foobar.c that includes foobar.h uses both id0 and idO, it is a violation of DCL02-C.
...