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)  

dt2dv.c File Reference
#include <ctype.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dtl.h"
Include dependency graph for dt2dv.c:

Go to the source code of this file.

Classes

struct  Line
 
struct  CmdPrefix
 
struct  op_info
 
struct  op_table
 
struct  Options
 

Macros

#define MAXLINE   8192
 
#define MAXTOKLEN   255
 
#define true   1
 
#define false   0
 
#define NCMDS   256
 
#define PRINT_PROGNAME   fprintf (stderr, "%s ", progname)
 
#define gfree(p)   {if (p) free (p);}
 
#define __DATE__   ""
 
#define __TIME__   ""
 
#define C_LEVEL   "non-"
 
#define CHAR_OK   1
 
#define CHAR_FAIL   0
 
#define CHAR_EOS   (-1)
 
#define LSIZE   16384
 

Typedefs

typedef char Token[255+2]
 
typedef unsigned char Byte
 
typedef char Boolean
 
typedef char * CmdTable[256]
 

Functions

int mem_viol ()
 
int give_help ()
 
int parse ()
 
int process ()
 
int no_op ()
 
int dtl_stdin ()
 
int dvi_stdout ()
 
int open_dtl ()
 
int open_dvi ()
 
int dt2dv ()
 
intgmalloc ()
 
int dinfo ()
 
int dexit ()
 
int cons_cmds ()
 
int free_cmds ()
 
int get_line ()
 
int read_line_char ()
 
int read_char ()
 
int unread_char ()
 
int read_string_char ()
 
COUNT read_variety ()
 
COUNT read_token ()
 
COUNT skip_space ()
 
COUNT read_misc ()
 
COUNT read_mes ()
 
int find_command ()
 
int xfer_args ()
 
int set_seq ()
 
int check_byte ()
 
int put_byte ()
 
U4 xfer_hex ()
 
U4 xfer_oct ()
 
U4 xfer_unsigned ()
 
S4 xfer_signed ()
 
int check_bmes ()
 
int check_emes ()
 
int init_Lstring ()
 
int de_init_Lstring ()
 
Lstringalloc_Lstring ()
 
int free_Lstring ()
 
int ls_putb ()
 
S4 get_Lstring ()
 
int put_Lstring ()
 
U4 xfer_len_string ()
 
U4 get_unsigned ()
 
S4 get_signed ()
 
int put_unsigned ()
 
int put_signed ()
 
S4 xfer_bop_address ()
 
S4 xfer_postamble_address ()
 
int put_table ()
 
U4 special ()
 
int fontdef ()
 
U4 preamble ()
 
int postamble ()
 
int post_post ()
 
int main (int argc, char *argv[])
 
int mem_viol (int sig)
 
int parse (const char *s)
 
int open_dtl (const char *dtl_file, FILE **pdtl)
 
int open_dvi (const char *dvi_file, FILE **pdvi)
 
int process (const char *s)
 
int put_byte (int byte, FILE *dvi)
 
int dt2dv (FILE *dtl, FILE *dvi)
 
intgmalloc (long int size)
 
int dexit (int n)
 
int cons_cmds (int nprefixes, CmdPrefix *prefix, CmdTable cmds)
 
int free_cmds (CmdTable cmds)
 
int get_line (FILE *fp, Line *line, int max)
 
int read_line_char (FILE *fp, int *ch)
 
int read_char (FILE *fp, int *ch)
 
COUNT read_variety (FILE *dtl)
 
COUNT skip_space (FILE *fp, int *ch)
 
COUNT read_token (FILE *dtl, char *token)
 
int read_string_char (FILE *fp, int *ch)
 
COUNT read_misc (FILE *fp, Token token)
 
COUNT read_mes (FILE *fp, char *token)
 
int find_command (char *command, int *opcode)
 
int check_byte (int byte)
 
int xfer_args (FILE *dtl, FILE *dvi, int opcode)
 
int set_seq (FILE *dtl, FILE *dvi)
 
U4 xfer_hex (int n, FILE *dtl, FILE *dvi)
 
U4 xfer_oct (int n, FILE *dtl, FILE *dvi)
 
U4 xfer_unsigned (int n, FILE *dtl, FILE *dvi)
 
S4 xfer_signed (int n, FILE *dtl, FILE *dvi)
 
