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)  

dd.h File Reference
#include <stdio.h>
Include dependency graph for dd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PREAMBLE_REC
 
struct  CHAR_INFO_REC
 
struct  BUF_INFO_REC
 
struct  PAGE_INDEX
 
struct  DVIFILE_INFO_REC
 
struct  DIMENSION_REC
 
struct  OUTPUT_INFO_REC
 
struct  KFONT
 
struct  JFM_DATA
 
union  EXT
 
struct  FONT_INFO_REC
 

Macros

#define GetCh()   getch()
 
#define KbHit()   kbhit()
 
#define PATH_SEP   '\\'
 
#define DELIMITER   ';'
 
#define max(a, b)   ( (a) > (b) ? (a) : (b) )
 
#define min(a, b)   ( (a) < (b) ? (a) : (b) )
 
#define uchar   unsigned char
 
#define uint   unsigned int
 
#define ulong   unsigned long
 
#define NOTHING   0
 
#define FAILURE   (-1)
 
#define NOMORE   (-2)
 
#define SEEK_SET   0
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define Free(x)   free(x)
 
#define far
 
#define huge
 
#define BUFFER   uchar far
 
#define HUGE_BUF   uchar huge
 
#define SIZE_PARA   double
 
#define F_SIZE_PARA   long
 
#define PIXEL   int
 
#define SCALED_PT   long
 
#define HEADER_DEPTH   0xe0000L
 
#define FOOTER_DEPTH   0xe0000L
 
#define PREAMBLE   struct PREAMBLE_REC far
 
#define CHAR_INFO   struct CHAR_INFO_REC far
 
#define f_HUGE   0x8000
 
#define f_EMS   0x4000
 
#define BUF_INFO   struct BUF_INFO_REC
 
#define DVIFILE_INFO   struct DVIFILE_INFO_REC
 
#define DIMENSION   struct DIMENSION_REC
 
#define NO_PRN_OUT   0x1000
 
#define OUTPUT_INFO   struct OUTPUT_INFO_REC
 
#define KFONT_SIZE   sizeof(KFONT)
 
#define FONT_INFO   struct FONT_INFO_REC far
 
#define CHAR_ROOT   8 /* should be a power of 2 */
 
#define MAX_NAME_LEN   128
 
#define pk_buf_pointer   (&buffers[1])
 
#define raster_buf_pointer   (&buffers[0])
 
#define bitmap_buf_pointer   (&buffers[2])
 
#define COMMON_SIZE   2560
 
#define tmp_buf   common_work
 
#define F_GOTH   1
 
#define K_DBL   2
 
#define F_LBP   4
 
#define F_DWN   8
 
#define F_FILL   0x10
 
#define F_SHADOW   0x20
 
#define F_OUTLINE   0x40
 
#define F_GGOTH   0x80
 
#define K_SCALE   0x100
 
#define F_TATE   0x200
 
#define K_SCALE2   0x400
 
#define F_TOPT   0x800
 
#define F_DTATE   0x1000
 
#define F_DYOKO   0x2000
 
#define F_ATTR   (F_GOTH|F_FILL|F_SHADOW|F_OUTLINE|F_GGOTH)
 
#define SET_CHAR_0   0
 
#define SET1   128
 
#define SET_RULE   132
 
#define PUT1   133
 
#define PUT_RULE   137
 
#define NOP   138
 
#define BOP   139
 
#define EOP   140
 
#define PUSH   141
 
#define POP   142
 
#define RIGHT1   143
 
#define W0   147
 
#define W1   148
 
#define X0   152
 
#define X1   153
 
#define DOWN1   157
 
#define Y0   161
 
#define Y1   162
 
#define Z0   166
 
#define Z1   167
 
#define FNT_NUM_0   171
 
#define FNT1   235
 
#define XXX1   239
 
#define FNT_DEF_1   243
 
#define PRE   247
 
#define POST   248
 
#define POST_POST   249
 
#define EOFNC   255 /* end of func */
 
#define ROUND(X)   (int)((X)+0.5) /* 浮動小数点数→整数時の四捨五入 */
 
#define MM_PER_IN   25.4 /* 1in = 25.4mm */
 
#define PT_PER_IN   72.27 /* 1in = 72.27pt */
 
#define BP_PER_IN   72.0 /* 1in = 72.0pt */
 
#define IN_PER_MM   (1.0/MM_PER_IN)
 
#define PT_PER_MM   (PT_PER_IN/MM_PER_IN)
 
