Back to index

tetex-bin  3.0
Classes | Typedefs | Functions | Variables
extra_routines.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rule_struct
struct  glue_struct

Typedefs

typedef struct rule_struct rule
typedef struct glue_struct glue

Functions

void init_font_ivalue (unsigned)
void init_font_mvalue (unsigned)
void init_font_fvalue (unsigned)
void init_font_penalty (unsigned)
void init_font_rule (unsigned)
void init_font_glue (unsigned)
void init_font_ivalue_entry (unsigned)
void set_font_ivalue_definition (unsigned)
void init_font_mvalue_entry (unsigned)
void set_font_mvalue_definition (fix)
void init_font_fvalue_entry (unsigned)
void set_font_fvalue_definition (fix)
void init_font_penalty_entry (unsigned)
void set_font_penalty_definition (unsigned)
void init_font_rule_entry (unsigned)
void set_font_rule_measure (unsigned, fix)
void init_font_glue_entry (unsigned)
void set_font_glue_type (unsigned)
void set_font_glue_width (fix)
void set_font_glue_character (unsigned)
void set_font_glue_rule (unsigned, unsigned)
void set_font_glue_shrink_stretch (unsigned, fix, unsigned)
void set_character_ivalue (unsigned, unsigned)
void set_character_penalty (unsigned, unsigned)
void set_character_mvalue (unsigned, unsigned)
void set_character_fvalue (unsigned, unsigned)
void set_character_rule (unsigned, unsigned)
void set_character_glue (unsigned, unsigned)
void compute_ofm_extra_stuff (void)
void output_ofm_extra_stuff (void)

Variables

unsigned nki
unsigned nwi
unsigned nkp
unsigned nwp
unsigned nkm
unsigned nwm
unsigned nkf
unsigned nwf
unsigned nkr
unsigned nwr
unsigned nkg
unsigned nwg

Class Documentation

struct rule_struct

Definition at line 49 of file extra_routines.h.

Class Members
fix rule_dp
fix rule_ht
fix rule_wd
struct glue_struct

Definition at line 55 of file extra_routines.h.

Class Members
unsigned glue_arg1
unsigned glue_arg2
unsigned glue_arg_type
fix glue_shrink
unsigned glue_shrink_order
fix glue_stretch
unsigned glue_stretch_order
unsigned glue_type
fix glue_width

Typedef Documentation

typedef struct glue_struct glue
typedef struct rule_struct rule

Function Documentation

Definition at line 90 of file extra_routines.c.

{
    unsigned i=0;

    if (ofm_level >= OFM_LEVEL1) {
        nki = no_ivalue_tables;
        nkp = no_penalty_tables;
        nkm = no_mvalue_tables;
        nkf = no_fvalue_tables;
        nkr = no_rule_tables;
        nkg = no_glue_tables;
        for (i=0; i<nki; i++) {
            nwi += max_ivalue_entry[i];
        }
        for (i=0; i<nkp; i++) {
            nwp += max_penalty_entry[i];
        }
        for (i=0; i<nkm; i++) {
            nwm += max_mvalue_entry[i];
        }
        for (i=0; i<nkf; i++) {
            nwf += max_fvalue_entry[i];
        }
        for (i=0; i<nkr; i++) {
            nwr += 3 * max_rule_entry[i];
        }
        for (i=0; i<nkg; i++) {
            nwg += 4 * max_glue_entry[i];
        }
    }
}

Here is the caller graph for this function:

void init_font_fvalue ( unsigned  )

Definition at line 215 of file extra_routines.c.

{
     unsigned j;

     if (tab>=MAX_EXTRA_TABLES)
         internal_error_1("init_font_fvalue (tab=%d)", tab);
     if (fvalue_tables[tab] != NULL) {
         warning_1("FVALUE table (D %d) previously defined; "
                   "old value ignored", tab);
         cur_fvalue_table = fvalue_tables[tab];
         for (j=0; j<MAX_TABLE_ENTRIES; j++) {
              cur_fvalue_table[j] = 0;
         }
     } else {
         no_fvalue_tables++;
         fvalue_tables[tab] =
             (fix *) xmalloc(MAX_TABLE_ENTRIES*sizeof(unsigned));
         cur_fvalue_table = fvalue_tables[tab];
     }
     max_fvalue_entry[tab] = 0;
}

Here is the call graph for this function:

void init_font_fvalue_entry ( unsigned  )

Definition at line 325 of file extra_routines.c.

Here is the call graph for this function:

void init_font_glue ( unsigned  )

Definition at line 263 of file extra_routines.c.

