Patent Document ID: 5560010
Application ID: 08144699

Base Claim:
1. A computer-implemented process for generating declaration statements for objects defined in the external declarations of a source file, the process comprising the steps of: identifying data-type identifiers in an external declaration of the source file; storing a representation of the data-type identifiers as data-type keywords in a first memory location; identifying object declarators in the external declaration; storing a representation of the object declarators in a second memory location; determining whether the external declaration is an external definition or a typedef declaration; when the external declaration is an external definition, combining the data-type keywords in the first memory location and the object declarators in the second memory location to generate a declaration statement; when the external declaration is a typedef declaration, generating an entry in a symbol table with the data-type keywords from the first memory location, indexed by the object declarators from the second memory location; and repeating the preceding steps until all external declarations of the source file have been analyzed.

---

Claim 3:
3. The process of claim 1, wherein the step of determining whether an external declaration is an external definition or a typedef declaration, comprises the substeps of: identifying an external declaration as a function definition when the object declarator is a function declarator; identifying an external declaration as a variable definition when the object declarator is not a function declarator and the data-type keywords do not include a storage-class-specifier; and identifying an external declaration as a typedef declaration when the data type keywords include a TYPEDEF storage-class-specifier.