Back to index

tetex-bin  3.0
Defines | Typedefs | Functions | Variables
cpascal.h File Reference
#include "config.h"
#include <kpathsea/getopt.h>
#include <kpathsea/progname.h>
#include <kpathsea/proginit.h>
#include <kpathsea/tex-file.h>
#include "help.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define Xchr(x)   xchr[x]
#define abs(x)   ((integer)(x) >= 0 ? (integer)(x) : (integer)-(x))
#define chr(x)   (x)
#define ord(x)   (x)
#define odd(x)   ((x) & 1)
#define round(x)   zround ((double) (x))
#define trunc(x)   ((integer) (x))
#define floor(x)   ((integer)floor((double)(x)))
#define input   stdin
#define output   stdout
#define maxint   INTEGER_MAX
#define nil   NULL
#define floorunscaled(i)   ((i)>>16)
#define floorscaled(i)   ((i)&(-65536))
#define roundunscaled(i)   (((i>>15)+1)>>1)
#define roundfraction(i)   (((i>>11)+1)>>1)
#define half(i)   ( ((i)<0) ? (((i)+1)>>1) : ((i)>>1) )
#define halfp(i)   ((i) >> 1)
#define reset(f, n)   f = xfopen (n, FOPEN_R_MODE)
#define rewrite(f, n)   f = xfopen (n, FOPEN_W_MODE)
#define resetbin(f, n)   f = xfopen (n, FOPEN_RBIN_MODE)
#define rewritebin(f, n)   f = xfopen (n, FOPEN_WBIN_MODE)
#define read(f, b)   ((b) = getc (f))
#define decr(x)   --(x)
#define incr(x)   ++(x)
#define addressof(x)   (&(x))
#define makebinaryfile(arg)   (arg)
#define printreal(r, n, m)   fprintreal (stdout, r, n, m)
#define putbyte(x, f)
#define intcast(x)   ((integer) (x))
#define stringcast(x)   ((string) (x))
#define vgetc(f)   (void) getc (f)
#define Fputs(f, s)   (void) fputs (s, f)
#define aopenin(f, p)   open_input (&(f), p, FOPEN_RBIN_MODE)
#define aopenout(f)   open_output (&(f), FOPEN_W_MODE)
#define casttobytepointer(e)   ((pointertobyte) e)
#define writechunk(f, buf, start, end)   (void) fwrite (&buf[start], sizeof (buf[start]), end - start + 1, f)
#define input2ints(a, b)   zinput2ints (&a, &b)
#define input3ints(a, b, c)   zinput3ints (&a, &b, &c)
#define xmallocarray(type, size)   ((type*)xmalloc((size+1)*sizeof(type)))
#define BIBXRETALLOC(array_name, array_var, type, size_var, new_size)
#define cinttype   int
#define cstring   string
#define fabs(x)   ((x) >= 0.0 ? (x) : -(x))
#define libcfree   free
#define extendfilename   extend_filename
#define findsuffix   find_suffix
#define FOPENRBINMODE   FOPEN_RBIN_MODE
#define FOPENRMODE   FOPEN_R_MODE
#define getoptlongonly   getopt_long_only
#define hasarg   has_arg
#define ISDIRSEP   IS_DIR_SEP
#define kpsebibformat   kpse_bib_format
#define kpsebstformat   kpse_bst_format
#define kpsefindfile   kpse_find_file
#define kpsefindmf   kpse_find_mf
#define kpsefindmft   kpse_find_mft
#define kpsefindofm   kpse_find_ofm
#define kpsefindovf   kpse_find_ovf
#define kpsefindtex   kpse_find_tex
#define kpsefindtfm   kpse_find_tfm
#define kpsefindvf   kpse_find_vf
#define kpseinitprog   kpse_init_prog
#define kpsesetprogname   kpse_set_progname
#define kpsesetprogramname   kpse_set_program_name
#define kpseresetprogramname   kpse_reset_program_name
#define kpsegfformat   kpse_gf_format
#define kpselastformat   kpse_last_format
#define kpsemaketexdiscarderrors   kpse_make_tex_discard_errors
#define kpsemfformat   kpse_mf_format
#define kpsemftformat   kpse_mft_format
#define kpsempformat   kpse_mp_format
#define kpseocpformat   kpse_ocp_format
#define kpseofmformat   kpse_ofm_format
#define kpseoplformat   kpse_opl_format
#define kpseotpformat   kpse_otp_format
#define kpseovpformat   kpse_ovp_format
#define kpseovfformat   kpse_ovf_format
#define kpseopenfile   kpse_open_file
#define kpsepkformat   kpse_pk_format
#define kpsetfmformat   kpse_tfm_format
#define kpsevfformat   kpse_vf_format
#define kpsewebformat   kpse_web_format
#define kpsevarvalue   kpse_var_value
#define kpsesetprogramenabled   kpse_set_program_enabled
#define kpsesrccmdline   kpse_src_cmdline
#define makesuffix   make_suffix
#define recorderchangefilename   recorder_change_filename
#define recorderenabled   recorder_enabled
#define removesuffix   remove_suffix
#define link   link_var