{
     unsigned j;

     if (tab>=MAX_EXTRA_TABLES)
         internal_error_1("init_font_glue (tab=%d)", tab);
     if (glue_tables[tab] != NULL) {
         warning_1("GLUE table (D %d) previously defined; "
                   "old value ignored", tab);
         cur_glue_table = glue_tables[tab];
         for (j=0; j<MAX_TABLE_ENTRIES; j++) {
              cur_glue_table[j].glue_width = 0;
              cur_glue_table[j].glue_stretch = 0;
              cur_glue_table[j].glue_shrink = 0;
              cur_glue_table[j].glue_stretch_order = 0;
              cur_glue_table[j].glue_shrink_order = 0;
              cur_glue_table[j].glue_type = 0;
              cur_glue_table[j].glue_arg_type = GLUEARG_NONE;
              cur_glue_table[j].glue_arg1 = 0;
              cur_glue_table[j].glue_arg2 = 0;
         }
     } else {
         no_glue_tables++;
         glue_tables[tab] =
             (glue *) xmalloc(MAX_TABLE_ENTRIES*sizeof(glue));
         cur_glue_table = glue_tables[tab];
     }
     max_glue_entry[tab] = 0;
}

Here is the call graph for this function:

void init_font_glue_entry ( unsigned  )

Definition at line 345 of file extra_routines.c.

Here is the call graph for this function:

void init_font_ivalue ( unsigned  )

Definition at line 146 of file extra_routines.c.

{
     unsigned j;

     if (tab>=MAX_EXTRA_TABLES)
         internal_error_1("init_font_ivalue (tab=%d)", tab);
     if (ivalue_tables[tab] != NULL) {
         warning_1("IVALUE table (D %d) previously defined; "
                   "old value ignored", tab);
         cur_ivalue_table = ivalue_tables[tab];
         for (j=0; j<MAX_TABLE_ENTRIES; j++) {
              cur_ivalue_table[j] = 0;
         }
     } else {
         no_ivalue_tables++;
         ivalue_tables[tab] =
             (unsigned *) xmalloc(MAX_TABLE_ENTRIES*sizeof(unsigned));
         cur_ivalue_table = ivalue_tables[tab];
     }
     max_ivalue_entry[tab] = 0;
}

Here is the call graph for this function:

void init_font_ivalue_entry ( unsigned  )

Definition at line 295 of file extra_routines.c.

Here is the call graph for this function:

void init_font_mvalue ( unsigned  )

Definition at line 192 of file extra_routines.c.

{
     unsigned j;

     if (tab>=MAX_EXTRA_TABLES)
         internal_error_1("init_font_mvalue (tab=%d)", tab);
     if (mvalue_tables[tab] != NULL) {
         warning_1("MVALUE table (D %d) previously defined; "
                   "old value ignored", tab);
         cur_mvalue_table = mvalue_tables[tab];
         for (j=0; j<MAX_TABLE_ENTRIES; j++) {
              cur_mvalue_table[j] = 0;
         }
     } else {
         no_mvalue_tables++;
         mvalue_tables[tab] =
             (fix *) xmalloc(MAX_TABLE_ENTRIES*sizeof(unsigned));
         cur_mvalue_table = mvalue_tables[tab];
     }
     max_mvalue_entry[tab] = 0;
}

Here is the call graph for this function:

void init_font_mvalue_entry ( unsigned  )

Definition at line 315 of file extra_routines.c.

Here is the call graph for this function:

void init_font_penalty ( unsigned  )

Definition at line 169 of file extra_routines.c.

{
     unsigned j;

     if (tab>=MAX_EXTRA_TABLES)
         internal_error_1("init_font_penalty (tab=%d)", tab);
     if (penalty_tables[tab] != NULL) {
         warning_1("IVALUE table (D %d) previously defined; "
                   "old value ignored", tab);
         cur_penalty_table = ivalue_tables[tab];
         for (j=0; j<MAX_TABLE_ENTRIES; j++) {
              cur_penalty_table[j] = 0;
         }
     } else {
         no_penalty_tables++;
         penalty_tables[tab] =
             (unsigned *) xmalloc(MAX_TABLE_ENTRIES*sizeof(unsigned));
         cur_penalty_table = ivalue_tables[tab];
     }
     max_penalty_entry[tab] = 0;
}

Here is the call graph for this function:

void init_font_penalty_entry ( unsigned  )

Definition at line 305 of file extra_routines.c.

Here is the call graph for this function:

void init_font_rule ( unsigned  )

Definition at line 238 of file extra_routines.c.