U4 get_unsigned (FILE *dtl)
 
S4 get_signed (FILE *dtl)
 
int put_unsigned (int n, U4 unum, FILE *dvi)
 
int put_signed (int n, S4 snum, FILE *dvi)
 
int check_bmes (FILE *dtl)
 
int check_emes (FILE *dtl)
 
int init_Lstring (Lstring *lsp, long int n)
 
int de_init_Lstring (Lstring *lsp)
 
Lstringalloc_Lstring (long int n)
 
int free_Lstring (Lstring *lstr)
 
int ls_putb (int ch, Lstring *lstr)
 
long int get_Lstring (FILE *dtl, Lstring *lstr)
 
int put_Lstring (const Lstring *lstr, FILE *dvi)
 
U4 xfer_len_string (int n, FILE *dtl, FILE *dvi)
 
S4 xfer_bop_address (FILE *dtl, FILE *dvi)
 
S4 xfer_postamble_address (FILE *dtl, FILE *dvi)
 
int put_table (op_table table, int opcode, FILE *dtl, FILE *dvi)
 
U4 special (FILE *dtl, FILE *dvi, int n)
 
int fontdef (FILE *dtl, FILE *dvi, int suffix)
 
U4 preamble (FILE *dtl, FILE *dvi)
 
int postamble (FILE *dtl, FILE *dvi)
 
int post_post (FILE *dtl, FILE *dvi)
 

Variables

int rd_stdin = 0
 
int wr_stdout = 0
 
char linebuf [8192+1]
 
Line dtl_line = {0, 0, 0, 8192 , linebuf}
 
CmdPrefix cmd_prefixes []
 
CmdTable cmd_table
 
op_info op_info_128_170 []
 
op_table op_128_170 = {"op_128_170", 128, 170, op_info_128_170}
 
op_info fnt_n []
 
op_table fnt = { "f" , 235, 238, fnt_n}
 
Options opts []
 
const char * progname
 
int nfile
 
FILEdtl_fp
 
FILEdvi_fp
 
const char * dtl_filename
 
const char * dvi_filename
 
COUNT dtl_read = 0
 
COUNT dvi_written = 0
 
word_t last_bop_address = -1
 
word_t postamble_address = -1
 
COUNT ncom = 0
 
COUNT com_read = 0
 

Macro Definition Documentation

◆ __DATE__

#define __DATE__   ""

◆ __TIME__

#define __TIME__   ""

◆ C_LEVEL

#define C_LEVEL   "non-"

◆ CHAR_EOS

#define CHAR_EOS   (-1)

Definition at line 1306 of file dt2dv.c.

◆ CHAR_FAIL

#define CHAR_FAIL   0

Definition at line 1305 of file dt2dv.c.

◆ CHAR_OK

#define CHAR_OK   1

Definition at line 1304 of file dt2dv.c.

◆ false

#define false   0

Definition at line 85 of file dt2dv.c.

◆ gfree

#define gfree (   p)    {if (p) free (p);}

Definition at line 326 of file dt2dv.c.

◆ LSIZE

#define LSIZE   16384

Definition at line 2005 of file dt2dv.c.

◆ MAXLINE

#define MAXLINE   8192

Definition at line 51 of file dt2dv.c.

◆ MAXTOKLEN

#define MAXTOKLEN   255

Definition at line 75 of file dt2dv.c.

◆ NCMDS

#define NCMDS   256

Definition at line 127 of file dt2dv.c.

◆ PRINT_PROGNAME

#define PRINT_PROGNAME   fprintf (stderr, "%s ", progname)

Definition at line 322 of file dt2dv.c.

◆ true

#define true   1

Definition at line 82 of file dt2dv.c.

Typedef Documentation

◆ Boolean

typedef char Boolean

Definition at line 79 of file dt2dv.c.

◆ Byte

typedef unsigned char Byte

Definition at line 78 of file dt2dv.c.

◆ CmdTable

typedef char* CmdTable[256]

Definition at line 130 of file dt2dv.c.

◆ Token

typedef char Token[255+2]

Definition at line 76 of file dt2dv.c.

Function Documentation

◆ alloc_Lstring() [1/2]

Lstring* alloc_Lstring ( )

◆ alloc_Lstring() [2/2]

