Back to index

tetex-bin  3.0
Classes | Defines | Typedefs | Functions | Variables
omegamem.h File Reference

Go to the source code of this file.

Classes

struct  hashw

Defines

#define newinputline(stream, mode, flag)   new_input_line (stream, mode)
#define initeqtbtable()   inithhashtable();
#define dumpeqtbtable()   dumphhashtable();
#define undumpeqtbtable()   undumphhashtable();
#define HASHTABLESIZE   23123
#define neweqtb(a)
#define neweqtbint(a)
#define neweqtbsc(a)
#define newequiv(a)
#define newequiv1(a)
#define neweqlevel(a)
#define neweqtype(a)
#define setneweqtb(a, v)
#define setneweqtbint(a, v)
#define setneweqtbsc(a, v)
#define setequiv(a, v)
#define setequiv1(a, v)
#define seteqlevel(a, v)
#define seteqtype(a, v)
#define newhashnext(a)
#define newhashtext(a)
#define sethashnext(a, d)
#define sethashtext(a, d)
#define newxeqlevel(a)
#define setintzero(w, a)   ((w).cint=(a))
#define setintone(w, a)   ((w).cint1=(a))

Typedefs

typedef struct hashw hashword

Functions

boolean new_input_line (FILE *, halfword)
boolean newinputln (FILE *, halfword, halfword, boolean)
int getc_two ()
int getfilemode (FILE *, int)
void ungetc_two ()
hashwordcreatehashpos (int)
hashwordcreateeqtbpos (int)
hashwordcreatexeqlevel (int)
void inithhashtable ()
void dumphhashtable ()
void undumphhashtable ()
void allocatefonttable (int, int)
void dumpfonttable (int, int)
void undumpfonttable (int)
void allocatefontsorttable (int, int)
void dumpfontsorttable (int, int)
void undumpfontsorttable (int)
void allocateocptable (int, int)
void dumpocptable (int)
void undumpocptable (int)
void odateandtime (int, int, int, int)
void btestin ()
void runexternalocp (char *)

Variables

int ocptemp
memoryword ** fonttables
memoryword ** fontsorttables
int ** ocptables
hashword hashtable []

Class Documentation

struct hashw

Definition at line 36 of file alephmem.h.

Collaboration diagram for hashw:
Class Members
memoryword mw
integer p
struct hashw * ptr

Define Documentation

#define dumpeqtbtable ( )    dumphhashtable();

Definition at line 80 of file omegamem.h.

#define HASHTABLESIZE   23123

Definition at line 83 of file omegamem.h.

#define initeqtbtable ( )    inithhashtable();

Definition at line 79 of file omegamem.h.

#define neweqlevel (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.b1) : \
                                 (createeqtbpos(a)->mw.hh.b1))

Definition at line 99 of file omegamem.h.

#define neweqtb (   a)
Value:

Definition at line 84 of file omegamem.h.

#define neweqtbint (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.cint) : \
                                 (createeqtbpos(a)->mw.cint))

Definition at line 87 of file omegamem.h.

#define neweqtbsc (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.cint) : \
                                 (createeqtbpos(a)->mw.cint))

Definition at line 90 of file omegamem.h.

#define neweqtype (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.b0) : \
                                 (createeqtbpos(a)->mw.hh.b0))

Definition at line 102 of file omegamem.h.

#define newequiv (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.rh) : \
                                 (createeqtbpos(a)->mw.hh.rh))

Definition at line 93 of file omegamem.h.

#define newequiv1 (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                     (hashtable[(a)%HASHTABLESIZE].mw.cint1) : \
                                 (createeqtbpos(a)->mw.cint1))

Definition at line 96 of file omegamem.h.

#define newhashnext (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.v.LH) : \
                                 (createhashpos(a)->mw.hh.v.LH))

Definition at line 127 of file omegamem.h.

#define newhashtext (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.v.RH) : \
                                 (createhashpos(a)->mw.hh.v.RH))

Definition at line 130 of file omegamem.h.

#define newinputline (   stream,
  mode,
  flag 
)    new_input_line (stream, mode)

Definition at line 33 of file omegamem.h.

#define newxeqlevel (   a)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.cint) : \
                                 (createxeqlevel(a)->mw.cint))

Definition at line 140 of file omegamem.h.

#define seteqlevel (   a,
  v 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.b1=v) : \
                                 (createeqtbpos(a)->mw.hh.b1=v))

Definition at line 120 of file omegamem.h.

#define seteqtype (   a,
  v 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.b0=v) : \
                                 (createeqtbpos(a)->mw.hh.b0=v))