Typedefs

typedef double real
typedef FILEtext
typedef unsigned char * pointertobyte
typedef struct option

Functions

string basenamechangesuffix P3H (const_string, const_string, const_string)
string chartostring P1H (char)
boolean eof P1H (FILE *)
void fprintreal P4H (FILE *, double, int, int)
void zinput2ints P2H (integer *, integer *)
void zinput3ints P3H (integer *, integer *, integer *)
integer zround P1H (double)
string cmdline P1H (int)
TEXDLL void mainbody P1H (void)
boolean open_input P3H (FILE **, int, const_string fopen_mode)
boolean open_output P2H (FILE **, const_string fopen_mode)
void recorder_change_filename P1H (string)

Variables

int argc
stringargv
boolean recorder_enabled
string output_directory
string versionstring

Define Documentation

#define abs (   x)    ((integer)(x) >= 0 ? (integer)(x) : (integer)-(x))

Definition at line 43 of file cpascal.h.

#define addressof (   x)    (&(x))

Definition at line 102 of file cpascal.h.

#define aopenin (   f,
  p 
)    open_input (&(f), p, FOPEN_RBIN_MODE)

Definition at line 135 of file cpascal.h.

#define aopenout (   f)    open_output (&(f), FOPEN_W_MODE)

Definition at line 136 of file cpascal.h.

#define BIBXRETALLOC (   array_name,
  array_var,
  type,
  size_var,
  new_size 
)
Value:
do { \
  fprintf (logfile, "Reallocated %s (elt_size=%d) to %ld items from %ld.\n", \
           array_name, (int) sizeof (type), new_size, size_var); \
  XRETALLOC (array_var, new_size + 1, type); \
  size_var = new_size; \
} while (0)

Definition at line 161 of file cpascal.h.

#define casttobytepointer (   e)    ((pointertobyte) e)

Definition at line 140 of file cpascal.h.

#define chr (   x)    (x)

Definition at line 45 of file cpascal.h.

#define cinttype   int

Definition at line 169 of file cpascal.h.

#define cstring   string

Definition at line 173 of file cpascal.h.

#define decr (   x)    --(x)

Definition at line 89 of file cpascal.h.

#define extendfilename   extend_filename

Definition at line 184 of file cpascal.h.

#define fabs (   x)    ((x) >= 0.0 ? (x) : -(x))

Definition at line 177 of file cpascal.h.

#define findsuffix   find_suffix

Definition at line 185 of file cpascal.h.

#define floor (   x)    ((integer)floor((double)(x)))

Definition at line 50 of file cpascal.h.

#define floorscaled (   i)    ((i)&(-65536))

Definition at line 57 of file cpascal.h.

#define floorunscaled (   i)    ((i)>>16)