Lstring* alloc_Lstring ( long int  n)

Definition at line 2043 of file dt2dv.c.

References gmalloc(), init_Lstring(), and n.

◆ check_bmes() [1/2]

int check_bmes ( )

Referenced by get_Lstring().

◆ check_bmes() [2/2]

int check_bmes ( FILE dtl)

Definition at line 1930 of file dt2dv.c.

References BMES_CHAR, ch, dexit(), dtl_filename, fprintf, PRINT_PROGNAME, and skip_space().

◆ check_byte() [1/2]

int check_byte ( )

Referenced by put_byte().

◆ check_byte() [2/2]

int check_byte ( int  byte)

Definition at line 1484 of file dt2dv.c.

References dexit(), fprintf, and PRINT_PROGNAME.

◆ check_emes() [1/2]

int check_emes ( )

Referenced by get_Lstring().

◆ check_emes() [2/2]

int check_emes ( FILE dtl)

Definition at line 1969 of file dt2dv.c.

References ch, dexit(), dtl_filename, EMES_CHAR, fprintf, PRINT_PROGNAME, and read_char().

◆ cons_cmds() [1/2]

int cons_cmds ( )

Referenced by dt2dv().

◆ cons_cmds() [2/2]

int cons_cmds ( int  nprefixes,
CmdPrefix prefix,
CmdTable  cmds 
)

Definition at line 907 of file dt2dv.c.

References code, dexit(), fprintf, gmalloc(), i, j, prefix::name, PRINT_PROGNAME, slen, sprintf, strcpy(), strlen(), and suffix.

◆ de_init_Lstring() [1/2]

int de_init_Lstring ( )

Referenced by fontdef(), and xfer_len_string().

◆ de_init_Lstring() [2/2]

int de_init_Lstring ( Lstring lsp)

Definition at line 2026 of file dt2dv.c.

References free, Lstring::l, and NULL.

◆ dexit() [1/2]

◆ dexit() [2/2]

int dexit ( int  n)

Definition at line 890 of file dt2dv.c.

References dinfo(), exit(), fprintf, n, and PRINT_PROGNAME.

◆ dinfo()

◆ dt2dv() [1/2]

int dt2dv ( )

Referenced by main().

◆ dt2dv() [2/2]

◆ dtl_stdin()

int dtl_stdin ( )

Definition at line 460 of file dt2dv.c.

References dtl_filename, dtl_fp, and nfile.

◆ dvi_stdout()

int dvi_stdout ( )

Definition at line 467 of file dt2dv.c.

References dvi_filename, dvi_fp, fileno, isatty, nfile, SET_BINARY, and fc-lang::stdout.

◆ find_command() [1/2]

int find_command ( )

Referenced by dt2dv().

◆ find_command() [2/2]

int find_command ( char *  command,
int opcode 
)

Definition at line 1454 of file dt2dv.c.

References cmd_table, found, i, NCMDS, and strcmp().

◆ fontdef() [1/2]

int fontdef ( )

◆ fontdef() [2/2]

◆ free_cmds() [1/2]

int free_cmds ( )

Referenced by dt2dv().

◆ free_cmds() [2/2]

int free_cmds ( CmdTable  cmds)

Definition at line 990 of file dt2dv.c.

References gfree, i, and NCMDS.

◆ free_Lstring() [1/2]

int free_Lstring ( )

◆ free_Lstring() [2/2]

int free_Lstring ( Lstring lstr)

Definition at line 2060 of file dt2dv.c.

References free, and Lstring::s.

◆ get_line() [1/2]

◆ get_line() [2/2]

int get_line ( FILE fp,
Line line,
int  max 
)

Definition at line 1006 of file dt2dv.c.

References fgets, fp, max, NULL, and strlen().

◆ get_Lstring() [1/2]

S4 get_Lstring ( )

Referenced by fontdef(), and xfer_len_string().

◆ get_Lstring() [2/2]

long int get_Lstring ( FILE dtl,
Lstring lstr 
)

◆ get_signed() [1/2]

S4 get_signed ( )

Referenced by xfer_signed().

◆ get_signed() [2/2]

S4 get_signed ( FILE dtl)

Definition at line 1816 of file dt2dv.c.

References dexit(), dtl_filename, fprintf, PRINT_PROGNAME, read_token(), SF4, snum, and sscanf().

