home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tags18.zip / TAGIO.H < prev    next >
C/C++ Source or Header  |  1991-10-05  |  2KB  |  66 lines

  1. /*
  2.  EPSHeader
  3.  
  4.    File: tagio.h
  5.    Author: J. Kercheval
  6.    Created: Wed, 07/17/1991  21:47:25
  7.  */
  8. /*
  9.   EPSRevision History
  10.  
  11.    J. Kercheval  Sun, 08/18/1991  20:33:56  Added fill_buffer()
  12.    J. Kercheval  Thu, 09/05/1991  20:12:29  add MergeFile()
  13.  */
  14.  
  15. #include "flags.h"
  16. #include "arglist.h"
  17.  
  18.  
  19. /*----------------------------------------------------------------------------
  20.  *
  21.  * OutputTag() places the tag in the correct format into the output stream
  22.  *
  23.  ---------------------------------------------------------------------------*/
  24.  
  25. void OutputTag(FILE * outfile, char *line, char *symbol, char *infname,
  26.                 long int line_number, long int char_number, Flags * flags);
  27.  
  28.  
  29. /*----------------------------------------------------------------------------
  30.  *
  31.  * FillBuffer() fills the passed buffer parameter with bufsize characters
  32.  * (or as many as are available) and places and null character '\0' at the
  33.  * end of the buffer.  This routine returns TRUE if successful and FALSE if
  34.  * eof(infile) is true.  Note: if a bufsize parameter is passed and the read
  35.  * is successful for bufsize characters, then buffer[bufsize] will be
  36.  * overwritten with the null character.  Do not pass a bufsize the maximum
  37.  * size of the buffer.  This null terminated buffering scheme assumes the
  38.  * source file has no null character embedded within it.
  39.  *
  40.  ---------------------------------------------------------------------------*/
  41.  
  42.     BOOLEAN FillBuffer(FILE * infile, char *buffer, long int bufsize);
  43.  
  44.  
  45. /*----------------------------------------------------------------------------
  46.  *
  47.  * GetLine() will read a line not to exceed n-1 chars from f and will return
  48.  * TRUE if any characters parsed
  49.  *
  50.  ---------------------------------------------------------------------------*/
  51.  
  52.     BOOLEAN GetLine(FILE * f, char *line, int n);
  53.  
  54.  
  55. /*----------------------------------------------------------------------------
  56.  *
  57.  * MergeFile() will take the temporary file and merge it into the potentially
  58.  * existing tag file.  During the merge, any tags from the input files which
  59.  * were processed during this session will be deleted from the tag file to
  60.  * prevent innaccurate tagging information.
  61.  *
  62.  ---------------------------------------------------------------------------*/
  63.  
  64.     void MergeFile(char *input_filename, char *output_filename,
  65.                     ArgList arglist, Flags * flags);
  66.