1: /*
   2:  *  Interpress utilities
   3:  *
   4:  * Copyright (c) 1984, 1985 Xerox Corp.
   5:  *
   6:  *  Written for Xerox Corporation by William LeFebvre
   7:  *  31-May-1984
   8:  *
   9:  * History:
  10:  *	26-apr-85  ed flint	add macros to set standard imager variables
  11:  */
  12: 
  13: /*
  14:  *  Subroutines to help build interpress files:
  15:  *
  16:  *  operator interface level - these routines call routines at the literal
  17:  *			       interface level to provide an easy way to
  18:  *			       write operators along with their parameters.
  19:  */
  20: 
  21: /*
  22:  *  These routines are all deined with macros that call low level routines
  23:  *  found in operator.c.
  24:  */
  25: 
  26: # define    Abs(n)      op_n(OP_abs, n)
  27: # define    Add(n1,n2)      op_nn(OP_add, n1, n2)
  28: # define    And(i1,i2)      op_ii(OP_and, (long) i1, (long) i2)
  29: # define    Ceiling(n)      op_n(OP_ceiling, n)
  30: # define    Copy(i)     op_i(OP_copy, (long) i)
  31: # define    CorrectSpace(n1,n2) op_nn(OP_correctspace, n1, n2)
  32: # define    Div(n1,n2)      op_nn(OP_div, n1, n2)
  33: # ifdef anyop
  34: # define    Dup(a)      op_a(OP_dup, a)
  35: # define    Eq(a1,a2)       op_aa(OP_eq, a1, a2)
  36: # define    Exch(a1,a2)     op_aa(OP_exch, a1, a2)
  37: # endif
  38: # define    Fget(i)     op_i(OP_fget, (long) i)
  39: # define    Floor(n)        op_n(OP_floor, n)
  40: # ifdef anyop
  41: # define    Fset(a,i)       op_ai(OP_fset, a, (long) i)
  42: # endif
  43: # define    Ge(n1,n2)       op_nn(OP_ge, n1, n2)
  44: # define    Get(n)      op_n(OP_get, n)
  45: # define    Gt(n1,n2)       op_nn(OP_gt, n1, n2)
  46: # define    Iget(i)     op_i(OP_iget, (long) i)
  47: # ifdef anyop
  48: # define    Iset(a,i)       op_ai(OP_iset, a, (long) i)
  49: # endif
  50: # define    Lineto(n1,n2)   op_nn(OP_lineto, n1, n2)
  51: # define    Linetox(n)      op_n(OP_linetox, n)
  52: # define    Linetoy(n)      op_n(OP_linetoy, n)
  53: # define    Makegray(n)     op_n(OP_makegray, n)
  54: # define    Makeoutline(i)  op_i(OP_makeoutline, (long) i)
  55: # define    Makesampledblack(i) op_i(OP_makesampledblack, (long) i)
  56: # define    Makevec(i)      op_i(OP_makevec, (long) i)
  57: # define    Makeveclu(i1,i2)    op_ii(OP_makeveclu, (long) i1, (long) i2)
  58: # define    Mark(i)     op_i(OP_mark, (long) i)
  59: # define    Maskrectangle(n1,n2,n3,n4)  op_nnnn(OP_maskrectangle,n1,n2,n3,n4)
  60: # define    Masktrapezoidx(n1,n2,n3,n4,n5,n6)   \
  61:         op_nnnnnn(OP_masktrapezoidx,n1,n2,n3,n4,n5,n6)
  62: # define    Masktrapezoidy(n1,n2,n3,n4,n5,n6) \
  63:         op_nnnnnn(OP_masktrapezoidy,n1,n2,n3,n4,n5,n6)
  64: # define    Maskunderline(n1,n2)    op_nn(OP_maskunderline, n1, n2)
  65: # define    Maskvector(n1,n2,n3,n4) op_nnnn(OP_maskvector,n1,n2,n3,n4)
  66: # define    Mod(n1,n2)      op_nn(OP_mod, n1, n2)
  67: # define    Moveto(n1,n2)   op_nn(OP_moveto, n1, n2)
  68: # define    Mul(n1,n2)      op_nn(OP_mul, n1, n2)
  69: # define    Neg(n)      op_n(OP_neg, n)
  70: # define    Not(i)      op_i(OP_not, (long) i)
  71: # define    Or(i1,i2)       op_ii(OP_or, (long) i1, (long) i2)
  72: # ifdef anyop
  73: # define    Pop(a)      op_a(OP_pop, a)
  74: # endif
  75: # define    Rem(n1,n2)      op_nn(OP_rem, n1, n2)
  76: # define    Roll(i1,i2)     op_ii(OP_roll, (long) i1, (long) i2)
  77: # define    Rotate(n)       op_n(OP_rotate, n)
  78: # define    Round(n)        op_n(OP_round, n)
  79: # define    Scale(n)        op_n(OP_scale, n)
  80: # define    Scale2(n1,n2)   op_nn(OP_scale2, n1, n2)
  81: # define    Setamplifyspace(n)  op_ni(OP_iset, n, (long) I_amplifySpace)
  82: # define    Setcorrectmeasure(n1,n2)    op_nn(OP_setcorrectmeasure, n1, n2)
  83: # define    Setcorrectpass(i)   op_ii(OP_iset, (long) i, (long) I_correctPass)
  84: # define    Setcorrectshrink(n) op_ni(OP_iset, n, (long) I_correctShrink)
  85: # define    Setcorrecttolerance(n1,n2)  op_nn(OP_setcorrecttolerance, n1, n2)
  86: # define    Setfont(i)      op_i(OP_setfont, (long) i)
  87: # define    Setgray(n)      op_n(OP_setgray, n)
  88: # define    Setnoimage(i)   op_ii(OP_iset, (long) i, (long) I_noImage)
  89: # define    Setpriorityimportant(i) op_ii(OP_iset, (long) i, (long) I_priorityImportant)
  90: # define    Setstrokeend(i) op_ii(OP_iset, (long) i, (long) I_strokeEnd)
  91: # define    Setstrokewidth(n)   op_ni(OP_iset, n, (long) I_strokeWidth)
  92: # define    Setunderlinestart(n)    op_ni(OP_iset, n, (long) I_underlineStart)
  93: # define    Setxrel(n)      op_n(OP_setxrel, n)
  94: # define    Setxy(n1,n2)    op_nn(OP_setxy, n1, n2)
  95: # define    Setxyrel(n1,n2) op_nn(OP_setxyrel, n1, n2)
  96: # define    Setyrel(n)      op_n(OP_setyrel, n)
  97: # define    Space(n)        op_n(OP_space, n)
  98: # define    Sub(n1,n2)      op_nn(OP_sub, n1, n2)
  99: # define    Translate(n1,n2)    op_nn(OP_translate, n1, n2)
 100: # define    Trunc(n)        op_n(OP_trunc, n)
 101: # ifdef anyop
 102: # define    Type(a)     op_a(OP_type, a)
 103: # endif
 104: # define    Unmark(i)       op_i(OP_unmark, (long) i)

