Back to index

tetex-bin  3.0
Classes | Defines | Typedefs | Functions
t1stdio.h File Reference
#include "types.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  F_FILE

Defines

#define FILE   F_FILE
#define UNGOTTENC   (0x01)
#define FIOEOF   (0x80)
#define FIOERROR   (0x40)
#define NULL   0 /* null pointer */
#define EOF   (-1) /* end of file */
#define F_BUFSIZ   (512)
#define getc(f)
#define fclose(f)   T1Close(f)
#define fopen(name, mode)   T1Open(name,mode)
#define ungetc(c, f)   T1Ungetc(c,f)
#define fgetc(f)   T1Getc(f)
#define fread(bufP, size, n, f)   T1Read(bufP,size,n,f)
#define feof(f)   (((f)->flags & FIOEOF) && ((f)->b_cnt==0))
#define ferror(f)   (((f)->flags & FIOERROR)?(f)->error:0)

Typedefs

typedef unsigned char F_char
typedef struct F_FILE F_FILE

Functions

FILET1Open ()
FILET1eexec ()
int T1Close ()
int T1Ungetc ()
int T1Read ()

Class Documentation

struct F_FILE

Definition at line 46 of file t1stdio.h.

Class Members
F_char * b_base
LONG b_cnt
F_char * b_ptr
LONG b_size
short error
int fd
F_char flags
F_char ungotc

Define Documentation

#define EOF   (-1) /* end of file */

Definition at line 67 of file t1stdio.h.

#define F_BUFSIZ   (512)

Definition at line 69 of file t1stdio.h.

#define fclose (   f)    T1Close(f)

Definition at line 81 of file t1stdio.h.

#define feof (   f)    (((f)->flags & FIOEOF) && ((f)->b_cnt==0))

Definition at line 86 of file t1stdio.h.

#define ferror (   f)    (((f)->flags & FIOERROR)?(f)->error:0)

Definition at line 87 of file t1stdio.h.

#define fgetc (   f)    T1Getc(f)

Definition at line 84 of file t1stdio.h.

#define FILE   F_FILE

Definition at line 43 of file t1stdio.h.

#define FIOEOF   (0x80)

Definition at line 60 of file t1stdio.h.

#define FIOERROR   (0x40)

Definition at line 61 of file t1stdio.h.

#define fopen (   name,
  mode 
)    T1Open(name,mode)

Definition at line 82 of file t1stdio.h.

#define fread (   bufP,
  size,
  n,
  f 
)    T1Read(bufP,size,n,f)

Definition at line 85 of file t1stdio.h.

#define getc (   f)
Value:
( \
   ( ((f)->b_cnt > 0) && ((f)->flags == 0) ) ? \
   ( (f)->b_cnt--, (unsigned int)*( (f)->b_ptr++ ) ) : \
   T1Getc(f) \
  )

Definition at line 71 of file t1stdio.h.

#define NULL   0 /* null pointer */

Definition at line 64 of file t1stdio.h.

#define ungetc (   c,
  f 
)    T1Ungetc(c,f)

Definition at line 83 of file t1stdio.h.

#define UNGOTTENC   (0x01)

Definition at line 59 of file t1stdio.h.


Typedef Documentation

typedef unsigned char F_char

Definition at line 44 of file t1stdio.h.

typedef struct F_FILE F_FILE

Function Documentation

int T1Close ( )
FILE * T1eexec ( )
FILE* T1Open ( )
int T1Read ( )