◆ get_unsigned() [1/2]

U4 get_unsigned ( )

◆ get_unsigned() [2/2]

U4 get_unsigned ( FILE dtl)

Definition at line 1784 of file dt2dv.c.

References dexit(), dtl_filename, fprintf, PRINT_PROGNAME, read_token(), sscanf(), and UF4.

◆ give_help()

int give_help ( )

Definition at line 433 of file dt2dv.c.

References desc, fprintf, i, Options::keyword, keyword, NULL, opts, PACKAGE_BUGREPORT, and PRINT_PROGNAME.

Referenced by main().

◆ gmalloc() [1/2]

int* gmalloc ( )

◆ gmalloc() [2/2]

int* gmalloc ( long int  size)

Definition at line 833 of file dt2dv.c.

References dexit(), fprintf, malloc, NULL, p, PRINT_PROGNAME, and size.

◆ init_Lstring() [1/2]

int init_Lstring ( )

◆ init_Lstring() [2/2]

int init_Lstring ( Lstring lsp,
long int  n 
)

Definition at line 2009 of file dt2dv.c.

References gmalloc(), and n.

◆ ls_putb() [1/2]

int ls_putb ( )

Referenced by get_Lstring().

◆ ls_putb() [2/2]

int ls_putb ( int  ch,
Lstring lstr 
)

Definition at line 2075 of file dt2dv.c.

References ch, dexit(), fprintf, Lstring::l, Lstring::m, PRINT_PROGNAME, and Lstring::s.

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ mem_viol() [1/2]

int mem_viol ( )

Referenced by main(), and mem_viol().

◆ mem_viol() [2/2]

int mem_viol ( int  sig)

Definition at line 407 of file dt2dv.c.

References dexit(), dtl_line, fprintf, mem_viol(), Line::num, PRINT_PROGNAME, signal(), and WF.

◆ no_op()

int no_op ( )

Definition at line 455 of file dt2dv.c.

◆ open_dtl() [1/2]

int open_dtl ( )

Referenced by process().

◆ open_dtl() [2/2]

int open_dtl ( const char *  dtl_file,
FILE **  pdtl 
)

Definition at line 509 of file dt2dv.c.

References dexit(), dtl_filename, fopen, fprintf, NULL, and PRINT_PROGNAME.

◆ open_dvi() [1/2]

int open_dvi ( )

Referenced by process().

◆ open_dvi() [2/2]

int open_dvi ( const char *  dvi_file,
FILE **  pdvi 
)

Definition at line 554 of file dt2dv.c.

References dexit(), dvi_file, dvi_filename, fopen, fprintf, NULL, and PRINT_PROGNAME.

◆ parse() [1/2]

int parse ( )

Referenced by main().

◆ parse() [2/2]

int parse ( const char *  s)

Definition at line 479 of file dt2dv.c.

References i, Options::keyword, keyword, NULL, opts, Options::p_var, process(), s, strlen(), strncmp(), and VOID.

◆ post_post() [1/2]

int post_post ( )

Referenced by xfer_args().

◆ post_post() [2/2]

◆ postamble() [1/2]

int postamble ( )

Definition at line 47 of file scanst.c.

Referenced by xfer_args().

◆ postamble() [2/2]

int postamble ( FILE dtl,
FILE dvi 
)

Definition at line 2701 of file dt2dv.c.

References dvi, dvi_written, postamble_address, xfer_bop_address(), and xfer_unsigned().

◆ preamble() [1/2]

U4 preamble ( )

Definition at line 46 of file scanst.c.

Referenced by xfer_args().

◆ preamble() [2/2]

U4 preamble ( FILE dtl,
FILE dvi 
)

Definition at line 2653 of file dt2dv.c.

References debug, dvi, fprintf, k1, PRINT_PROGNAME, xfer_len_string(), and xfer_unsigned().

◆ process() [1/2]

int process ( )

◆ process() [2/2]

int process ( const char *  s)

Definition at line 599 of file dt2dv.c.

References dtl_fp, dvi_fp, exit(), fprintf, nfile, NULL, open_dtl(), open_dvi(), PRINT_PROGNAME, and s.

◆ put_byte() [1/2]

int put_byte ( )

◆ put_byte() [2/2]

