home *** CD-ROM | disk | FTP | other *** search
- mkmain
- ~~~~~~
- Purpose: Create a C file that calls the exported PROCEDURE
- in the toplevel MODULE of the Oberon program
-
- Setup:
- Icon Action/Meaning Default
- ---- -------------- -------
- Module Name of MODULE (typed). nil
-
- Procedure Name of PROCEDURE (typed). nil
-
- Workdir The workdirectory to place the nil
- generated C source in
- (typed or dragged).
-
- An Oberon program translated by pOt to C needs a main entry point that
- calls an exported PROCEDURE from the toplevel MODULE. mkmain is a simple
- obey file that uses sed to generate a file with the main entry point.
- You need to supply the MODULE- and PROCEDURE-name and the working directory.
- The resulting C file will be called
-
- workdir.c.procedure_module
-
- Command line interface:
-
- mkmain module procedure workdir
-