"Fossies" - the Fresh Open Source Software Archive

Member "jed-0.99-19/src/vfile.h" (14 Dec 2009, 1009 Bytes) of package /linux/misc/jed-0.99-19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "vfile.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef _DAVIS_VFILE_H_
    2 #define _DAVIS_VFILE_H_
    3 /* Copyright (c) 1992, 1998, 2000, 2005, 2006 John E. Davis
    4  * This file is part of JED editor library source.
    5  *
    6  * You may distribute this file under the terms the GNU General Public
    7  * License.  See the file COPYING for more information.
    8  */
    9 
   10 #define VFILE_TEXT  1
   11 #define VFILE_BINARY  2
   12 extern unsigned int VFile_Mode;
   13 
   14 typedef struct
   15 {
   16    char *buf;                  /* buffer for stream */
   17    char *bmax;                 /* pointer to end buffer */
   18    char *bp;                   /* current pointer in stream */
   19    char *eof;                  /* pointer to EOF if non NULL */
   20    int fd;                 /* file descrip for stream */
   21    unsigned int size;              /* default buffer size */
   22    unsigned int mode;
   23    unsigned int cr_flag;           /* true if lines end in cr */
   24 } VFILE;
   25 
   26 extern char *vgets(VFILE *, unsigned int *);
   27 extern VFILE *vopen(SLFUTURE_CONST char *, unsigned int, unsigned int);
   28 extern void vclose(VFILE *);
   29 extern VFILE *vstream(int, unsigned int, unsigned int);
   30 
   31 #endif