Back to index

tetex-bin  3.0
Classes | Defines | Functions
objects.h File Reference
#include "types.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  xobject

Defines

#define Permanent(obj)   t1_Permanent(obj)
#define Temporary(obj)   t1_Temporary(obj)
#define Destroy(obj)   t1_Destroy(obj)
#define Dup(obj)   t1_Dup(obj)
#define InitImager()   t1_InitImager()
#define TermImager()   t1_TermImager()
#define Pragmatics(f, v)   t1_Pragmatics(f,v)
#define ErrorMsg()   t1_ErrorMsg()
#define abort(line, no)   t1_abort(line,no)
#define Allocate(n, t, s)   t1_Allocate(n,t,s)
#define Free(obj)   t1_Free(obj)
#define NonObjectFree(a)   free(a)
#define Consume   t1_Consume
#define ArgErr(s, o, r)   t1_ArgErr(s,o,r)
#define TypeErr(n, o, e, r)   t1_TypeErr(n,o,e,r)
#define Copy(obj)   t1_Copy(obj)
#define Unique(obj)   t1_Unique(obj)
#define ON   (~0) /* all bits on */
#define FALSE   0 /* handy zero value */
#define TRUE   1 /* handy non-zero value */
#define NULL   0
#define TYPE1_MIN(a, b)   (((a)<(b)) ? a : b)
#define TYPE1_MAX(a, b)   (((a)>(b)) ? a : b)
#define TYPE1_ABS(a)   (((a)>=0)?(a):-(a))
#define XOBJ_COMMON   char type; unsigned char flag; short references;
#define INVALIDTYPE   0
#define FONTTYPE   1
#define REGIONTYPE   3
#define PICTURETYPE   4
#define SPACETYPE   5
#define LINESTYLETYPE   6
#define EDGETYPE   7
#define STROKEPATHTYPE   8
#define CLUTTYPE   9
#define ISPATHTYPE(type)   ((type)&0x10) /* all path segments have this bit on */
#define LINETYPE   (0+ISPATHTYPE(ON))
#define CONICTYPE   (1+ISPATHTYPE(ON))
#define BEZIERTYPE   (2+ISPATHTYPE(ON))
#define HINTTYPE   (3+ISPATHTYPE(ON))
#define MOVETYPE   (5+ISPATHTYPE(ON))
#define TEXTTYPE   (6+ISPATHTYPE(ON))
#define ISPERMANENT(flag)   ((flag)&0x01)
#define ISIMMORTAL(flag)   ((flag)&0x02)
#define PRESERVE(obj)
#define LONGCOPY(dest, source, bytes)
#define FOLLOWING(p)   ((p)+1)
#define TYPECHECK(name, obj, expect, whenBAD, consumables, rettype)
#define ARGCHECK(test, msg, obj, whenBAD, consumables, rettype)
#define TYPENULLCHECK(name, obj, expect, whenBAD, consumables, rettype)
#define MAKECONSUME(obj, stmt)   { if (!ISPERMANENT(obj->flag)) stmt; }
#define MAKEUNIQUE(obj, stmt)   ( ( (obj)->references > 1 ) ? stmt : obj )
#define IfTrace0(condition, model)   {if (condition) printf(model);}
#define IfTrace1(condition, model, arg0)   {if (condition) printf(model,arg0);}
#define IfTrace2(condition, model, arg0, arg1)   {if (condition) printf(model,arg0,arg1);}
#define IfTrace3(condition, model, arg0, arg1, arg2)   {if (condition) printf(model,arg0,arg1,arg2);}
#define IfTrace4(condition, model, arg0, arg1, arg2, arg3)   {if (condition) printf(model,arg0,arg1,arg2,arg3);}
#define IfTrace5(condition, model, arg0, arg1, arg2, arg3, arg4)   {if (condition) printf(model,arg0,arg1,arg2,arg3,arg4);}
#define IfTrace6(condition, model, arg0, arg1, arg2, arg3, arg4, arg5)   {if (condition) printf(model,arg0,arg1,arg2,arg3,arg4,arg5);}
#define INITIALIZED(value)
#define DumpArea(area)   t1_DumpArea(area)
#define DumpText(text)   t1_DumpText(text)
#define DumpSpace(space)   t1_DumpSpace(space)
#define DumpEdges(e)   t1_DumpEdges(e)
#define FormatFP(s, p)   t1_FormatFP(s,p)

Functions

struct xobjectt1_Permanent ()
struct xobjectt1_Temporary ()
struct xobjectt1_Destroy ()
struct xobjectt1_Dup ()
void t1_InitImager ()
void t1_TermImager ()
void t1_Pragmatics ()
char * t1_ErrorMsg ()
void t1_abort ()
struct xobjectt1_Allocate ()
void t1_Free ()
struct xobjectt1_Unique ()
struct xobjectt1_ArgErr ()
struct xobjectt1_TypeErr ()
void t1_Consume ()
struct xobjectt1_Copy ()
void Trace0 ()
char * Trace1 ()
char * Trace2 ()
char * Trace3 ()
char * Trace4 ()
char * Trace5 ()
char * Trace6 ()
char MustCheckArgs INITIALIZED (TRUE)
char MustTraceCalls INITIALIZED (FALSE)
short CRASTERCompressionType INITIALIZED (1)
char ConicDebug INITIALIZED (0)
short CachedChars INITIALIZED (0x7FFF)
int CacheBLimit INITIALIZED (12500)
char Continuity INITIALIZED (2)
void t1_DumpArea ()
void t1_DumpText ()
void t1_DumpPath ()
void t1_DumpSpace ()
void t1_DumpEdges ()
void t1_FormatFP ()

