Changes between Version 2 and Version 3 of kOptions


Ignore:
Timestamp:
May 17, 2007, 10:32:28 AM (17 years ago)
Author:
guest
Comment:

correct stuff about wildcards

Legend:

Unmodified
Added
Removed
Modified
  • kOptions

    v2 v3  
    99  * -Zno-autoconv: switch off automatic conversion between a.out and OMF format when linking.
    1010  * -Zomf: compile and link using OMF format instead of a.out.
     11  * -Zargs-wild: call {{{_wildcard()}}} (see below) automatically on startup
    1112
    1213These are mentioned in '''ReleaseNotes.os2''' but not sure what they do exactly:
    13   * -Zargs-wild: something with wildcards - call _wildcard (see below) automatically on startup?
    1414  * -Zargs-resp: ??
    1515  * -Zdll-search: ??
    1616  * -Zhigh-low: ??
    17   * -Zno-fork: turn off the fork() function?
     17  * -Zno-fork: turn off the {{{fork()}}} function?
    1818  * -Zno-unix: non-unix like mode, affects slash handling and fork()?
    1919
     
    2828  * -Zstack: set the stack size
    2929  * -Zso: create stand-alone DLL
    30   * -Zsys: create stand-alone OS/2 program (no emx.dll) - there's nothing similar for
    31                 current libc, if you use new gcc with new libc, you always need the libcxxx.dll
     30  * ~~-Zsys: create stand-alone OS/2 program (no emx.dll) - there's nothing similar for current libc, if you use new gcc with new libc, you always need the libcxxx.dll~~
    3231  * -Zsysv-signals: select the `System V' signal processing model
    3332
    3433Finally, there are a couple of special functions which simplify porting of Unix programs:
    35  * _wildcard (int * argc, char**argv): Same as in EMX, i.e. it expands it's arguments like a unix shell would do (but OS/2 cmd.exe doesn't), so you typically want to use this when porting a unix command line application. BTW, is there code to try and detect the calling shell, to avoid double expansion when a unix shell is used? I seem to remember that EMX did something like that?
     34 * {{{_wildcard (int *argc, char ***argv)}}}: Same as in EMX, i.e. it expands it's arguments like a unix shell would do (but OS/2 cmd.exe doesn't), so you typically want to use this when porting a unix command line application. Instead of adding this to a program, compilation with -Zargs-wild can be used.