Definition at line 123 of file omegamem.h.

#define setequiv (   a,
  v 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.rh=v) : \
                                 (createeqtbpos(a)->mw.hh.rh=v))

Definition at line 114 of file omegamem.h.

#define setequiv1 (   a,
  v 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                      (hashtable[(a)%HASHTABLESIZE].mw.cint1=v) : \
                                 (createeqtbpos(a)->mw.cint1=v))

Definition at line 117 of file omegamem.h.

#define sethashnext (   a,
  d 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.v.LH=d) : \
                                 (createhashpos(a)->mw.hh.v.LH=d))

Definition at line 133 of file omegamem.h.

#define sethashtext (   a,
  d 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.hh.v.RH=d) : \
                                 (createhashpos(a)->mw.hh.v.RH=d))

Definition at line 136 of file omegamem.h.

#define setintone (   w,
  a 
)    ((w).cint1=(a))

Definition at line 145 of file omegamem.h.

#define setintzero (   w,
  a 
)    ((w).cint=(a))

Definition at line 144 of file omegamem.h.

#define setneweqtb (   a,
  v 
)
Value:

Definition at line 105 of file omegamem.h.

#define setneweqtbint (   a,
  v 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.cint=v) : \
                                 (createeqtbpos(a)->mw.cint=v))

Definition at line 108 of file omegamem.h.

#define setneweqtbsc (   a,
  v 
)
Value:
(((a)==hashtable[(a)%HASHTABLESIZE].p) ? \
                             (hashtable[(a)%HASHTABLESIZE].mw.cint=v) : \
                                 (createeqtbpos(a)->mw.cint=v))

Definition at line 111 of file omegamem.h.

#define undumpeqtbtable ( )    undumphhashtable();

Definition at line 81 of file omegamem.h.


Typedef Documentation

typedef struct hashw hashword

Function Documentation

void allocatefonttable ( int  ,
int   
)
void allocateocptable ( int  ,
int   
)

Definition at line 26 of file aleph.c.

{
    string fname =
    kpse_find_file (nameoffile + 1, kpse_program_binary_format, true);

    if (fname) {
      libcfree(nameoffile);
      nameoffile = xmalloc(2+strlen(fname));
      namelength = strlen(fname);
      strcpy(nameoffile+1, fname);
    }
    else {
      libcfree(nameoffile);
      nameoffile = xmalloc(2);
      namelength = 0;
      nameoffile[0] = 0;
      nameoffile[1] = 0;
    }
}

Here is the call graph for this function:

void dumpfontsorttable ( int  ,
int   
)
void dumpfonttable ( int  ,
int   
)
int getfilemode ( FILE ,
int   
)
boolean newinputln ( FILE ,
halfword  ,
halfword  ,
boolean   
)
void odateandtime ( int  ,
int  ,
int  ,
int   
)
void runexternalocp ( char *  )

Definition at line 417 of file aleph.c.

{
    memoryword sizeword;
    if (fontsort_entries==0) {
      fontsorttables = (memoryword **) xmalloc(256*sizeof(memoryword**));
      fontsort_entries=256;
    } else if ((fontsort_number==256)&&(fontsort_entries==256)) {
      fontsorttables = xrealloc(fontsorttables, 65536);
      fontsort_entries=65536;
    }

    undumpthings(sizeword,1);
    fontsorttables[fontsort_number] =
        (memoryword *) xmalloc((sizeword.cint+1)*sizeof(memoryword));
    fontsorttables[fontsort_number][0].cint = sizeword.cint;
    undumpthings(fontsorttables[fontsort_number][1], sizeword.cint);
}

Here is the call graph for this function:

Definition at line 365 of file aleph.c.

{
    memoryword sizeword;
    if (font_entries==0) {
      fonttables = (memoryword **) xmalloc(256*sizeof(memoryword**));
      font_entries=256;
    } else if ((font_number==256)&&(font_entries==256)) {
      fonttables = xrealloc(fonttables, 65536);
      font_entries=65536;
    }

    undumpthings(sizeword,1);
    fonttables[font_number] =
        (memoryword *) xmalloc((sizeword.cint+1)*sizeof(memoryword));
    fonttables[font_number][0].cint = sizeword.cint;
    undumpthings(fonttables[font_number][1], sizeword.cint);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 384 of file aleph.c.

Definition at line 333 of file aleph.c.

Definition at line 196 of file aleph.c.

Definition at line 436 of file aleph.c.

Definition at line 31 of file openclose.c.