Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - source files are included in the package for the watcom c/c++ application http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Source files are included in the package for the Watcom C/C++ application
startup (or initialization) sequence.

(16-bit only) The initialization code directories/files are listed below:


Under \WATCOM\SRC\STARTUP

     WILDARGV.C    (wild card processing for argv)
     8087CW.C      (value loaded into 80x87 control word)


Under \WATCOM\SRC\STARTUP\DOS (DOS initialization)

     CSTRT086.ASM  (startup for 16-bit apps)
     DOS16M.ASM    (startup code for Tenberry Software's DOS/16M)
     CMAIN086.C    (final part of initialization sequence)
     MDEF.INC      (macros included by assembly code)

 Under \WATCOM\SRC\STARTUP\WIN (Windows initialization)


     CSTRTW16.ASM  (startup for 16-bit Windows apps)
     LIBENTRY.ASM  (startup for 16-bit Windows DLLs)
     MDEF.INC      (macros included by assembly code)


Under \WATCOM\SRC\STARTUP\OS2 (OS/2 initialization)

     CMAIN086.C    (final part of initialization sequence)
     MAINO16.C     (middle part of initialization sequence)
     CSTRTO16.ASM  (startup for 16-bit OS/2)
     EXITWMSG.H    (header file required by MAINO16.C)
     WOS2.H        (header file required by MAINO16.C)
     INITFINI.H    (header file required by MAINO16.C)
     MDEF.INC      (macros included by assembly code)

The following is a summary description of the startup files for DOS.  The
startup files for Windows and OS/2 are similar.  The assembler file
CSTRT086.ASM contains the first part of the initialization code and the
remainder is continued in the file CMAIN086.C.  It is CMAIN086.C that calls
your main routine (main).

The DOS16M.ASM file is a special version of the CSTRT086.ASM file which is
required when using the Tenberry Software, Inc.  DOS/16M 286 DOS extender.

(32-bit only) The initialization code directories/files are listed below:

Under \WATCOM\SRC\STARTUP

     WILDARGV.C   (wild card processing for argv)
     8087CW.C     (value loaded into 80x87 control word)

Under \WATCOM\SRC\STARTUP\386

     CSTRT386.ASM (startup for most DOS Extenders)
     CSTRTW32.ASM (startup for 32-bit Windows)
     CSTRTX32.ASM (startup for FlashTek DOS Extender)
     CMAIN386.C   (final part of initialization sequence)

Under \WATCOM\SRC\STARTUP\ADS

     ADSTART.ASM  (startup for AutoCAD Development System)

The assembler files CSTRT*.ASM contain the first part of the initialization
code and the remainder is continued in the file CMAIN386.C.  It is
CMAIN386.C that calls your main routine (main).

The source code is provided for those who wish to customize the
initialization sequence for special applications.

The file WILDARGV.C contains an alternate form of "argv" processing in which
wild card command line arguments are transformed into lists of matching file
names.  Wild card arguments are any arguments containing "*" or "?"
characters unless the argument is placed within quotes (").  Consider the
following example in which we run an application called "TOUCH" with the
argument "*.c".


     C>touch *.c

Suppose that the application was linked with the object code for the file
WILDARGV.C.  Suppose that the files AP1.C, AP2.C and AP3.C are stored in the
current directory.  The single argument "*.c" is transformed into a list of
arguments such that:


     argc == 4
     argv[1] points to "ap1.c"
     argv[2] points to "ap2.c"
     argv[3] points to "ap3.c"

The source file WILDARGV.C must be compiled to produce the object file
WILDARGV.OBJ.  This file must be specified before the Watcom C/C++ libraries
in the linker command file in order to replace the standard "argv"
processing.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson