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)  

pktopbm.c File Reference
#include <stdio.h>
#include <string.h>
#include "pbm.h"
Include dependency graph for pktopbm.c:

Go to the source code of this file.

Macros

#define NAMELENGTH   80
 
#define MAXROWWIDTH   3200
 
#define MAXPKCHAR   256
 

Typedefs

typedef int integer
 
typedef unsigned char quarterword
 
typedef char boolean
 
typedef quarterword eightbits
 

Functions

static void pktopbm_add_suffix (char *name, char *suffix)
 
static eightbits pktopbm_pkbyte ()
 
static integer get16 ()
 
static integer get32 ()
 
static integer getnyb ()
 
static boolean getbit ()
 
static integer pkpackednum ()
 
static void skipspecials ()
 
static void ignorechar (integer car, integer endofpacket)
 
int main (argc, argv)
 

Variables

static FILEpkfile
 
static char pkname [80+1]
 
static integer pktopbm_pkloc = 0
 
static char * filename [256]
 
static bit ** bitmap = NULL
 
static integer dynf
 
static eightbits inputbyte
 
static eightbits bitweight
 
static integer repeatcount
 
static integer flagbyte
 

Macro Definition Documentation

◆ MAXPKCHAR

#define MAXPKCHAR   256

Definition at line 13 of file pktopbm.c.

◆ MAXROWWIDTH

#define MAXROWWIDTH   3200

Definition at line 12 of file pktopbm.c.

◆ NAMELENGTH

#define NAMELENGTH   80

Definition at line 11 of file pktopbm.c.

Typedef Documentation

◆ boolean

typedef char boolean

Definition at line 17 of file pktopbm.c.

◆ eightbits

Definition at line 18 of file pktopbm.c.

◆ integer

typedef int integer

Definition at line 15 of file pktopbm.c.

◆ quarterword

typedef unsigned char quarterword

Definition at line 16 of file pktopbm.c.

Function Documentation

◆ get16()

static integer get16 ( )
static

Definition at line 51 of file pktopbm.c.

References a, and pktopbm_pkbyte().

Referenced by get32(), and main().

◆ get32()

static integer get32 ( )
static

Definition at line 58 of file pktopbm.c.

References a, and get16().

Referenced by main(), and skipspecials().

◆ getbit()

static boolean getbit ( void  )
static

Definition at line 80 of file pktopbm.c.

References bitweight, inputbyte, pktopbm_pkbyte(), and temp.

Referenced by main().

◆ getnyb()

static integer getnyb ( void  )
static

Definition at line 66 of file pktopbm.c.

References bitweight, inputbyte, pktopbm_pkbyte(), and temp.

Referenced by pkpackednum().

◆ ignorechar()

static void ignorechar ( integer  car,
integer  endofpacket 
)
static

Definition at line 155 of file pktopbm.c.

References car, MAXPKCHAR, pktopbm_pkbyte(), pktopbm_pkloc, pm_message, and skipspecials().

Referenced by main().

◆ main()

◆ pkpackednum()

static integer pkpackednum ( void  )
static

Definition at line 94 of file pktopbm.c.

References dynf, getnyb(), i, j, and repeatcount.

Referenced by main().

◆ pktopbm_add_suffix()

static void pktopbm_add_suffix ( char *  name,
char *  suffix 
)
static

Definition at line 33 of file pktopbm.c.

References dot, name, rindex(), strcmp(), and suffix.

Referenced by main().

◆ pktopbm_pkbyte()

static eightbits pktopbm_pkbyte ( )
static

Definition at line 44 of file pktopbm.c.

References getc, pkfile, and pktopbm_pkloc.

Referenced by get16(), getbit(), getnyb(), ignorechar(), main(), and skipspecials().

◆ skipspecials()

static void skipspecials ( )
static

Definition at line 119 of file pktopbm.c.

References break, flagbyte, get32(), i, j, pktopbm_pkbyte(), and pm_error.

Referenced by ignorechar(), and main().

Variable Documentation

◆ bitmap

bit** bitmap = NULL
static

Definition at line 24 of file pktopbm.c.

◆ bitweight

eightbits bitweight
static

Definition at line 27 of file pktopbm.c.

Referenced by getbit(), getnyb(), and main().

◆ dynf

integer dynf
static

Definition at line 25 of file pktopbm.c.

Referenced by main(), pkpackednum(), and shipcharacter().

◆ filename

char* filename[256]
static

Definition at line 23 of file pktopbm.c.

Referenced by main().

◆ flagbyte

integer flagbyte
static

Definition at line 29 of file pktopbm.c.

Referenced by draw_composite_glyf(), main(), shipcharacter(), and skipspecials().

◆ inputbyte

eightbits inputbyte
static

Definition at line 26 of file pktopbm.c.

Referenced by getbit(), and getnyb().

◆ pkfile

FILE* pkfile
static

Definition at line 20 of file pktopbm.c.

Referenced by main(), and pktopbm_pkbyte().

◆ pkname

char pkname[80+1]
static

Definition at line 21 of file pktopbm.c.

Referenced by main().

◆ pktopbm_pkloc

integer pktopbm_pkloc = 0
static

Definition at line 22 of file pktopbm.c.

Referenced by ignorechar(), main(), and pktopbm_pkbyte().

◆ repeatcount

integer repeatcount
static

Definition at line 28 of file pktopbm.c.

Referenced by dochar(), main(), pkpackednum(), and ReadRow().