Guardian Procedure Calls Reference Manual
COMPRESSEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Example
Related Programming Manual
Summary
The COMPRESSEDIT procedure copies a specified EDIT file to a new EDIT file that it creates. It fills
each block in the new file as much as possible to minimize the number of disk pages used. It then
purges the old file and renames the new file to have the name of the old file. The lines in the new
file are renumbered if so requested. Upon completion, the new file is open and the current record
number is set to -1 (beginning of file). The file number of the new file is returned to the caller.
COMPRESSEDIT is an IOEdit procedure and can only be used with files that have been opened
by OPENEDIT or OPENEDIT_.
Syntax for C Programmers
#include <cextdecs(COMPRESSEDIT)>
short COMPRESSEDIT ( short *filenum
,[ short start ]
,[ __int32_t increment ] );
• CEXTDECS (through the included file TNSINTH) defines 32-bit values as the typedef
__int32_t, which for TNS and TNS/R compiles is defined as long and for TNS/E compiles
is defined as int.
Syntax for TAL Programmers
error := COMPRESSEDIT ( filenum ! i,o
,[ start ] ! i
,[ increment ] ); ! i
Parameters
filenum
input, output
INT .EXT:ref:1
specifies the file number of the open file to be copied into compressed form. It returns the file
number of the new file.
COMPRESSEDIT Procedure 179