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)  

t1io.c File Reference
#include "t1stdio.h"
#include "t1hdigit.h"
Include dependency graph for t1io.c:

Go to the source code of this file.

Macros

#define STATIC   static
 
#define c1   ((unsigned short)52845)
 
#define c2   ((unsigned short)22719)
 

Functions

static int T1Decrypt (unsigned char *, int)
 
static int T1Fill (F_FILE *)
 
F_FILET1Open (char *fn, char *mode)
 
int T1Getc (F_FILE *f)
 
int T1Ungetc (int c, F_FILE *f)
 
int T1Read (char *buffP, int size, int n, F_FILE *f)
 
int T1Close (F_FILE *f)
 
F_FILET1eexec (F_FILE *f)
 

Variables

static unsigned short r
 
static int asc
 
static int Decrypt
 
static int extrach
 
static int haveextrach
 
static F_FILE TheFile
 
static unsigned char TheBuffer [(512)]
 

Macro Definition Documentation

◆ c1

#define c1   ((unsigned short)52845)

Definition at line 52 of file t1io.c.

◆ c2

#define c2   ((unsigned short)22719)

Definition at line 53 of file t1io.c.

◆ STATIC

#define STATIC   static

I/O package for Type 1 font reading

Definition at line 37 of file t1io.c.

Function Documentation

◆ T1Close()

int T1Close ( F_FILE f)

Definition at line 166 of file t1io.c.

References close, f, and NULL.

◆ T1Decrypt()

static int T1Decrypt ( unsigned char *  p,
int  len 
)
static

Definition at line 223 of file t1io.c.

References asc, c1, c2, extrach, H, haveextrach, HighHexP, HWHITE_SPACE, L, LAST_HDIGIT, len, LowHexP, n, p, and r.

Referenced by T1eexec().

◆ T1eexec()

F_FILE* T1eexec ( F_FILE f)

Definition at line 175 of file t1io.c.

References asc, c, c1, c2, f, feof, fread, getc, H, HighHexP, HWHITE_SPACE, i, LAST_HDIGIT, LowHexP, NULL, p, r, and T1Decrypt().

Referenced by scan_font().

◆ T1Fill()

static int T1Fill ( F_FILE f)

Definition at line 268 of file t1io.c.

References f, F_BUFSIZ, rc, and read.

Referenced by T1Getc(), and T1Read().

◆ T1Getc()

int T1Getc ( F_FILE f)

Definition at line 95 of file t1io.c.

◆ T1Open()

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

Definition at line 68 of file t1io.c.

◆ T1Read()

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

Definition at line 128 of file t1io.c.

◆ T1Ungetc()

int T1Ungetc ( int  c,
F_FILE f 
)

Definition at line 115 of file t1io.c.

References c, EOF, f, and UNGOTTENC.

Variable Documentation

◆ asc

int asc
static

Definition at line 55 of file t1io.c.

Referenced by HexDump(), CalendarAstronomer::Equatorial::set(), T1Decrypt(), and T1eexec().

◆ Decrypt

int Decrypt
static

Definition at line 55 of file t1io.c.

◆ extrach

int extrach
static

Definition at line 56 of file t1io.c.

Referenced by T1Decrypt().

◆ haveextrach

int haveextrach
static

Definition at line 57 of file t1io.c.

Referenced by T1Decrypt(), and T1Open().

◆ r

unsigned short r
static

Definition at line 54 of file t1io.c.

Referenced by T1Decrypt(), and T1eexec().

◆ TheBuffer

unsigned char TheBuffer[(512)]
static

Definition at line 61 of file t1io.c.

Referenced by T1Open().

◆ TheFile

F_FILE TheFile
static

Definition at line 60 of file t1io.c.

Referenced by T1Open().