home *** CD-ROM | disk | FTP | other *** search
- CSAP - Sort And Pack Directories [C source]
-
- Author: Don A. Williams
- Version: 2.06
- Date: June, 24, 1987
-
- CSAP is composed of 4 modules; CSAP.C, SORTDIR.C, ISDEV.C.C, and
- GETDPB.C. The current version of CSAP, CSAP 2.06, has been
- designed for compilation with Borland International's Turbo C
- 1.0. The module ISDEV.C.C could be replaced by Turbo C's
- supplied function isatty(), however, I plan to extend ISDEV.C.C
- to distinguish among files, CON, AUX, and the printer. The
- function isatty() just distinguishes between files and the
- others.
-
- GETDPB.C cannot be compiled in Turbo C's interactive environment
- (TC). It is primarily inline ASM code and requires the more
- conventional environment provided by Turbo C's TCC command. As a
- result, CSAP was designed to be compiled through the use of a
- MAKEFILE and the MAKE facility of Turbo C.
-
- CSAP currently compiles and executes correctly in any of Turbo
- C's supported memory models except HUGE. The memory model is
- defined as a macro in the MAKEFILE and is supplied on the MAKE
- command line, i.e.:
-
- MAKE -DM=s
-
- to make a SMALL memory model version of CSAP (the "s" must be
- lower case since it is a parameter to TCC and TCC is case
- sensitive on its parameters). The resultant EXE file will be
- named CSAPx.EXE where 'x' is C, S, M, or L depending upon the
- memory model selected. There is no default memory model as yet,
- the desired model MUST be specified on the MAKE command line.
- The current MAKEFILE will NOT work properly for the TINY memory
- model, the library specifications in the MAKEFILE would have to
- be modified to use the SMALL libraries for the TINY model and the
- effort is probably not worth it. The command:
-
- TCC -mt -G csap sortdir isdevice getdpb
-
- would have to be used to produce a TINY memory model version of
- CSAP and would produce an EXE file with the name CSAP.EXE.
-
- The EXE and OBJ files in the CSAPxxx ARC have been produced for
- the COMPACT model which is probably the most general.
-
-