Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#FFcccc
file foo.h :: int id_O; // (captial letter O)
file bar.h :: int id_0; // (numeric letter 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.

...

In a compliant solution, use of visully similar identifiers should be avoided in the same project scope.file foo.h :: int id_a;
file bar.h :: int id_b;

Code Block
bgColor#ccccff
extern int *a_global_symbol_definition_lookup_table;
extern int *b_global_symbol_definition_lookup_table;

Risk Assessment

Failing to use visually distinct identifiers can result in referencing the wrong object or function, causing unintended program behavior.

...