#define PT_PER_BP   (PT_PER_IN/BP_PER_IN)
 
#define MM_PER_PT   (MM_PER_IN/PT_PER_IN)
 
#define IN_PER_PT   (1.0/PT_PER_IN)
 
#define MM_TO_SP(X)   PT_TO_SP(MM_TO_PT(X))
 
#define IN_TO_SP(X)   PT_TO_SP(IN_TO_PT(X))
 
#define BP_TO_SP(X)   PT_TO_SP(BP_TO_PT(X))
 
#define PT_TO_SP(X)   ((SCALED_PT)ROUND((double)(X)*65536.0))
 
#define IN_TO_MM(X)   ((X)*MM_PER_IN)
 
#define PT_TO_MM(X)   ((X)*MM_PER_PT)
 
#define SP_TO_MM(X)   PT_TO_MM(SP_TO_PT(X))
 
#define MM_TO_IN(X)   ((X)*IN_PER_MM)
 
#define PT_TO_IN(X)   ((X)*IN_PER_PT)
 
#define SP_TO_IN(X)   PT_TO_IN(SP_TO_PT(X))
 
#define MM_TO_PT(X)   ((X)*PT_PER_MM)
 
#define IN_TO_PT(X)   ((X)*PT_PER_IN)
 
#define BP_TO_PT(X)   ((X)*PT_PER_BP)
 
#define SP_TO_PT(X)   ((double)(X)/65536.0)
 
#define M_PC98   0
 
#define M_DOSV   1
 
#define M_J31   2
 
#define M_DBCS   1
 
#define issjis1(x)   ((x)>=0x81&&(x)<=0xfc&&((x)<=0x9f||(x)>=0xe0))
 

Typedefs

typedef void(* void_func_ptr) ()
 
typedef int(* int_func_ptr) ()
 
typedef int(* COMP) (const void *, const void *)
 

Enumerations

enum  BOOL { FALSE = 0 , TRUE = 1 }
 
enum  FONT_TYPE {
  UNKNOWN , ONDEMAND , ONDEMAND2 , UNRESOLVE ,
  PK_FONT , PXL1001 , PXL1002 , PXL1003 ,
  PKD_FONT , JXL , SUBTFM , SUBJFM ,
  ROM_FONT , ZS_FONT , JLBP , JIS_FONT ,
  JIS_PK , JIS_PKH , GAIJI
}
 
enum  PRINT_DIR { HORIZONTAL , VERTICAL }
 
enum  NEXT_ACTION {
  PreviousPart , NextPart , PreviousPage , NextPage ,
  NextPageDirection , EscapeQuit
}
 

Functions

int strlcmp (const char *, const char *)
 
long filelength (int)
 
int strcmpi (const char *, const char *)
 
char * stpcpy (char *, const char *)
 
void Free0 (void *)
 
unsigned char * get_near_work (unsigned int)
 
unsigned char * get_work (unsigned int)
 
FILEfopenf (char *, char *)
 

Variables

struct BUF_INFO_REC buffers []
 
struct FONT_INFO_RECfirst_font_info
 
char common_work [2560]
 

Macro Definition Documentation

◆ bitmap_buf_pointer

#define bitmap_buf_pointer   (&buffers[2])

Definition at line 640 of file dd.h.

◆ BOP

#define BOP   139

Definition at line 692 of file dd.h.

◆ BP_PER_IN

#define BP_PER_IN   72.0 /* 1in = 72.0pt */

Definition at line 723 of file dd.h.

◆ BP_TO_PT

#define BP_TO_PT (   X)    ((X)*PT_PER_BP)

Definition at line 748 of file dd.h.

◆ BP_TO_SP

#define BP_TO_SP (   X)    PT_TO_SP(BP_TO_PT(X))

Definition at line 735 of file dd.h.

◆ BUF_INFO

#define BUF_INFO   struct BUF_INFO_REC

Definition at line 272 of file dd.h.

◆ BUFFER

#define BUFFER   uchar far

Definition at line 147 of file dd.h.

◆ CHAR_INFO

#define CHAR_INFO   struct CHAR_INFO_REC far

Definition at line 253 of file dd.h.

◆ CHAR_ROOT

#define CHAR_ROOT   8 /* should be a power of 2 */

Definition at line 455 of file dd.h.

◆ COMMON_SIZE

#define COMMON_SIZE   2560

Definition at line 655 of file dd.h.

◆ DELIMITER

#define DELIMITER   ';'

Definition at line 74 of file dd.h.

