Updating existing code
If you have an existing application and want the benefits of
there are several possibilities for updating,
depending on how much of the code you care to change:
For most programmers, choices 2 and 3 are probably the best cost/benefit compromise.
these options are precisely the ones that require detailed knowledge
of the rules for mixing of old and new styles.
Recompile without making any changes.
Even with no coding changes, the compiler will warn you about
mismatches in parameter type and number when invoked with the
Add function prototypes just to the headers.
All calls to global functions are covered.
Add function prototypes to the headers
and start each source file with function prototypes for its local (static)
All calls to functions are covered,
but this requires typing the interface for each local function twice in the
Change all function declarations and definitions to use function prototypes.
Writing new code
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003