The syntax rules in this section apply to all statements in a module-definition file. Other rules specific to each statement are described in the sections that follow.
Statement and attribute keywords are not case sensitive. A statement keyword can be preceded by spaces and tabs.
A NAME or LIBRARY statement, if used, must precede all other statements.
Most statements appear at most once in a file and accept one specification of parameters and attributes. The specification follows the statement keyword on the same or subsequent line(s). If repeated with a different specification later in the file, the later statement overrides the earlier one.
The SEGMENTS, EXPORTS, and IMPORTS statements can appear more than once in the file and take multiple specifications, each on its own line. The statement keyword must appear once before the first specification and can be repeated before each additional specification.
Comments in the file are designated by a semicolon (;) at the beginning of each comment line. A comment cannot share a line with part or all of a statement but can appear between lines of a multiline statement.
Numeric arguments can be specified in decimal or in C-language notation.
Name arguments cannot match a reserved word.
Example
The sample module-definition file below gives a description for a DLL. This sample file includes one comment and five statements.
; Sample module-definition file
LIBRARY
DESCRIPTION 'Sample dynamic-link library'
CODE PRELOAD
STACKSIZE 1024
EXPORTS
Init @1
Begin @2
Finish @3
Load @4
Print @5