Writing the Prototype of all Functions Defined in the Current File

The 'Prototypes’ option is used to produce a file of prototypes that will describe all functions defined in the current file. It is better if this is handled automatically so that a function prototype is not forgotten and older software is converted to the ANSI form.

  

You can reach this dialog box by using the ‘Analysis’ option from the ‘Utils’ menu, then choosing the ‘Generate the function prototypes’ item in the list box.

Click on ‘Utils’  then ‘Analysis’. A list box full of option appears. Choose the ‘Generate function prototypes’ option by double-clicking on the line.

 

Output file name

You should enter the name of the output file here. If that file name is in use already, you will be prompted before the editor replaces it.

Options

The button 'Load into the editor' will display the result after build. For more information see the browsegen documentation

 

The structure of the generated file is the following:

           A commentary with the name of the source file and the date of generation

           A preprocessor instruction to avoid including this file twice

           The prototypes for each function defined in the source file

           An #endif at the end of the file

For example if the source file is called FOO.C and the name used for the generated .H file is FOO.H, the generated file will have the following form:

 

/* Prototypes for C:\TST\FIC.C. Generated 1994.06.19.6.6.26 */

#ifndef TFIC_H_ID

#define TFIC_H_ID

int FindLineFromPoint (int ycoord );

HRGN BuildRegionUp (HPS hPS ,int lin ,int col );

...

#endif