Class Documentation

struct xobject

Definition at line 105 of file objects.h.

Class Members
unsigned char flag
short references
char type

Define Documentation

#define abort (   line,
  no 
)    t1_abort(line,no)

Definition at line 57 of file objects.h.

#define Allocate (   n,
  t,
  s 
)    t1_Allocate(n,t,s)

Definition at line 58 of file objects.h.

#define ARGCHECK (   test,
  msg,
  obj,
  whenBAD,
  consumables,
  rettype 
)
Value:
{ \
    if (test) { \
        (Consume)consumables; \
        return((rettype)ArgErr(msg, obj, whenBAD)); \
    } \
}

Definition at line 179 of file objects.h.

#define ArgErr (   s,
  o,
  r 
)    t1_ArgErr(s,o,r)

Definition at line 62 of file objects.h.

#define BEZIERTYPE   (2+ISPATHTYPE(ON))

Definition at line 134 of file objects.h.

#define CLUTTYPE   9

Definition at line 129 of file objects.h.

#define CONICTYPE   (1+ISPATHTYPE(ON))

Definition at line 133 of file objects.h.

#define Consume   t1_Consume

Definition at line 61 of file objects.h.

#define Copy (   obj)    t1_Copy(obj)

Definition at line 64 of file objects.h.

#define Destroy (   obj)    t1_Destroy(obj)

Definition at line 38 of file objects.h.

#define DumpArea (   area)    t1_DumpArea(area)

Definition at line 282 of file objects.h.

#define DumpEdges (   e)    t1_DumpEdges(e)

Definition at line 286 of file objects.h.

#define DumpSpace (   space)    t1_DumpSpace(space)

Definition at line 285 of file objects.h.

#define DumpText (   text)    t1_DumpText(text)

Definition at line 283 of file objects.h.

#define Dup (   obj)    t1_Dup(obj)

Definition at line 39 of file objects.h.

#define EDGETYPE   7

Definition at line 127 of file objects.h.

#define ErrorMsg ( )    t1_ErrorMsg()

Definition at line 43 of file objects.h.

#define FALSE   0 /* handy zero value */

Definition at line 81 of file objects.h.

#define FOLLOWING (   p)    ((p)+1)

Definition at line 164 of file objects.h.

#define FONTTYPE   1

Definition at line 122 of file objects.h.

#define FormatFP (   s,
  p 
)    t1_FormatFP(s,p)

Definition at line 287 of file objects.h.

#define Free (   obj)    t1_Free(obj)

Definition at line 59 of file objects.h.

#define HINTTYPE   (3+ISPATHTYPE(ON))

Definition at line 135 of file objects.h.

#define IfTrace0 (   condition,
  model 
)    {if (condition) printf(model);}

Definition at line 216 of file objects.h.

#define IfTrace1 (   condition,
  model,
  arg0 
)    {if (condition) printf(model,arg0);}

Definition at line 218 of file objects.h.

#define IfTrace2 (   condition,
  model,
  arg0,
  arg1 
)    {if (condition) printf(model,arg0,arg1);}

Definition at line 220 of file objects.h.

#define IfTrace3 (   condition,
  model,
  arg0,
  arg1,
  arg2 
)    {if (condition) printf(model,arg0,arg1,arg2);}

Definition at line 222 of file objects.h.

#define IfTrace4 (   condition,
  model,
  arg0,
  arg1,
  arg2,
  arg3 
)    {if (condition) printf(model,arg0,arg1,arg2,arg3);}

Definition at line 224 of file objects.h.

#define IfTrace5 (   condition,
  model,
  arg0,
  arg1,
  arg2,
  arg3,
  arg4 
)    {if (condition) printf(model,arg0,arg1,arg2,arg3,arg4);}

Definition at line 226 of file objects.h.

#define IfTrace6 (   condition,
  model,
  arg0,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)    {if (condition) printf(model,arg0,arg1,arg2,arg3,arg4,arg5);}

Definition at line 228 of file objects.h.

#define INITIALIZED (   value)

Definition at line 242 of file objects.h.

#define InitImager ( )    t1_InitImager()

Definition at line 40 of file objects.h.

#define INVALIDTYPE   0

Definition at line 121 of file objects.h.

#define ISIMMORTAL (   flag)    ((flag)&0x02)

Definition at line 144 of file objects.h.

#define ISPATHTYPE (   type)    ((type)&0x10) /* all path segments have this bit on */

Definition at line 131 of file objects.h.

#define ISPERMANENT (   flag)    ((flag)&0x01)

Definition at line 143 of file objects.h.

#define LINESTYLETYPE   6

Definition at line 126 of file objects.h.

#define LINETYPE   (0+ISPATHTYPE(ON))

Definition at line 132 of file objects.h.

#define LONGCOPY (   dest,
  source,
  bytes 
)
Value:
{ \
    register LONG *p1 = (LONG *)dest;  register LONG *p2 = (LONG *)source; \
    register int count = (bytes) / sizeof(LONG); \
    while (--count >= 0) *p1++ = *p2++; }

Definition at line 155 of file objects.h.

#define MAKECONSUME (   obj,
  stmt 
)    { if (!ISPERMANENT(obj->flag)) stmt; }

Definition at line 206 of file objects.h.

#define MAKEUNIQUE (   obj,
  stmt 
)    ( ( (obj)->references > 1 ) ? stmt : obj )

Definition at line 211 of file objects.h.

#define MOVETYPE   (5+ISPATHTYPE(ON))

Definition at line 137 of file objects.h.

#define NonObjectFree (   a)    free(a)

Definition at line 60 of file objects.h.

#define NULL   0

Definition at line 88 of file objects.h.

#define ON   (~0) /* all bits on */

Definition at line 79 of file objects.h.

#define Permanent (   obj)    t1_Permanent(obj)

Definition at line 36 of file objects.h.

#define PICTURETYPE   4

Definition at line 124 of file objects.h.

#define Pragmatics (   f,
  v 
)    t1_Pragmatics(f,v)

Definition at line 42 of file objects.h.

#define PRESERVE (   obj)
Value:
if (!ISPERMANENT((obj)->flag)) \
   (obj)->references++;

Definition at line 149 of file objects.h.

#define REGIONTYPE   3

Definition at line 123 of file objects.h.

#define SPACETYPE   5

Definition at line 125 of file objects.h.

#define STROKEPATHTYPE   8

Definition at line 128 of file objects.h.

#define Temporary (   obj)    t1_Temporary(obj)

Definition at line 37 of file objects.h.

#define TermImager ( )    t1_TermImager()

Definition at line 41 of file objects.h.

#define TEXTTYPE   (6+ISPATHTYPE(ON))

Definition at line 138 of file objects.h.

#define TRUE   1 /* handy non-zero value */

Definition at line 84 of file objects.h.

#define TYPE1_ABS (   a)    (((a)>=0)?(a):-(a))

Definition at line 100 of file objects.h.

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

Definition at line 99 of file objects.h.

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

Definition at line 98 of file objects.h.

#define TYPECHECK (   name,
  obj,
  expect,
  whenBAD,
  consumables,
  rettype 
)
Value:
{ \
    if (obj->type != expect) { \
         (Consume)consumables; \
         return((rettype)TypeErr(name, obj, expect, whenBAD)); \
    } \
}

Definition at line 169 of file objects.h.

#define TypeErr (   n,
  o,
  e,
  r 
)    t1_TypeErr(n,o,e,r)

Definition at line 63 of file objects.h.

#define TYPENULLCHECK (   name,
  obj,
  expect,
  whenBAD,
  consumables,
  rettype 
)
Value:
if (obj == NULL) { \
        (Consume)consumables; \
        if (whenBAD != NULL && ISPERMANENT(whenBAD->flag)) \
              return((rettype)Temporary(Copy(whenBAD))); \
        else  return((rettype)whenBAD); \
    } else { \
        if (obj->type != expect) { \
             (Consume)consumables; \
             return((rettype)TypeErr(name, obj, expect, whenBAD)); \
        } \
    }

Definition at line 191 of file objects.h.

#define Unique (   obj)    t1_Unique(obj)

Definition at line 65 of file objects.h.

#define XOBJ_COMMON   char type; unsigned char flag; short references;

Definition at line 115 of file objects.h.


Function Documentation

char SaveFontPaths INITIALIZED ( TRUE  )
char MustTraceCalls INITIALIZED ( FALSE  )
short CRASTERCompressionType INITIALIZED ( )
char OffPageDebug INITIALIZED ( )
short CachedFonts INITIALIZED ( 0x7FFF  )
int CacheBLimit INITIALIZED ( 12500  )
char Continuity INITIALIZED ( )

Here is the caller graph for this function:

struct xobject* t1_Allocate ( ) [read]
struct xobject* t1_ArgErr ( ) [read]
struct xobject* t1_Copy ( ) [read]
struct xobject* t1_Destroy ( ) [read]

Definition at line 43 of file t1stub.c.

{
       xiStub();
       
}
struct xobject* t1_Dup ( ) [read]
char* t1_ErrorMsg ( )
struct xobject* t1_Permanent ( ) [read]
struct xobject* t1_Temporary ( ) [read]
struct xobject* t1_TypeErr ( ) [read]
struct xobject* t1_Unique ( ) [read]
void Trace0 ( )
char* Trace1 ( )
char * Trace2 ( )
char * Trace3 ( )
char * Trace4 ( )
char * Trace5 ( )
char * Trace6 ( )