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 Allocate(n, t, s)   t1_Allocate(n,t,s)
#define Free(obj)   t1_Free(obj)
#define NonObjectFree(a)   Xfree(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 MIN(a, b)   (((a)<(b)) ? a : b)
#define MAX(a, b)   (((a)>(b)) ? a : b)
#define 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 DumpPath(path)   t1_DumpPath(path)
#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 Xfree (void *)
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 ABS (   a)    (((a)>=0)?(a):-(a))

Definition at line 122 of file objects.h.

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

Definition at line 64 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 201 of file objects.h.

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

Definition at line 68 of file objects.h.

#define BEZIERTYPE   (2+ISPATHTYPE(ON))

Definition at line 156 of file objects.h.

#define CLUTTYPE   9

Definition at line 151 of file objects.h.

#define CONICTYPE   (1+ISPATHTYPE(ON))

Definition at line 155 of file objects.h.

#define Consume   t1_Consume

Definition at line 67 of file objects.h.

#define Copy (   obj)    t1_Copy(obj)

Definition at line 70 of file objects.h.

#define Destroy (   obj)    t1_Destroy(obj)

Definition at line 45 of file objects.h.

#define DumpArea (   area)    t1_DumpArea(area)

Definition at line 306 of file objects.h.

#define DumpEdges (   e)    t1_DumpEdges(e)

Definition at line 310 of file objects.h.

#define DumpPath (   path)    t1_DumpPath(path)

Definition at line 308 of file objects.h.

#define DumpSpace (   space)    t1_DumpSpace(space)

Definition at line 309 of file objects.h.

#define DumpText (   text)    t1_DumpText(text)

Definition at line 307 of file objects.h.

#define Dup (   obj)    t1_Dup(obj)

Definition at line 46 of file objects.h.

#define EDGETYPE   7

Definition at line 149 of file objects.h.

#define ErrorMsg ( )    t1_ErrorMsg()

Definition at line 50 of file objects.h.

#define FALSE   0 /* handy zero value */

Definition at line 91 of file objects.h.

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

Definition at line 186 of file objects.h.

#define FONTTYPE   1

Definition at line 144 of file objects.h.

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

Definition at line 311 of file objects.h.

#define Free (   obj)    t1_Free(obj)

Definition at line 65 of file objects.h.

#define HINTTYPE   (3+ISPATHTYPE(ON))

Definition at line 157 of file objects.h.

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

Definition at line 238 of file objects.h.

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

Definition at line 240 of file objects.h.

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

Definition at line 242 of file objects.h.

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

Definition at line 244 of file objects.h.

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

Definition at line 246 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 248 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 250 of file objects.h.

#define INITIALIZED (   value)

Definition at line 264 of file objects.h.

#define InitImager ( )    t1_InitImager()

Definition at line 47 of file objects.h.

#define INVALIDTYPE   0

Definition at line 143 of file objects.h.

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

Definition at line 166 of file objects.h.

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

Definition at line 153 of file objects.h.

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

Definition at line 165 of file objects.h.

#define LINESTYLETYPE   6

Definition at line 148 of file objects.h.

#define LINETYPE   (0+ISPATHTYPE(ON))

Definition at line 154 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 177 of file objects.h.

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

Definition at line 228 of file objects.h.

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

Definition at line 233 of file objects.h.

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

Definition at line 121 of file objects.h.

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

Definition at line 120 of file objects.h.

#define MOVETYPE   (5+ISPATHTYPE(ON))

Definition at line 159 of file objects.h.

#define NonObjectFree (   a)    Xfree(a)

Definition at line 66 of file objects.h.

#define NULL   0

Definition at line 98 of file objects.h.

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

Definition at line 89 of file objects.h.

#define Permanent (   obj)    t1_Permanent(obj)

Definition at line 43 of file objects.h.

#define PICTURETYPE   4

Definition at line 146 of file objects.h.

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

Definition at line 49 of file objects.h.

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

Definition at line 171 of file objects.h.

#define REGIONTYPE   3

Definition at line 145 of file objects.h.

#define SPACETYPE   5

Definition at line 147 of file objects.h.

#define STROKEPATHTYPE   8

Definition at line 150 of file objects.h.

#define Temporary (   obj)    t1_Temporary(obj)

Definition at line 44 of file objects.h.

#define TermImager ( )    t1_TermImager()

Definition at line 48 of file objects.h.

#define TEXTTYPE   (6+ISPATHTYPE(ON))

Definition at line 160 of file objects.h.

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

Definition at line 94 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 191 of file objects.h.

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

Definition at line 69 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 213 of file objects.h.

#define Unique (   obj)    t1_Unique(obj)

Definition at line 71 of file objects.h.

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

Definition at line 137 of file objects.h.


Function Documentation

char MustCheckArgs INITIALIZED ( TRUE  )
char MustTraceCalls INITIALIZED ( FALSE  )
short CRASTERCompressionType INITIALIZED ( )
char ConicDebug INITIALIZED ( )
short CachedChars INITIALIZED ( 0x7FFF  )
int CacheBLimit INITIALIZED ( 12500  )
char Continuity INITIALIZED ( )
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();
       
}

Here is the call graph for this function:

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 ( )
void Xfree ( void )

Definition at line 689 of file ps2pk.c.

{
       free(p);
}

Here is the caller graph for this function: