Prototypes tab for C External Function
Use the Prototypes tab to automatically build a parameter list for the external function by parsing the source code of the function.
Note:
If you have access to source code, you will probably find it easier to build a parameter list using the Prototypes tab than using the Record tab.
Specify information in these fields only if you do not specify information in the fields on the Record tab.
If the external function does not require any parameters, you can leave the fields on this tab and the fields on the Record tab blank.
Fields
File to Parse
In the File to Parse field, type the name of the file containing the C or COBOL source code for the external function.
If you do not remember the file name, select Find to see a list of files from which you can choose. If you want to view the contents of the file, select View.
When you have specified the file you want to use, select Parse.
Parse
Select Parse to have VA Smalltalk read the contents of the C header file or COBOL copy library file and build the parameter list to use with the external function.
The names of the available functions appear in the list.
The parameters specified in the source code for the selected function appear as attributes on the external function part's public interface, allowing other parts to set or retrieve their values. For a C function, the function's return value also appears as an attribute.
Function prototypes
The Function prototypes list shows all of the functions identified when VA Smalltalk parsed the source file specified in the File to Parse field.
To specify that the parameter list of the external function needs to be based on one of the functions in the source file, select the correct function name in the list.
Last modified date: 01/29/2015