int put_byte ( int  byte,
FILE dvi 
)

Definition at line 636 of file dt2dv.c.

References check_byte(), dexit(), dtl_filename, dvi, dvi_written, fprintf, and PRINT_PROGNAME.

◆ put_Lstring() [1/2]

int put_Lstring ( )

Referenced by fontdef(), and xfer_len_string().

◆ put_Lstring() [2/2]

int put_Lstring ( const Lstring lstr,
FILE dvi 
)

Definition at line 2202 of file dt2dv.c.

References dexit(), dvi, dvi_written, fprintf, fwrite(), Lstring::l, cutout::l, PRINT_PROGNAME, Lstring::s, and sizeof().

◆ put_signed() [1/2]

int put_signed ( )

◆ put_signed() [2/2]

int put_signed ( int  n,
S4  snum,
FILE dvi 
)

Definition at line 1892 of file dt2dv.c.

References dexit(), dvi, fprintf, n, PRINT_PROGNAME, put_unsigned(), and snum.

◆ put_table() [1/2]

int put_table ( )

Referenced by xfer_args().

◆ put_table() [2/2]

int put_table ( op_table  table,
int  opcode,
FILE dtl,
FILE dvi 
)

◆ put_unsigned() [1/2]

◆ put_unsigned() [2/2]

int put_unsigned ( int  n,
U4  unum,
FILE dvi 
)

Definition at line 1848 of file dt2dv.c.

References dexit(), dvi, fprintf, i, n, PRINT_PROGNAME, and put_byte().

◆ read_char() [1/2]

◆ read_char() [2/2]

int read_char ( FILE fp,
int ch 
)

Definition at line 1080 of file dt2dv.c.

References c, ch, dinfo(), endif, EOF, fp, fprintf, isknj(), isknj2(), isspace, PRINT_PROGNAME, read_line_char(), status, and WIN32.

◆ read_line_char() [1/2]

int read_line_char ( )

Referenced by read_char().

◆ read_line_char() [2/2]

int read_line_char ( FILE fp,
int ch 
)

◆ read_mes() [1/2]

COUNT read_mes ( )

Referenced by read_token().

◆ read_mes() [2/2]

COUNT read_mes ( FILE fp,
char *  token 
)

Definition at line 1373 of file dt2dv.c.

References ch, EMES_CHAR, ESC_CHAR, escape, fp, and read_char().

◆ read_misc() [1/2]

COUNT read_misc ( )

Referenced by read_token().

◆ read_misc() [2/2]

COUNT read_misc ( FILE fp,
Token  token 
)

Definition at line 1342 of file dt2dv.c.

References c, count, ECOM_CHAR, fp, isspace, MAXTOKLEN, read_char(), and unread_char().

◆ read_string_char() [1/2]

int read_string_char ( )

Referenced by get_Lstring().

◆ read_string_char() [2/2]

int read_string_char ( FILE fp,
int ch 
)

Definition at line 1309 of file dt2dv.c.

References c, ch, CHAR_EOS, CHAR_FAIL, CHAR_OK, EMES_CHAR, ESC_CHAR, fp, read_char(), and status.

◆ read_token() [1/2]

◆ read_token() [2/2]

COUNT read_token ( FILE dtl,
char *  token 
)

◆ read_variety() [1/2]

COUNT read_variety ( )

Referenced by dt2dv().

◆ read_variety() [2/2]

COUNT read_variety ( FILE dtl)

Definition at line 1135 of file dt2dv.c.

References dexit(), dtl_filename, fprintf, PRINT_PROGNAME, read_token(), strcmp(), and VARIETY.

◆ set_seq() [1/2]

int set_seq ( )

Referenced by dt2dv().

◆ set_seq() [2/2]

int set_seq ( FILE dtl,
FILE dvi 
)

◆ skip_space() [1/2]

COUNT skip_space ( )

Referenced by check_bmes(), and read_token().

◆ skip_space() [2/2]

COUNT skip_space ( FILE fp,
int ch 
)

Definition at line 1183 of file dt2dv.c.

References c, ch, count, debug, dtl_line, fp, fprintf, isspace, nchar, Line::num, PRINT_PROGNAME, read_char(), and WF.

◆ special() [1/2]

U4 special ( )

Referenced by xfer_args().

◆ special() [2/2]

