cvs commit: hugs98/src machdep.c

Sigbjorn Finne sof@glass.cse.ogi.edu
Sun, 20 Jan 2002 20:43:18 -0800


sof         2002/01/20 20:43:18 PST

  Modified files:
    src                  machdep.c 
  Log:
  Reworked startEdit(), simplifying (and extending) how Hugs
  expands the string associated with the -E option. The rules
  are now as follows:
  
  * occurrences of %d are substituted by the line number.
  * occurrences of %s are substituted by the filename. If the
    %s is surrounded by spaces, the filename is additionally
    surrounded in double quotes.
  * occurrences of %f are substituted by the absolute filename
    (needed to better work with some non-standard editors).
  * occurrences of %% are replaced with %.
  
  * If the editor string is prefixed with '&', then the editor
    is invoked asynchronously, i.e., Hugs won't wait until the
    editor process terminates. This feature is currently only
    supported on Windows platforms.
  * If the editor string is prefixed by '!', then the editor
    is invoked just like a shell command. (Win32 only, to support
    users that insist on involving a shell / command processor).
  
  Revision  Changes    Path
  1.37      +164 -126  hugs98/src/machdep.c