{
     unsigned j;

     if (tab>=MAX_EXTRA_TABLES)
         internal_error_1("init_font_rule (tab=%d)", tab);
     if (rule_tables[tab] != NULL) {
         warning_1("RULE table (D %d) previously defined; "
                   "old value ignored", tab);
         cur_rule_table = rule_tables[tab];
         for (j=0; j<MAX_TABLE_ENTRIES; j++) {
              cur_rule_table[j].rule_wd = 0;
              cur_rule_table[j].rule_dp = 0;
              cur_rule_table[j].rule_ht = 0;
         }
     } else {
         no_rule_tables++;
         rule_tables[tab] =
             (rule *) xmalloc(MAX_TABLE_ENTRIES*sizeof(rule));
         cur_rule_table = rule_tables[tab];
     }
     max_rule_entry[tab] = 0;
}

Here is the call graph for this function:

void init_font_rule_entry ( unsigned  )

Definition at line 335 of file extra_routines.c.

Here is the call graph for this function:

Definition at line 123 of file extra_routines.c.

{
    if (ofm_level >= OFM_LEVEL1) {
        fatal_error_0("OFM level 1 not currently supported");
    }
}
void set_character_fvalue ( unsigned  ,
unsigned   
)

Definition at line 464 of file extra_routines.c.

{
    fatal_error_0("CHARFVALUE not currently supported");
}

Here is the call graph for this function:

void set_character_glue ( unsigned  ,
unsigned   
)

Definition at line 476 of file extra_routines.c.

{
    fatal_error_0("CHARGLUE not currently supported");
}

Here is the call graph for this function:

void set_character_ivalue ( unsigned  ,
unsigned   
)

Definition at line 446 of file extra_routines.c.

{
    fatal_error_0("CHARIVALUE not currently supported");
}

Here is the call graph for this function:

void set_character_mvalue ( unsigned  ,
unsigned   
)

Definition at line 458 of file extra_routines.c.

{
    fatal_error_0("CHARMVALUE not currently supported");
}

Here is the call graph for this function:

void set_character_penalty ( unsigned  ,
unsigned   
)

Definition at line 452 of file extra_routines.c.

{
    fatal_error_0("CHARPENALTY not currently supported");
}

Here is the call graph for this function:

void set_character_rule ( unsigned  ,
unsigned   
)

Definition at line 470 of file extra_routines.c.

{
    fatal_error_0("CHARRULE not currently supported");
}

Here is the call graph for this function:

Definition at line 374 of file extra_routines.c.

{
     *cur_fvalue_entry = fval;
}
void set_font_glue_character ( unsigned  )
void set_font_glue_rule ( unsigned  ,
unsigned   
)

Definition at line 438 of file extra_routines.c.

void set_font_glue_shrink_stretch ( unsigned  ,
fix  ,
unsigned   
)

Definition at line 406 of file extra_routines.c.

{
     switch (shrink_stretch) {
         case GLUE_SHRINK: {
             cur_glue_entry->glue_shrink = width; break;
             cur_glue_entry->glue_shrink_order = order; break;
         }
         case GLUE_STRETCH: {
             cur_glue_entry->glue_stretch_order = order; break;
         }
         default: {
             internal_error_1("set_font_rule_measure (shrink_stretch=%d)",
                              shrink_stretch);
         }
     }
}

Here is the call graph for this function:

void set_font_glue_type ( unsigned  )

Definition at line 425 of file extra_routines.c.

Definition at line 400 of file extra_routines.c.

Definition at line 356 of file extra_routines.c.

Definition at line 368 of file extra_routines.c.

{
     *cur_mvalue_entry = fval;
}

Definition at line 362 of file extra_routines.c.

void set_font_rule_measure ( unsigned  ,
fix   
)

Definition at line 380 of file extra_routines.c.

{
     switch (measure) {
         case RULE_WD: {
             cur_rule_entry->rule_wd = fval; break;
         }
         case RULE_HT: {
             cur_rule_entry->rule_ht = fval; break;
         }
         case RULE_DP: {
             cur_rule_entry->rule_dp = fval; break;
         }
         default: {
             internal_error_1("set_font_rule_measure (measure=%d)", measure);
         }
     }
}

Here is the call graph for this function:


Variable Documentation

unsigned nkf

Definition at line 82 of file extra_routines.c.

unsigned nkg

Definition at line 86 of file extra_routines.c.

unsigned nki

Definition at line 76 of file extra_routines.c.

unsigned nkm

Definition at line 80 of file extra_routines.c.

unsigned nkp

Definition at line 78 of file extra_routines.c.

unsigned nkr

Definition at line 84 of file extra_routines.c.

unsigned nwf

Definition at line 83 of file extra_routines.c.

unsigned nwg

Definition at line 87 of file extra_routines.c.

unsigned nwi

Definition at line 77 of file extra_routines.c.

unsigned nwm

Definition at line 81 of file extra_routines.c.

unsigned nwp

Definition at line 79 of file extra_routines.c.

unsigned nwr

Definition at line 85 of file extra_routines.c.