U4 special ( FILE dtl,
FILE dvi,
int  n 
)

Definition at line 2480 of file dt2dv.c.

References debug, dexit(), dtl_filename, dvi, fprintf, n, nk, PRINT_PROGNAME, and xfer_len_string().

◆ unread_char()

int unread_char ( )

Definition at line 1432 of file dt2dv.c.

References com_read, dtl_line, dtl_read, Line::read, and status.

Referenced by get_Lstring(), post_post(), and read_misc().

◆ xfer_args() [1/2]

int xfer_args ( )

Referenced by dt2dv().

◆ xfer_args() [2/2]

int xfer_args ( FILE dtl,
FILE dvi,
int  opcode 
)

◆ xfer_bop_address() [1/2]

S4 xfer_bop_address ( )

Referenced by postamble(), and xfer_args().

◆ xfer_bop_address() [2/2]

S4 xfer_bop_address ( FILE dtl,
FILE dvi 
)

◆ xfer_hex() [1/2]

U4 xfer_hex ( )

Referenced by fontdef().

◆ xfer_hex() [2/2]

U4 xfer_hex ( int  n,
FILE dtl,
FILE dvi 
)

Definition at line 1648 of file dt2dv.c.

References dexit(), dtl_filename, dvi, fprintf, n, PRINT_PROGNAME, put_unsigned(), read_token(), sscanf(), and XF4.

◆ xfer_len_string() [1/2]

U4 xfer_len_string ( )

Referenced by preamble(), and special().

◆ xfer_len_string() [2/2]

U4 xfer_len_string ( int  n,
FILE dtl,
FILE dvi 
)

◆ xfer_oct() [1/2]

U4 xfer_oct ( )

Referenced by fontdef().

◆ xfer_oct() [2/2]

U4 xfer_oct ( int  n,
FILE dtl,
FILE dvi 
)

Definition at line 1693 of file dt2dv.c.

References dexit(), dtl_filename, dvi, fprintf, n, OF4, PRINT_PROGNAME, put_unsigned(), read_token(), and sscanf().

◆ xfer_postamble_address() [1/2]

S4 xfer_postamble_address ( )

Referenced by post_post().

◆ xfer_postamble_address() [2/2]

S4 xfer_postamble_address ( FILE dtl,
FILE dvi 
)

◆ xfer_signed() [1/2]

S4 xfer_signed ( )

Referenced by fontdef(), and put_table().

◆ xfer_signed() [2/2]

S4 xfer_signed ( int  n,
FILE dtl,
FILE dvi 
)

Definition at line 1761 of file dt2dv.c.

References dvi, get_signed(), n, put_signed(), and snum.

◆ xfer_unsigned() [1/2]

U4 xfer_unsigned ( )

◆ xfer_unsigned() [2/2]

U4 xfer_unsigned ( int  n,
FILE dtl,
FILE dvi 
)

Definition at line 1738 of file dt2dv.c.

References dvi, get_unsigned(), n, and put_unsigned().

Variable Documentation

◆ cmd_prefixes

CmdPrefix cmd_prefixes[]
Initial value:
=
{
{0, "\\" , 1 , 0, 127},
{128, "s" , 1 , 1, 4},
{132, "sr" , 0 , 0, 0},
{133, "p" , 1 , 1, 4},
{137, "pr" , 0 , 0, 0},
{138, "nop" , 0 , 0, 0},
{139, "bop" , 0 , 0, 0},
{140, "eop" , 0 , 0, 0},
{141, "[" , 0 , 0, 0},
{142, "]" , 0 , 0, 0},
{143, "r" , 1 , 1, 4},
{147, "w" , 1 , 0, 4},
{152, "x" , 1 , 0, 4},
{157, "d" , 1 , 1, 4},
{161, "y" , 1 , 0, 4},
{166, "z" , 1 , 0, 4},
{171, "fn" , 1 , 0, 63},
{235, "f" , 1 , 1, 4},
{239, "special" , 1 , 1, 4},
{243, "fd" , 1 , 1, 4},
{247, "pre" , 0 , 0, 0},
{248, "post" , 0 , 0, 0},
{249, "post_post" , 0 , 0, 0},
{250, "opcode" , 1 , 250, 255}
}

Definition at line 97 of file dt2dv.c.