◆ DIMENSION

#define DIMENSION   struct DIMENSION_REC

Definition at line 317 of file dd.h.

◆ DOWN1

#define DOWN1   157

Definition at line 701 of file dd.h.

◆ DVIFILE_INFO

#define DVIFILE_INFO   struct DVIFILE_INFO_REC

Definition at line 302 of file dd.h.

◆ EOFNC

#define EOFNC   255 /* end of func */

Definition at line 713 of file dd.h.

◆ EOP

#define EOP   140

Definition at line 693 of file dd.h.

◆ F_ATTR

Definition at line 682 of file dd.h.

◆ F_DTATE

#define F_DTATE   0x1000

Definition at line 679 of file dd.h.

◆ F_DWN

#define F_DWN   8

Definition at line 670 of file dd.h.

◆ F_DYOKO

#define F_DYOKO   0x2000

Definition at line 680 of file dd.h.

◆ f_EMS

#define f_EMS   0x4000

Definition at line 270 of file dd.h.

◆ F_FILL

#define F_FILL   0x10

Definition at line 671 of file dd.h.

◆ F_GGOTH

#define F_GGOTH   0x80

Definition at line 674 of file dd.h.

◆ F_GOTH

#define F_GOTH   1

Definition at line 667 of file dd.h.

◆ f_HUGE

#define f_HUGE   0x8000

Definition at line 269 of file dd.h.

◆ F_LBP

#define F_LBP   4

Definition at line 669 of file dd.h.

◆ F_OUTLINE

#define F_OUTLINE   0x40

Definition at line 673 of file dd.h.

◆ F_SHADOW

#define F_SHADOW   0x20

Definition at line 672 of file dd.h.

◆ F_SIZE_PARA

#define F_SIZE_PARA   long

Definition at line 166 of file dd.h.

◆ F_TATE

#define F_TATE   0x200

Definition at line 676 of file dd.h.

◆ F_TOPT

#define F_TOPT   0x800

Definition at line 678 of file dd.h.

◆ FAILURE

#define FAILURE   (-1)

Definition at line 106 of file dd.h.

◆ far

#define far

Definition at line 143 of file dd.h.

◆ FNT1

#define FNT1   235

Definition at line 707 of file dd.h.

◆ FNT_DEF_1

#define FNT_DEF_1   243

Definition at line 709 of file dd.h.

◆ FNT_NUM_0

#define FNT_NUM_0   171

Definition at line 706 of file dd.h.

◆ FONT_INFO

#define FONT_INFO   struct FONT_INFO_REC far

Definition at line 440 of file dd.h.

◆ FOOTER_DEPTH

#define FOOTER_DEPTH   0xe0000L

Definition at line 175 of file dd.h.

◆ Free

#define Free (   x)    free(x)

Definition at line 135 of file dd.h.

◆ GetCh

#define GetCh ( )    getch()

Definition at line 59 of file dd.h.

◆ HEADER_DEPTH

#define HEADER_DEPTH   0xe0000L

Definition at line 174 of file dd.h.

◆ huge

#define huge

Definition at line 144 of file dd.h.

◆ HUGE_BUF

#define HUGE_BUF   uchar huge

Definition at line 148 of file dd.h.

◆ IN_PER_MM

#define IN_PER_MM   (1.0/MM_PER_IN)

Definition at line 725 of file dd.h.

◆ IN_PER_PT

#define IN_PER_PT   (1.0/PT_PER_IN)

Definition at line 731 of file dd.h.

◆ IN_TO_MM

#define IN_TO_MM (   X)    ((X)*MM_PER_IN)

Definition at line 738 of file dd.h.

◆ IN_TO_PT

#define IN_TO_PT (   X)    ((X)*PT_PER_IN)

Definition at line 747 of file dd.h.

◆ IN_TO_SP

#define IN_TO_SP (   X)    PT_TO_SP(IN_TO_PT(X))

Definition at line 734 of file dd.h.

◆ issjis1

#define issjis1 (   x)    ((x)>=0x81&&(x)<=0xfc&&((x)<=0x9f||(x)>=0xe0))

Definition at line 760 of file dd.h.

◆ K_DBL

#define K_DBL   2

Definition at line 668 of file dd.h.

◆ K_SCALE

#define K_SCALE   0x100

Definition at line 675 of file dd.h.

◆ K_SCALE2

#define K_SCALE2   0x400

Definition at line 677 of file dd.h.

◆ KbHit

#define KbHit ( )    kbhit()

