home *** CD-ROM | disk | FTP | other *** search
/ ftp.uni-stuttgart.de/pub/systems/acorn/ / Acorn.tar / Acorn / acornet / dev / oberon / pot.spk / DDE / !mkmain / !help next >
Text File  |  1995-05-01  |  1KB  |  28 lines

  1.    mkmain
  2.    ~~~~~~
  3.    Purpose:  Create a C file that calls the exported PROCEDURE
  4.              in the toplevel MODULE of the Oberon program
  5.  
  6.    Setup:
  7.       Icon                    Action/Meaning                       Default
  8.       ----                    --------------                       -------
  9.       Module                  Name of MODULE (typed).                nil 
  10.  
  11.       Procedure               Name of PROCEDURE (typed).             nil
  12.  
  13.       Workdir                 The workdirectory to place the         nil
  14.                               generated C source in
  15.                               (typed or dragged).
  16.  
  17. An Oberon program translated by pOt to C needs a main entry point that
  18. calls an exported PROCEDURE from the toplevel MODULE. mkmain is a simple
  19. obey file that uses sed to generate a file with the main entry point.
  20. You need to supply the MODULE- and PROCEDURE-name and the working directory. 
  21. The resulting C file will be called 
  22.  
  23.   workdir.c.procedure_module
  24.  
  25. Command line interface:
  26.  
  27.   mkmain module procedure workdir
  28.