home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
prgramer
/
adaptor
/
src
/
include
/
source.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-08
|
1KB
|
43 lines
# ifndef xySource
# define xySource
/* $Id: Source.h,v 1.3 90/07/04 14:34:38 grosch rel $ */
extern int BeginSource ();
/*
int BeginSource (FileName)
char * FileName;
BeginSource is called from the scanner to open files.
If not called input is read form standard input.
*/
extern int GetLine ();
/*
int GetLine (File, Buffer, Size)
int File;
char * Buffer;
unsigned Size;
GetLine is called to fill a buffer starting at address 'Buffer'
with a block of maximal 'Size' characters. Lines are terminated
by newline characters (ASCII = 0xa). GetLine returns the number
of characters transferred. Reasonable block sizes are between 128
and 2048 or the length of a line. Smaller block sizes -
especially block size 1 - will drastically slow down the scanner.
*/
extern void CloseSource ();
/*
void CloseSource (File)
int File;
CloseSource is called from the scanner at end of file respectively
at end of input. It can be used to close files.
*/
# endif