Definition at line 56 of file cpascal.h.

Definition at line 186 of file cpascal.h.

#define FOPENRMODE   FOPEN_R_MODE

Definition at line 187 of file cpascal.h.

#define Fputs (   f,
  s 
)    (void) fputs (s, f)

Definition at line 131 of file cpascal.h.

Definition at line 188 of file cpascal.h.

#define half (   i)    ( ((i)<0) ? (((i)+1)>>1) : ((i)>>1) )

Definition at line 68 of file cpascal.h.

#define halfp (   i)    ((i) >> 1)

Definition at line 70 of file cpascal.h.

#define hasarg   has_arg

Definition at line 189 of file cpascal.h.

#define incr (   x)    ++(x)

Definition at line 90 of file cpascal.h.

#define input   stdin

Definition at line 51 of file cpascal.h.

#define input2ints (   a,
  b 
)    zinput2ints (&a, &b)

Definition at line 147 of file cpascal.h.

#define input3ints (   a,
  b,
  c 
)    zinput3ints (&a, &b, &c)

Definition at line 150 of file cpascal.h.

#define intcast (   x)    ((integer) (x))

Definition at line 123 of file cpascal.h.

#define ISDIRSEP   IS_DIR_SEP

Definition at line 190 of file cpascal.h.

Definition at line 191 of file cpascal.h.

Definition at line 192 of file cpascal.h.

#define kpsefindfile   kpse_find_file

Definition at line 193 of file cpascal.h.

#define kpsefindmf   kpse_find_mf

Definition at line 194 of file cpascal.h.

#define kpsefindmft   kpse_find_mft

Definition at line 195 of file cpascal.h.

#define kpsefindofm   kpse_find_ofm

Definition at line 196 of file cpascal.h.

#define kpsefindovf   kpse_find_ovf

Definition at line 197 of file cpascal.h.

#define kpsefindtex   kpse_find_tex

Definition at line 198 of file cpascal.h.

#define kpsefindtfm   kpse_find_tfm

Definition at line 199 of file cpascal.h.

#define kpsefindvf   kpse_find_vf

Definition at line 200 of file cpascal.h.

Definition at line 205 of file cpascal.h.

#define kpseinitprog   kpse_init_prog

Definition at line 201 of file cpascal.h.

Definition at line 206 of file cpascal.h.

Definition at line 207 of file cpascal.h.

Definition at line 208 of file cpascal.h.

Definition at line 209 of file cpascal.h.

Definition at line 210 of file cpascal.h.

Definition at line 211 of file cpascal.h.

Definition at line 212 of file cpascal.h.

#define kpseopenfile   kpse_open_file

Definition at line 217 of file cpascal.h.

Definition at line 213 of file cpascal.h.

Definition at line 214 of file cpascal.h.

Definition at line 216 of file cpascal.h.

Definition at line 215 of file cpascal.h.

Definition at line 218 of file cpascal.h.

#define kpseresetprogramname   kpse_reset_program_name

Definition at line 204 of file cpascal.h.

#define kpsesetprogname   kpse_set_progname

Definition at line 202 of file cpascal.h.

#define kpsesetprogramenabled   kpse_set_program_enabled

Definition at line 223 of file cpascal.h.

#define kpsesetprogramname   kpse_set_program_name

Definition at line 203 of file cpascal.h.

Definition at line 224 of file cpascal.h.

Definition at line 219 of file cpascal.h.

#define kpsevarvalue   kpse_var_value

Definition at line 222 of file cpascal.h.

Definition at line 220 of file cpascal.h.

Definition at line 221 of file cpascal.h.

#define libcfree   free

Definition at line 180 of file cpascal.h.

#define link   link_var

Definition at line 236 of file cpascal.h.

#define makebinaryfile (   arg)    (arg)

Definition at line 110 of file cpascal.h.

#define makesuffix   make_suffix

Definition at line 225 of file cpascal.h.

#define maxint   INTEGER_MAX

