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)  

dviinfo.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Include dependency graph for dviinfo.c:

Go to the source code of this file.

Macros

#define version   "Dviinfo, version 1.3 \n" /* version is $Revision: 1.3 $ */
 
#define info   "This is dviinfo, a little TeX dvi-file tool.\n\n"
 
#define error(a)   {fprintf(stderr, a); exit(1);}
 
#define post   248
 
#define post_post   249
 
#define dvi_id   2
 
#define nop   138
 
#define fnt_def1   243
 
#define fnt_def2   244
 
#define fnt_def3   245
 
#define fnt_def4   246
 

Typedefs

typedef unsigned long four_bytes
 

Functions

void print_dimen (four_bytes x)
 
four_bytes read_unsigned (int bytes)
 
int reverse_getc (void)
 
void process_dvi_file (void)
 
int usage (char *prgname)
 
int main (int argc, char **argv)
 

Variables

int cur_command
 
double unity
 
char * filename
 
char * prgname
 
char ** getargv
 
FILEdvi_file
 

Macro Definition Documentation

◆ dvi_id

#define dvi_id   2

Definition at line 51 of file dviinfo.c.

◆ error

◆ fnt_def1

#define fnt_def1   243

Definition at line 53 of file dviinfo.c.

◆ fnt_def2

#define fnt_def2   244

Definition at line 54 of file dviinfo.c.

◆ fnt_def3

#define fnt_def3   245

Definition at line 55 of file dviinfo.c.

◆ fnt_def4

#define fnt_def4   246

Definition at line 56 of file dviinfo.c.

◆ info

#define info   "This is dviinfo, a little TeX dvi-file tool.\n\n"

Definition at line 42 of file dviinfo.c.

◆ nop

#define nop   138

Definition at line 52 of file dviinfo.c.

◆ post

#define post   248

Definition at line 49 of file dviinfo.c.

Referenced by process_dvi_file().

◆ post_post

#define post_post   249

Definition at line 50 of file dviinfo.c.

◆ version

#define version (   void)    "Dviinfo, version 1.3 \n" /* version is $Revision: 1.3 $ */

Definition at line 41 of file dviinfo.c.

Typedef Documentation

◆ four_bytes

typedef unsigned long four_bytes

Definition at line 58 of file dviinfo.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ print_dimen()

void print_dimen ( four_bytes  x)

Definition at line 74 of file dviinfo.c.

References getargv, printf(), unity, val, and cordic::x.

Referenced by process_dvi_file().

◆ process_dvi_file()

◆ read_unsigned()

four_bytes read_unsigned ( int  bytes)

Definition at line 126 of file dviinfo.c.

References bytes, dvi_file, getc, and cordic::x.

Referenced by process_dvi_file().

◆ reverse_getc()

int reverse_getc ( void  )

Definition at line 140 of file dviinfo.c.

References dvi_file, fseek, getc, and SEEK_CUR.

Referenced by process_dvi_file().

◆ usage()

int usage ( char *  prgname)

Definition at line 219 of file dviinfo.c.

References exit(), fprintf, fputs, info, and prgname.

Referenced by main().

Variable Documentation

◆ cur_command

int cur_command

Definition at line 64 of file dviinfo.c.

Referenced by process_dvi_file().

◆ dvi_file

◆ filename

char* filename

Definition at line 66 of file dviinfo.c.

Referenced by main(), and process_dvi_file().

◆ getargv

char ** getargv

Definition at line 66 of file dviinfo.c.

Referenced by main(), and print_dimen().

◆ prgname

char * prgname

◆ unity