Definition at line 60 of file dd.h.

◆ KFONT_SIZE

#define KFONT_SIZE   sizeof(KFONT)

Definition at line 438 of file dd.h.

◆ M_DBCS

#define M_DBCS   1

Definition at line 758 of file dd.h.

◆ M_DOSV

#define M_DOSV   1

Definition at line 755 of file dd.h.

◆ M_J31

#define M_J31   2

Definition at line 756 of file dd.h.

◆ M_PC98

#define M_PC98   0

Definition at line 754 of file dd.h.

◆ max

#define max (   a,
  b 
)    ( (a) > (b) ? (a) : (b) )

Definition at line 78 of file dd.h.

◆ MAX_NAME_LEN

#define MAX_NAME_LEN   128

Definition at line 456 of file dd.h.

◆ min

#define min (   a,
  b 
)    ( (a) < (b) ? (a) : (b) )

Definition at line 79 of file dd.h.

◆ MM_PER_IN

#define MM_PER_IN   25.4 /* 1in = 25.4mm */

Definition at line 721 of file dd.h.

◆ MM_PER_PT

#define MM_PER_PT   (MM_PER_IN/PT_PER_IN)

Definition at line 730 of file dd.h.

◆ MM_TO_IN

#define MM_TO_IN (   X)    ((X)*IN_PER_MM)

Definition at line 742 of file dd.h.

◆ MM_TO_PT

#define MM_TO_PT (   X)    ((X)*PT_PER_MM)

Definition at line 746 of file dd.h.

◆ MM_TO_SP

#define MM_TO_SP (   X)    PT_TO_SP(MM_TO_PT(X))

Definition at line 733 of file dd.h.

◆ NO_PRN_OUT

#define NO_PRN_OUT   0x1000

Definition at line 381 of file dd.h.

◆ NOMORE

#define NOMORE   (-2)

Definition at line 107 of file dd.h.

◆ NOP

#define NOP   138

Definition at line 691 of file dd.h.

◆ NOTHING

#define NOTHING   0

Definition at line 105 of file dd.h.

◆ OUTPUT_INFO

#define OUTPUT_INFO   struct OUTPUT_INFO_REC

Definition at line 383 of file dd.h.

◆ PATH_SEP

#define PATH_SEP   '\\'

Definition at line 73 of file dd.h.

◆ PIXEL

#define PIXEL   int

Definition at line 169 of file dd.h.

◆ pk_buf_pointer

#define pk_buf_pointer   (&buffers[1])

Definition at line 630 of file dd.h.

◆ POP

#define POP   142

Definition at line 695 of file dd.h.

◆ POST

#define POST   248

Definition at line 711 of file dd.h.

◆ POST_POST

#define POST_POST   249

Definition at line 712 of file dd.h.

◆ PRE

#define PRE   247

Definition at line 710 of file dd.h.

◆ PREAMBLE

#define PREAMBLE   struct PREAMBLE_REC far

Definition at line 231 of file dd.h.

◆ PT_PER_BP

#define PT_PER_BP   (PT_PER_IN/BP_PER_IN)

Definition at line 728 of file dd.h.

◆ PT_PER_IN

#define PT_PER_IN   72.27 /* 1in = 72.27pt */

Definition at line 722 of file dd.h.

◆ PT_PER_MM

#define PT_PER_MM   (PT_PER_IN/MM_PER_IN)

Definition at line 726 of file dd.h.

◆ PT_TO_IN

#define PT_TO_IN (   X)    ((X)*IN_PER_PT)

Definition at line 743 of file dd.h.

◆ PT_TO_MM

#define PT_TO_MM (   X)    ((X)*MM_PER_PT)

Definition at line 739 of file dd.h.

◆ PT_TO_SP

#define PT_TO_SP (   X)    ((SCALED_PT)ROUND((double)(X)*65536.0))

Definition at line 736 of file dd.h.

◆ PUSH

#define PUSH   141

Definition at line 694 of file dd.h.

◆ PUT1

#define PUT1   133

Definition at line 689 of file dd.h.

◆ PUT_RULE

#define PUT_RULE   137

Definition at line 690 of file dd.h.

◆ raster_buf_pointer

#define raster_buf_pointer   (&buffers[0])

Definition at line 635 of file dd.h.

◆ RIGHT1

#define RIGHT1   143

Definition at line 696 of file dd.h.

◆ ROUND

#define ROUND (   X)    (int)((X)+0.5) /* 浮動小数点数→整数時の四捨五入 */