Defined macros

Abs defined in line 26; never used
Add defined in line 27; never used
And defined in line 28; never used
Ceiling defined in line 29; never used
Copy defined in line 30; never used
CorrectSpace defined in line 31; never used
Div defined in line 32; never used
Dup defined in line 34; never used
Eq defined in line 35; never used
Exch defined in line 36; never used
Fget defined in line 38; never used
Floor defined in line 39; never used
Fset defined in line 41; never used
Ge defined in line 43; never used
Get defined in line 44; never used
Gt defined in line 45; never used
Iget defined in line 46; never used
Iset defined in line 48; never used
Lineto defined in line 50; never used
Linetox defined in line 51; never used
Linetoy defined in line 52; never used
Makegray defined in line 53; never used
Makeoutline defined in line 54; never used
Makesampledblack defined in line 55; never used
Makevec defined in line 56; never used
Makeveclu defined in line 57; never used
Mark defined in line 58; never used
Maskrectangle defined in line 59; never used
Masktrapezoidx defined in line 60; never used
Masktrapezoidy defined in line 62; never used
Maskunderline defined in line 64; never used
Maskvector defined in line 65; never used
Mod defined in line 66; never used
Moveto defined in line 67; never used
Mul defined in line 68; never used
Neg defined in line 69; never used
Not defined in line 70; never used
Or defined in line 71; never used
Pop defined in line 73; never used
Rem defined in line 75; never used
Roll defined in line 76; never used
Rotate defined in line 77; never used
Round defined in line 78; never used
Scale defined in line 79; never used
Scale2 defined in line 80; never used
Setamplifyspace defined in line 81; never used
Setcorrectmeasure defined in line 82; never used
Setcorrectpass defined in line 83; never used
Setcorrectshrink defined in line 84; never used
Setcorrecttolerance defined in line 85; never used
Setfont defined in line 86; never used
Setgray defined in line 87; never used
Setnoimage defined in line 88; never used
Setpriorityimportant defined in line 89; never used
Setstrokeend defined in line 90; never used
Setstrokewidth defined in line 91; never used
Setunderlinestart defined in line 92; never used
Setxrel defined in line 93; never used
Setxy defined in line 94; never used
Setxyrel defined in line 95; never used
Setyrel defined in line 96; never used
Space defined in line 97; never used
Sub defined in line 98; never used
Translate defined in line 99; never used
Trunc defined in line 100; never used
Type defined in line 102; never used
Unmark defined in line 104; never used
Last modified: 1986-01-25
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 621
Valid CSS Valid XHTML 1.0 Strict