Referenced by dt2dv().

◆ cmd_table

CmdTable cmd_table

Definition at line 133 of file dt2dv.c.

Referenced by dt2dv(), and find_command().

◆ com_read

COUNT com_read = 0

Definition at line 631 of file dt2dv.c.

Referenced by dinfo(), dt2dv(), read_line_char(), and unread_char().

◆ dtl_filename

◆ dtl_fp

FILE* dtl_fp

Definition at line 329 of file dt2dv.c.

Referenced by dtl_stdin(), main(), and process().

◆ dtl_line

Line dtl_line = {0, 0, 0, 8192 , linebuf}

Definition at line 65 of file dt2dv.c.

Referenced by dinfo(), dt2dv(), mem_viol(), read_line_char(), skip_space(), and unread_char().

◆ dtl_read

COUNT dtl_read = 0

Definition at line 626 of file dt2dv.c.

Referenced by dinfo(), dt2dv(), read_line_char(), and unread_char().

◆ dvi_filename

const char* dvi_filename

Definition at line 333 of file dt2dv.c.

Referenced by dt2dv(), dvi_init(), dvi_stdout(), main(), and open_dvi().

◆ dvi_fp

FILE* dvi_fp

Definition at line 330 of file dt2dv.c.

Referenced by dvi_stdout(), main(), and process().

◆ dvi_written

COUNT dvi_written = 0

Definition at line 627 of file dt2dv.c.

Referenced by dinfo(), dt2dv(), post_post(), postamble(), put_byte(), put_Lstring(), and xfer_args().

◆ fnt

◆ fnt_n

op_info fnt_n[]
Initial value:
=
{
{235, "f1" , 1, "1"},
{236, "f2" , 1, "2"},
{237, "f3" , 1, "3"},
{238, "f4" , 1, "-4"}
}

Definition at line 208 of file dt2dv.c.

◆ last_bop_address

word_t last_bop_address = -1

Definition at line 628 of file dt2dv.c.

Referenced by xfer_args(), and xfer_bop_address().

◆ linebuf

char linebuf[8192+1]

Definition at line 63 of file dt2dv.c.

◆ ncom

COUNT ncom = 0

Definition at line 630 of file dt2dv.c.

Referenced by dinfo(), and dt2dv().

◆ nfile

int nfile

Definition at line 320 of file dt2dv.c.

Referenced by dtl_stdin(), dvi_stdout(), main(), and process().

◆ op_128_170

op_table op_128_170 = {"op_128_170", 128, 170, op_info_128_170}

Definition at line 204 of file dt2dv.c.

Referenced by xfer_args().

◆ op_info_128_170

op_info op_info_128_170[]

Definition at line 155 of file dt2dv.c.

◆ opts

Options opts[]
Initial value:
=
{
{"-debug", &debug, "detailed debugging", no_op},
{"-group", &group, "each DTL command is in parentheses", no_op},
{"-si", &rd_stdin, "read all DTL commands from standard input", dtl_stdin},
{"-so", &wr_stdout, "write all DVI commands to standard output", dvi_stdout},
}
int rd_stdin
Definition: dt2dv.c:47
int dtl_stdin()
Definition: dt2dv.c:460
int dvi_stdout()
Definition: dt2dv.c:467
int no_op()
Definition: dt2dv.c:455
int wr_stdout
Definition: dt2dv.c:48
int group
Definition: dtl.h:84
#define NULL
Definition: ftobjs.h:61
#define debug
Definition: pdfparse.c:41

Definition at line 309 of file dt2dv.c.

Referenced by _bdf_set_default_spacing(), bdf_load_font(), doConversion(), gimp_parasite_new(), give_help(), luaB_collectgarbage(), main(), options_arg(), options_init(), options_opt(), parse(), parse_args(), preserialize(), and TECkit_CompileOpt().

◆ postamble_address

word_t postamble_address = -1

Definition at line 629 of file dt2dv.c.

Referenced by postamble(), and xfer_postamble_address().

◆ progname

const char* progname

Definition at line 319 of file dt2dv.c.

Referenced by main().

◆ rd_stdin

int rd_stdin = 0

Definition at line 47 of file dt2dv.c.

◆ wr_stdout

int wr_stdout = 0

Definition at line 48 of file dt2dv.c.