Definition at line 719 of file dd.h.

◆ SCALED_PT

#define SCALED_PT   long

Definition at line 170 of file dd.h.

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 111 of file dd.h.

◆ SEEK_END

#define SEEK_END   2

Definition at line 112 of file dd.h.

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 110 of file dd.h.

◆ SET1

#define SET1   128

Definition at line 687 of file dd.h.

◆ SET_CHAR_0

#define SET_CHAR_0   0

Definition at line 686 of file dd.h.

◆ SET_RULE

#define SET_RULE   132

Definition at line 688 of file dd.h.

◆ SIZE_PARA

#define SIZE_PARA   double

Definition at line 162 of file dd.h.

◆ SP_TO_IN

#define SP_TO_IN (   X)    PT_TO_IN(SP_TO_PT(X))

Definition at line 744 of file dd.h.

◆ SP_TO_MM

#define SP_TO_MM (   X)    PT_TO_MM(SP_TO_PT(X))

Definition at line 740 of file dd.h.

◆ SP_TO_PT

#define SP_TO_PT (   X)    ((double)(X)/65536.0)

Definition at line 749 of file dd.h.

◆ tmp_buf

#define tmp_buf   common_work

Definition at line 658 of file dd.h.

◆ uchar

#define uchar   unsigned char

Definition at line 84 of file dd.h.

◆ uint

#define uint   unsigned int

Definition at line 85 of file dd.h.

◆ ulong

#define ulong   unsigned long

Definition at line 86 of file dd.h.

◆ W0

#define W0   147

Definition at line 697 of file dd.h.

◆ W1

#define W1   148

Definition at line 698 of file dd.h.

◆ X0

#define X0   152

Definition at line 699 of file dd.h.

◆ X1

#define X1   153

Definition at line 700 of file dd.h.

◆ XXX1

#define XXX1   239

Definition at line 708 of file dd.h.

◆ Y0

#define Y0   161

Definition at line 702 of file dd.h.

◆ Y1

#define Y1   162

Definition at line 703 of file dd.h.

◆ Z0

#define Z0   166

Definition at line 704 of file dd.h.

◆ Z1

#define Z1   167

Definition at line 705 of file dd.h.

Typedef Documentation

◆ COMP

typedef int(* COMP) (const void *, const void *)

Definition at line 89 of file dd.h.

◆ int_func_ptr

typedef int(* int_func_ptr) ()

Definition at line 88 of file dd.h.

◆ void_func_ptr

typedef void(* void_func_ptr) ()

Definition at line 87 of file dd.h.

Enumeration Type Documentation

◆ BOOL

enum BOOL
Enumerator
FALSE 
TRUE 

Definition at line 100 of file dd.h.

◆ FONT_TYPE

enum FONT_TYPE
Enumerator
UNKNOWN 
ONDEMAND 
ONDEMAND2 
UNRESOLVE 
PK_FONT 
PXL1001 
PXL1002 
PXL1003 
PKD_FONT 
JXL 
SUBTFM 
SUBJFM 
ROM_FONT 
ZS_FONT 
JLBP 
JIS_FONT 
JIS_PK 
JIS_PKH 
GAIJI 

Definition at line 179 of file dd.h.

◆ NEXT_ACTION

Enumerator
PreviousPart 
NextPart 
PreviousPage 
NextPage 
NextPageDirection 
EscapeQuit 

Definition at line 220 of file dd.h.

◆ PRINT_DIR

enum PRINT_DIR
Enumerator
HORIZONTAL 
VERTICAL 

Definition at line 213 of file dd.h.

Function Documentation

◆ filelength()

long filelength ( int  )

Referenced by CheckFSize().

◆ fopenf()

FILE* fopenf ( char *  ,
char *   
)

◆ Free0()

void Free0 ( void )

◆ get_near_work()

unsigned char* get_near_work ( unsigned int  )

◆ get_work()

unsigned char* get_work ( unsigned int  )

◆ stpcpy()

char* stpcpy ( char *  dest,
const char *  src 
)

Definition at line 36 of file stpcpy.c.

References d, dest, s, and link_confs::src.

◆ strcmpi()

int strcmpi ( const char *  ,
const char *   
)

◆ strlcmp()

int strlcmp ( const char *  ,
const char *   
)

Variable Documentation

◆ buffers

struct BUF_INFO_REC buffers[]
extern

◆ common_work

char common_work[2560]
extern

◆ first_font_info

struct FONT_INFO_REC* first_font_info
extern