Back to index

tetex-bin  3.0
Defines | Functions | Variables
texmfmp.h File Reference
#include "cpascal.h"
#include <kpathsea/c-pathch.h>
#include <kpathsea/tex-make.h>

Go to the source code of this file.

Defines

#define kpsedvipsconfigformat   kpse_dvips_config_format
#define kpsefontmapformat   kpse_fontmap_format
#define kpsemfpoolformat   kpse_mfpool_format
#define kpsempformat   kpse_mp_format
#define kpsemppoolformat   kpse_mppool_format
#define kpsetexpoolformat   kpse_texpool_format
#define kpsetexformat   kpse_tex_format
#define translatefilename   translate_filename
#define write_out(a, b)
#define flush_out()   fflush (OUT_FILE)
#define put2bytes(f, h)
#define put4bytes(f, w)
#define inputln(stream, flag)   input_line (stream)
#define dateandtime(i, j, k, l)   get_date_and_time (&(i), &(j), &(k), &(l))
#define bopenin(f)   open_input (&(f), kpse_tfm_format, FOPEN_RBIN_MODE)
#define ocpopenin(f)   open_input (&(f), kpse_ocp_format, FOPEN_RBIN_MODE)
#define ofmopenin(f)   open_input (&(f), kpse_ofm_format, FOPEN_RBIN_MODE)
#define bopenout(f)   open_output (&(f), FOPEN_WBIN_MODE)
#define bclose   aclose
#define wopenin(f)   open_input (&(f), DUMP_FORMAT, FOPEN_RBIN_MODE)
#define wopenout   bopenout
#define wclose   aclose
#define dumpcore   uexit (1)
#define dumpthings(base, len)   do_dump ((char *) &(base), sizeof (base), (int) (len), DUMP_FILE)
#define undumpthings(base, len)   do_undump ((char *) &(base), sizeof (base), (int) (len), DUMP_FILE)
#define undumpcheckedthings(low, high, base, len)
#define undumpuppercheckthings(high, base, len)
#define generic_dump(x)   dumpthings (x, 1)
#define generic_undump(x)   undumpthings (x, 1)
#define dumpwd   generic_dump
#define dumphh   generic_dump
#define dumpqqqq   generic_dump
#define undumpwd   generic_undump
#define undumphh   generic_undump
#define undumpqqqq   generic_undump
#define dumpint(x)
#define undumpint   generic_undump

Functions

boolean openinnameok P1H (const_string)
void readtcxfile P1H (void)
boolean input_line P1H (FILE *)
void get_date_and_time P4H (integer *, integer *, integer *, integer *)
void setupboundvariable P3H (integer *, const_string, integer)
void do_dump P4H (char *, int, int, FILE *)

Variables

int tfmtemp
int texinputtype
string translate_filename

Define Documentation

#define bclose   aclose

Definition at line 176 of file texmfmp.h.

#define bopenin (   f)    open_input (&(f), kpse_tfm_format, FOPEN_RBIN_MODE)

Definition at line 172 of file texmfmp.h.

#define bopenout (   f)    open_output (&(f), FOPEN_WBIN_MODE)

Definition at line 175 of file texmfmp.h.

#define dateandtime (   i,
  j,
  k,
 
)    get_date_and_time (&(i), &(j), &(k), &(l))

Definition at line 151 of file texmfmp.h.

#define dumpcore   uexit (1)

Definition at line 185 of file texmfmp.h.

#define dumphh   generic_dump

Definition at line 251 of file texmfmp.h.

#define dumpint (   x)
Value:
do                                                             \
    {                                                          \
      integer x_val = (x);                                     \
      generic_dump (x_val);                                    \
    }                                                          \
  while (0)

Definition at line 259 of file texmfmp.h.

#define dumpqqqq   generic_dump

Definition at line 252 of file texmfmp.h.

#define dumpthings (   base,
  len 
)    do_dump ((char *) &(base), sizeof (base), (int) (len), DUMP_FILE)

Definition at line 203 of file texmfmp.h.

#define dumpwd   generic_dump

Definition at line 250 of file texmfmp.h.

#define flush_out ( )    fflush (OUT_FILE)

Definition at line 134 of file texmfmp.h.

#define generic_dump (   x)    dumpthings (x, 1)

Definition at line 247 of file texmfmp.h.

#define generic_undump (   x)    undumpthings (x, 1)

Definition at line 248 of file texmfmp.h.

#define inputln (   stream,
  flag 
)    input_line (stream)

Definition at line 147 of file texmfmp.h.

Definition at line 80 of file texmfmp.h.

Definition at line 81 of file texmfmp.h.

Definition at line 82 of file texmfmp.h.

Definition at line 83 of file texmfmp.h.

Definition at line 84 of file texmfmp.h.

