home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
qedit
/
qcp208.arc
/
QCONFIG.QCP
< prev
next >
Wrap
Text File
|
1989-11-17
|
4KB
|
85 lines
*
* QCONFIG.QCP -- Sample QEdit macros for QCP, version 2.08
* Author: Tim Farley
* Date: 17-November-1989
*
*
* ^F9 is our "Compile" macro
*
* Note that this macro causes the the Output file name ($O) to be ERRORS.LST
* in the current directory, and the Macro file name ($M) to be ERRORS.MAC,
* also in the current directory. This is forced via the /M and /O command
* line switches.
*
* If you have a RAM disk, you will probably want to edit this macro
* (and/or change the ..O and ..M values in your QCP.DAT) to locate these
* files on the RAM disk for faster operation. If you configure QCP
* properly, making sure the filenames used for $O and $M are always the
* same as those referenced in this macro, then you can remove the /O and
* /M options below, saving some space here (since QCONFIG has a limited
* space for macros).
*
^f9 MacroBegin SaveFile OneWindow UnmarkBlock MarkLine EditFile 'errors.lst' Return Quit GotoBlockBeg Dos 'QCP/O.\errors.lst /M.\errors.mac ' CurrentFilename Return " " HorizontalWindow EditFile Return PrevWindow MacroRead 'errors.mac' Return UnMarkBlock
*
* The following is an alternate version of the compile macro, that makes the
* bottom "error" window take up only one quarter of the screen, instead of
* one half. Good for use on 43 or 50 line screens.
*
* NOTE: Because of the extra overhead of sizing the window, the following
* does not include the /O or /M switches on the QCP command line.
* You must make sure that QCP will always read/write these files
* from the same directory that this macro does.
*
* This macro also assumes that you have the QCONFIG (G)eneral option:
*
* Prompt for filename on open window?
*
* Set to "NO", which is the default.
*
^f9 MacroBegin SaveFile OneWindow UnmarkBlock MarkLine EditFile 'errors.lst' Return Quit GotoBlockBeg Dos 'QCP ' CurrentFilename Return " " HorizontalWindow HorizontalWindow EditFile Return PrevWindow CloseWindow MacroRead 'errors.mac' Return UmMarkBlock
*
* ^f8 is our "Regular expression search" macro
*
* This macro demonstrates the use of the /# options that QCP recognizes.
* It assumes that you have the definition:
*
* ..1 grep -o+n+r+ $1 $2 $3 $4 $5 $6 $7 $8 $9 $F >$O
*
* or similar in your QCP.DAT. This causes QCP /1 to invoke Borland's
* Turbo Grep (which comes with most Turbo language products now).
*
* Any other GREP utility which generates output with a filename, followed
* by a line number, followed by the line of text, could be substituted.
* In this case, Turbo Grep generates output in this form if you make sure
* the o+ and n+ switches are turned on.
*
* Again, you can get rid of the /M and /O options here by configuring your
* copy of QCP properly, to shorten this macro considerably.
*
* Hit ^f8, type your regular expression, then hit RETURN. ESC aborts.
*
* Note the use of Pause in this macro, taking advantage of QEdit 2.08.
*
^f8 MacroBegin SaveFile OneWindow UnmarkBlock MarkLine EditFile 'grep.lst' Return Quit GotoBlockBeg Dos 'QCP/O.\grep.lst /M.\grep.mac /1 ' CurrentFilename ' ' Pause Return " " HorizontalWindow EditFile Return PrevWindow MacroRead 'grep.mac' Return
*
* ^f10 is a "Make" macro
*
* This macro makes use of the /# option of QCP to replace the function of
* QMAKE by Jerry Houston. It assumes that you have the definition:
*
* ..2 make $N
*
* or similar in your QCP.DAT. This causes QCP /2 to run your make program,
* with the assumption that you always keep a make file, with no extension,
* with the same root name as each source file you compile.
*
^f10 MacroBegin Dos 'QCP /G- /2 ' CurrentFilename Return
*
* EOF: QCONFIG.QCP *