Definition at line 53 of file cpascal.h.

#define nil   NULL

Definition at line 54 of file cpascal.h.

#define odd (   x)    ((x) & 1)

Definition at line 47 of file cpascal.h.

#define ord (   x)    (x)

Definition at line 46 of file cpascal.h.

#define output   stdout

Definition at line 52 of file cpascal.h.

#define printreal (   r,
  n,
 
)    fprintreal (stdout, r, n, m)

Definition at line 115 of file cpascal.h.

#define putbyte (   x,
  f 
)
Value:
do { if (putc ((char) (x) & 255, f) == EOF) \
        FATAL1 ("putbyte(%ld) failed", (long) x); } while (0)

Definition at line 118 of file cpascal.h.

#define read (   f,
  b 
)    ((b) = getc (f))

Definition at line 85 of file cpascal.h.

#define recorderchangefilename   recorder_change_filename

Definition at line 226 of file cpascal.h.

Definition at line 227 of file cpascal.h.

#define removesuffix   remove_suffix

Definition at line 228 of file cpascal.h.

#define reset (   f,
  n 
)    f = xfopen (n, FOPEN_R_MODE)

Definition at line 77 of file cpascal.h.

#define resetbin (   f,
  n 
)    f = xfopen (n, FOPEN_RBIN_MODE)

Definition at line 79 of file cpascal.h.

#define rewrite (   f,
  n 
)    f = xfopen (n, FOPEN_W_MODE)

Definition at line 78 of file cpascal.h.

#define rewritebin (   f,
  n 
)    f = xfopen (n, FOPEN_WBIN_MODE)

Definition at line 80 of file cpascal.h.

#define round (   x)    zround ((double) (x))

Definition at line 48 of file cpascal.h.

#define roundfraction (   i)    (((i>>11)+1)>>1)

Definition at line 59 of file cpascal.h.

#define roundunscaled (   i)    (((i>>15)+1)>>1)

Definition at line 58 of file cpascal.h.

#define stringcast (   x)    ((string) (x))

Definition at line 124 of file cpascal.h.

#define trunc (   x)    ((integer) (x))

Definition at line 49 of file cpascal.h.

#define vgetc (   f)    (void) getc (f)

Definition at line 127 of file cpascal.h.

#define writechunk (   f,
  buf,
  start,
  end 
)    (void) fwrite (&buf[start], sizeof (buf[start]), end - start + 1, f)

Definition at line 143 of file cpascal.h.

#define Xchr (   x)    xchr[x]

Definition at line 31 of file cpascal.h.

#define xmallocarray (   type,
  size 
)    ((type*)xmalloc((size+1)*sizeof(type)))

Definition at line 155 of file cpascal.h.


Typedef Documentation

typedef struct option

Definition at line 231 of file cpascal.h.

typedef unsigned char* pointertobyte

Definition at line 139 of file cpascal.h.

typedef double real

Definition at line 93 of file cpascal.h.

typedef FILE* text

Definition at line 96 of file cpascal.h.


Function Documentation

string chartostring P1H ( char  )
boolean eof P1H ( FILE )
integer zround P1H ( double  )
TEXDLL void mainbody 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 recorder_change_filename P1H ( string  )
void zinput2ints P2H ( integer ,
integer  
)
boolean open_output P2H ( FILE **  ,
const_string  fopen_mode 
)
string basenamechangesuffix P3H ( const_string  ,
const_string  ,
const_string   
)
void zinput3ints P3H ( integer ,
integer ,
integer  
)
boolean open_input P3H ( FILE **  ,
int  ,
const_string  fopen_mode 
)
void fprintreal P4H ( FILE ,
double  ,
int  ,
int   
)

Variable Documentation

Definition at line 236 of file cwebboot.c.

Definition at line 237 of file cwebboot.c.

Definition at line 26 of file openclose.c.

Definition at line 25 of file openclose.c.

Definition at line 6 of file version.c.