Definition at line 86 of file texmfmp.h.

Definition at line 85 of file texmfmp.h.

#define ocpopenin (   f)    open_input (&(f), kpse_ocp_format, FOPEN_RBIN_MODE)

Definition at line 173 of file texmfmp.h.

#define ofmopenin (   f)    open_input (&(f), kpse_ofm_format, FOPEN_RBIN_MODE)

Definition at line 174 of file texmfmp.h.

#define put2bytes (   f,
  h 
)
Value:
do { \
    integer v = (integer) (h); putbyte (v >> 8, f);  putbyte (v & 0xff, f); \
  } while (0)

Definition at line 137 of file texmfmp.h.

#define put4bytes (   f,
  w 
)
Value:
do { \
    integer v = (integer) (w); \
    putbyte (v >> 24, f); putbyte (v >> 16, f); \
    putbyte (v >> 8, f);  putbyte (v & 0xff, f); \
  } while (0)

Definition at line 140 of file texmfmp.h.

Definition at line 99 of file texmfmp.h.

#define undumpcheckedthings (   low,
  high,
  base,
  len 
)
Value:
do {                                                                  \
    unsigned i;                                                         \
    undumpthings (base, len);                                           \
    for (i = 0; i < (len); i++) {                                       \
      if ((&(base))[i] < (low) || (&(base))[i] > (high)) {              \
        FATAL5 ("Item %u (=%ld) of .fmt array at %lx <%ld or >%ld",     \
                i, (integer) (&(base))[i], (unsigned long) &(base),     \
                (integer) low, (integer) high);                         \
      }                                                                 \
    }                                                          \
  } while (0)

Definition at line 213 of file texmfmp.h.

#define undumphh   generic_undump

Definition at line 254 of file texmfmp.h.

#define undumpint   generic_undump

Definition at line 280 of file texmfmp.h.

#define undumpqqqq   generic_undump

Definition at line 255 of file texmfmp.h.

#define undumpthings (   base,
  len 
)    do_undump ((char *) &(base), sizeof (base), (int) (len), DUMP_FILE)

Definition at line 205 of file texmfmp.h.

#define undumpuppercheckthings (   high,
  base,
  len 
)
Value:
do {                                                                  \
    unsigned i;                                                         \
    undumpthings (base, len);                                           \
    for (i = 0; i < (len); i++) {                                       \
      if ((&(base))[i] > (high)) {                             \
        FATAL4 ("Item %u (=%ld) of .fmt array at %lx >%ld",           \
                i, (integer) (&(base))[i], (unsigned long) &(base),     \
                (integer) high);                                      \
      }                                                                 \
    }                                                          \
  } while (0)

Definition at line 229 of file texmfmp.h.

#define undumpwd   generic_undump

Definition at line 253 of file texmfmp.h.

#define wclose   aclose

Definition at line 179 of file texmfmp.h.

#define wopenin (   f)    open_input (&(f), DUMP_FORMAT, FOPEN_RBIN_MODE)

Definition at line 177 of file texmfmp.h.

#define wopenout   bopenout

Definition at line 178 of file texmfmp.h.

#define write_out (   a,
  b 
)
Value:
if (fwrite ((char *) &OUT_BUF[a], sizeof (OUT_BUF[a]),         \
                 (int) ((b) - (a) + 1), OUT_FILE)                     \
      != (int) ((b) - (a) + 1))                                       \
    FATAL_PERROR ("fwrite");

Definition at line 128 of file texmfmp.h.


Function Documentation

boolean openinnameok P1H ( const_string  )
void readtcxfile P1H ( void  ) [read]

Definition at line 260 of file afm2tfm.c.

                  {
   register char *p ;
   register int c ;

   param = buffer ;
   for (p=buffer; (c=getc(afmin)) != EOF;) {
      if (p - buffer >= INBUFSIZE)
         error("! input line too long; perhaps input file is malformed?") ;
      *p++ = c ;
      if (c == '\r') {
         c = getc(afmin) ;
         if (c != EOF) {
            if (c == '\n') {
               *p++ = c ;
            } else {
               ungetc(c, afmin) ;
            }
         }
         break ;
      } else if (c == '\n') {
         break ;
      }
   }
   *p = 0 ;
   (void)strcpy(obuffer, buffer) ;
   if (p == buffer && c == EOF)
      return(0) ;
   else
      return(1) ;
}
void setupboundvariable P3H ( integer ,
const_string  ,
integer   
)
void get_date_and_time P4H ( integer ,
integer ,
integer ,
integer  
)
void do_undump P4H ( char *  ,
int  ,
int  ,
FILE  
)

Variable Documentation

Definition at line 32 of file openclose.c.

Definition at line 30 of file openclose.c.

Definition at line 125 of file texmfmp.c.