w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

t1stdio.h File Reference
#include "types.h"
Include dependency graph for t1stdio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  F_FILE
 

Macros

#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

F_FILET1Open (char *, char *)
 
F_FILET1eexec (F_FILE *)
 
int T1Close (F_FILE *)
 
int T1Read (char *, int, int, F_FILE *)
 
int T1Getc (F_FILE *)
 
int T1Ungetc (int, F_FILE *)
 

Macro Definition Documentation

◆ EOF

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

Definition at line 57 of file t1stdio.h.

◆ F_BUFSIZ

#define F_BUFSIZ   (512)

Definition at line 58 of file t1stdio.h.

◆ fclose

#define fclose (   f)    T1Close(f)

Definition at line 104 of file t1stdio.h.

◆ feof

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

Definition at line 109 of file t1stdio.h.

◆ ferror

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

Definition at line 110 of file t1stdio.h.

◆ fgetc

#define fgetc (   f)    T1Getc(f)

Definition at line 107 of file t1stdio.h.

◆ FILE

#define FILE   F_FILE

Definition at line 34 of file t1stdio.h.

◆ FIOEOF

#define FIOEOF   (0x80)

Definition at line 51 of file t1stdio.h.

◆ FIOERROR

#define FIOERROR   (0x40)

Definition at line 52 of file t1stdio.h.

◆ fopen

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

Definition at line 105 of file t1stdio.h.

◆ fread

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

Definition at line 108 of file t1stdio.h.

◆ getc

#define getc (   f)
Value:
( \
( ((f)->b_cnt > 0) && ((f)->flags == 0) ) ? \
( (f)->b_cnt--, (unsigned int)*( (f)->b_ptr++ ) ) : \
T1Getc(f) \
)
mpz_t * f
Definition: gen-fib.c:34
#define flags
return() int(((double) *(font_tbl[cur_fnt].wtbl+(int)(*(font_tbl[cur_fnt].char_wi+(int)(ch - font_tbl[cur_fnt].char_f)% 256)))/(double)(1L<< 20)) *(double) font_tbl[cur_fnt].scale)

Definition at line 92 of file t1stdio.h.

◆ NULL

#define NULL   0 /* null pointer */

Definition at line 55 of file t1stdio.h.

◆ ungetc

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

Definition at line 106 of file t1stdio.h.

◆ UNGOTTENC

#define UNGOTTENC   (0x01)

Definition at line 50 of file t1stdio.h.

Typedef Documentation

◆ F_char

typedef unsigned char F_char

Definition at line 35 of file t1stdio.h.

◆ F_FILE

typedef struct F_FILE F_FILE

Function Documentation

◆ T1Close()

int T1Close ( F_FILE f)

Definition at line 166 of file t1io.c.

◆ T1eexec()

F_FILE * T1eexec ( F_FILE f)

Definition at line 175 of file t1io.c.

◆ T1Getc()

int T1Getc ( F_FILE f)

Definition at line 277 of file t1io.c.

References EOF, f, FIOEOF, NULL, T1Fill(), and UNGOTTENC.

◆ T1Open()

F_FILE* T1Open ( char *  fn,
char *  mode 
)

◆ T1Read()

int T1Read ( char *  buffP,
int  size,
int  n,
F_FILE f 
)

Definition at line 279 of file t1io.c.

References cnt, f, FIOEOF, i, n, NULL, p, size, T1Fill(), and UNGOTTENC.

◆ T1Ungetc()

int T1Ungetc ( int  c,
F_FILE f 
)

Definition at line 115 of file t1io.c.