1: /*
   2:  *  Interpress utilities
   3:  *
   4:  * Copyright (c) 1984, 1985 Xerox Corp.
   5:  *
   6:  *  Written for Xerox Corporation by William LeFebvre
   7:  *  24-May-1984
   8:  *
   9:  */
  10: 
  11: /*  This header appears at the front of every Interpress file  */
  12: 
  13: # define  IP_Header "Interpress/Xerox/1.0 "
  14: 
  15: /* For convenience -- POINT is the size of a point in meters */
  16: # define    POINT   (0.00035278)
  17: 
  18: /*
  19:  *  Definitions pertaining to InterPress tokes:
  20:  */
  21: 
  22: # define    SHORT_OP    0200
  23: # define    LONG_OP     0240
  24: # define    SHORT_INTEGER   0000
  25: # define    SHORT_SEQUENCE  0300
  26: # define    LONG_SEQUENCE   0340
  27: 
  28: /* these help us cope with short integer tokens: */
  29: # define    INTEGER_ZERO    4000
  30: # define    INTEGER_MAX (32767 - INTEGER_ZERO)
  31: # define    INTEGER_MIN (0 - INTEGER_ZERO)
  32: 
  33: /* the long and short of sequences: */
  34: # define    SHORT_SEQUENCE_LIMIT    255     /* (8 bits) */
  35: # define    LONG_SEQUENCE_LIMIT 16777215    /* (24 bits) */
  36: 
  37: /* Sequence types: */
  38: # define    sequenceAdaptivePixelVector 12
  39: # define    sequenceAPV         sequenceAdaptivePixelVector
  40: # define    sequenceComment         6
  41: # define    sequenceCompressedPixelVector   10
  42: # define    sequenceCPV         sequenceCompressedPixelVector
  43: # define    sequenceContinued       7
  44: # define    sequenceIdentifier      5
  45: # define    sequenceInsertFile      11
  46: # define    sequenceInteger         2
  47: # define    sequenceLargeVector     8
  48: # define    sequencePackedPixelVector   9
  49: # define    sequencePPV         sequencePackedPixelVector
  50: # define    sequenceRational        4
  51: # define    sequenceString          1
  52: 
  53: /* imager variables: */
  54: # define    I_DCScpx            0
  55: # define    I_DCScpy            1
  56: # define    I_correctMX         2
  57: # define    I_correctMY         3
  58: # define    I_T             4
  59: # define    I_priorityImportant     5
  60: # define    I_mediumXSize           6
  61: # define    I_mediumYSize           7
  62: # define    I_fieldXMin         8
  63: # define    I_fieldYMin         9
  64: # define    I_fieldXMax         10
  65: # define    I_fieldYMax         11
  66: # define    I_showVec           12
  67: # define    I_color             13
  68: # define    I_noImage           14
  69: # define    I_strokeWidth           15
  70: # define    I_strokeEnd         16
  71: # define    I_underlineStart        17
  72: # define    I_amplifySpace          18
  73: # define    I_correctPass           19
  74: # define    I_correctShrink         20
  75: # define    I_correctTX         21
  76: # define    I_correctTY         22
  77: 
  78: /* operation codes: */
  79: # define    OP_nil              0
  80: # define    OP_nop              1
  81: 
  82: # define    OP_setxy            10
  83: # define    OP_setxyrel         11
  84: # define    OP_setxrel          12
  85: # define    OP_setyrel          13
  86: # define    OP_linetox          14
  87: # define    OP_linetoy          15
  88: # define    OP_space            16
  89: # define    OP_get              17
  90: # define    OP_iget             18
  91: # define    OP_iset             19
  92: # define    OP_fget             20
  93: # define    OP_fset             21
  94: # define    OP_show             22
  95: # define    OP_lineto           23
  96: # define    OP_maskstroke           24
  97: # define    OP_moveto           25
  98: 
  99: # define    SHORT_OP_LIMIT          31
 100: 
 101: # define    OP_metricMaster         100
 102: # define    OP_environmentMaster        101
 103: # define    OP_beginBlock           102
 104: # define    OP_endBlock         103
 105: # define    OP_noPages          104
 106: # define    OP_pageInstructions     105
 107: # define    OP_beginBody            106
 108: # define    OP_endBody          107
 109: 
 110: # define    OP_correct          110
 111: 
 112: # define    OP_makesimpleco         114
 113: # define    OP_makeco           115
 114: # define    OP_makecompiledimage        116
 115: 
 116: # define    OP_dosavesimplebody     120
 117: # define    OP_dobody           121
 118: # define    OP_dosavebody           122
 119: # define    OP_dosaveallbody        123
 120: 
 121: # define    OP_showandxrel          146
 122: # define    OP_findfont         147
 123: # define    OP_modifyfont           148
 124: # define    OP_finddecompressor     149
 125: # define    OP_findfontvec          150
 126: # define    OP_setfont          151
 127: 
 128: # define    OP_setcorrectmeasure        154
 129: # define    OP_setcorrecttollerance     155
 130: # define    OP_correctmask          156
 131: # define    OP_correctspace         157
 132: 
 133: # define    OP_getcp            159
 134: # define    OP_maket            160
 135: # define    OP_opent            161
 136: # define    OP_translate            162
 137: # define    OP_rotate           163
 138: # define    OP_scale            164
 139: # define    OP_concat           165
 140: # define    OP_scale2           166
 141: # define    OP_invert           167
 142: # define    OP_concatt          168
 143: # define    OP_move             169
 144: # define    OP_trans            170
 145: 
 146: # define    OP_transform            174
 147: # define    OP_transformvewc        175
 148: # define    OP_roundxy          176
 149: # define    OP_roundxyvec           177
 150: 
 151: # define    OP_pop              180
 152: # define    OP_dup              181
 153: 
 154: # define    OP_copy             183
 155: # define    OP_roll             184
 156: # define    OP_exch             185
 157: # define    OP_mark             186
 158: # define    OP_unmark           187
 159: # define    OP_count            188
 160: 
 161: # define    OP_unmark0          192
 162: 
 163: # define    OP_abs              200
 164: # define    OP_add              201
 165: # define    OP_and              202
 166: # define    OP_ceiling          203
 167: # define    OP_div              204
 168: # define    OP_eq               205
 169: # define    OP_floor            206
 170: # define    OP_ge               207
 171: # define    OP_gt               208
 172: # define    OP_mod              209
 173: # define    OP_mul              210
 174: # define    OP_neg              211
 175: # define    OP_not              212
 176: # define    OP_or               213
 177: # define    OP_sub              214
 178: # define    OP_trunc            215
 179: # define    OP_rem              216
 180: # define    OP_round            217
 181: # define    OP_eqn              218
 182: 
 183: # define    OP_type             220
 184: # define    OP_atan             221
 185: # define    OP_cos              222
 186: # define    OP_exp              223
 187: # define    OP_log              224
 188: # define    OP_sin              225
 189: # define    OP_sqrt             226
 190: # define    OP_max              227
 191: # define    OP_min              228
 192: 
 193: # define    OP_do               231
 194: # define    OP_dosave           232
 195: # define    OP_dosaveall            233
 196: 
 197: # define    OP_if               239
 198: # define    OP_ifcopy           240
 199: # define    OP_ifelse           241
 200: # define    OP_loop             242
 201: 
 202: # define    OP_frame            250
 203: 
 204: # define    OP_poolop           253
 205: # define    OP_pool             254
 206: # define    OP_pget             255
 207: # define    OP_pset             256
 208: # define    OP_makepool         257
 209: # define    OP_nopool           258
 210: 
 211: # define    OP_env              260
 212: 
 213: # define    OP_makeveclu            282
 214: # define    OP_makevec          283
 215: 
 216: # define    OP_shape            285
 217: # define    OP_openvec          286
 218: 
 219: # define    OP_getprop          287
 220: # define    OP_getp             288
 221: # define    OP_mergeprop            289
 222: 
 223: # define    OP_dround           300
 224: # define    OP_getcprounded         301
 225: 
 226: # define    OP_curveto          402
 227: # define    OP_arcto            403
 228: # define    OP_conicto          404
 229: 
 230: # define    OP_maskfill         409
 231: # define    OP_maskrectangle        410
 232: # define    OP_masktrapezoidx       411
 233: # define    OP_masktrapezoidy       412
 234: # define    OP_startunderline       413
 235: # define    OP_maskunderline        414
 236: 
 237: # define    OP_makeoutline          417
 238: # define    OP_clipoutline          418
 239: # define    OP_cliprectangle        419
 240: 
 241: # define    OP_findcoloroperator        421
 242: # define    OP_findcolormodeloperator   422
 243: # define    OP_findcolor            423
 244: # define    OP_setgray          424
 245: # define    OP_makegray         425
 246: # define    OP_makesampledblack     426
 247: # define    OP_makesampledcolor     427
 248: 
 249: # define    OP_maskstrokeclosed     440
 250: # define    OP_maskvector           441
 251: 
 252: # define    OP_makepixelarray       450
 253: 
 254: # define    OP_extractpixelarray        451
 255: 
 256: # define    OP_maskpixel            452
 257: 
 258: # define    OP_LIMIT            OP_maskpixel

Defined macros

INTEGER_MAX defined in line 30; never used
INTEGER_MIN defined in line 31; never used
INTEGER_ZERO defined in line 29; used 2 times
IP_Header defined in line 13; never used
I_DCScpx defined in line 54; never used
I_DCScpy defined in line 55; never used
I_T defined in line 58; never used
I_amplifySpace defined in line 72; never used
I_color defined in line 67; never used
I_correctMX defined in line 56; never used
I_correctMY defined in line 57; never used
I_correctPass defined in line 73; never used
I_correctShrink defined in line 74; never used
I_correctTX defined in line 75; never used
I_correctTY defined in line 76; never used
I_fieldXMax defined in line 64; never used
I_fieldXMin defined in line 62; never used
I_fieldYMax defined in line 65; never used
I_fieldYMin defined in line 63; never used
I_mediumXSize defined in line 60; never used
I_mediumYSize defined in line 61; never used
I_noImage defined in line 68; never used
I_priorityImportant defined in line 59; never used
I_showVec defined in line 66; never used
I_strokeEnd defined in line 70; never used
I_strokeWidth defined in line 69; never used
I_underlineStart defined in line 71; never used
LONG_OP defined in line 23; never used
LONG_SEQUENCE defined in line 26; never used
LONG_SEQUENCE_LIMIT defined in line 35; never used
OP_LIMIT defined in line 258; never used
OP_abs defined in line 163; never used
OP_add defined in line 164; never used
OP_and defined in line 165; never used
OP_arcto defined in line 227; never used
OP_atan defined in line 184; never used
OP_beginBlock defined in line 103; never used
OP_beginBody defined in line 107; never used
OP_ceiling defined in line 166; never used
OP_clipoutline defined in line 238; never used
OP_cliprectangle defined in line 239; never used
OP_concat defined in line 139; never used
OP_concatt defined in line 142; never used
OP_conicto defined in line 228; never used
OP_copy defined in line 154; never used
OP_correct defined in line 110; never used
OP_correctmask defined in line 130; never used
OP_correctspace defined in line 131; never used
OP_cos defined in line 185; never used
OP_count defined in line 159; never used
OP_curveto defined in line 226; never used
OP_div defined in line 167; never used
OP_do defined in line 193; never used
OP_dobody defined in line 117; never used
OP_dosave defined in line 194; never used
OP_dosaveall defined in line 195; never used
OP_dosaveallbody defined in line 119; never used
OP_dosavebody defined in line 118; never used
OP_dosavesimplebody defined in line 116; never used
OP_dround defined in line 223; never used
OP_dup defined in line 152; never used
OP_endBlock defined in line 104; never used
OP_endBody defined in line 108; never used
OP_env defined in line 211; never used
OP_environmentMaster defined in line 102; never used
OP_eq defined in line 168; never used
OP_eqn defined in line 181; never used
OP_exch defined in line 156; never used
OP_exp defined in line 186; never used
OP_extractpixelarray defined in line 254; never used
OP_fget defined in line 92; never used
OP_findcolor defined in line 243; never used
OP_findcolormodeloperator defined in line 242; never used
OP_findcoloroperator defined in line 241; never used
OP_finddecompressor defined in line 124; never used
OP_findfont defined in line 122; never used
OP_findfontvec defined in line 125; never used
OP_floor defined in line 169; never used
OP_frame defined in line 202; never used
OP_fset defined in line 93; never used
OP_ge defined in line 170; never used
OP_get defined in line 89; never used
OP_getcp defined in line 133; never used
OP_getcprounded defined in line 224; never used
OP_getp defined in line 220; never used
OP_getprop defined in line 219; never used
OP_gt defined in line 171; never used
OP_if defined in line 197; never used
OP_ifcopy defined in line 198; never used
OP_ifelse defined in line 199; never used
OP_iget defined in line 90; never used
OP_invert defined in line 141; never used
OP_iset defined in line 91; never used
OP_lineto defined in line 95; never used
OP_linetox defined in line 86; never used
OP_linetoy defined in line 87; never used
OP_log defined in line 187; never used
OP_loop defined in line 200; never used
OP_makeco defined in line 113; never used
OP_makecompiledimage defined in line 114; never used
OP_makegray defined in line 245; never used
OP_makeoutline defined in line 237; never used
OP_makepixelarray defined in line 252; never used
OP_makepool defined in line 208; never used
OP_makesampledblack defined in line 246; never used
OP_makesampledcolor defined in line 247; never used
OP_makesimpleco defined in line 112; never used
OP_maket defined in line 134; never used
OP_makevec defined in line 214; never used
OP_makeveclu defined in line 213; never used
OP_mark defined in line 157; never used
OP_maskfill defined in line 230; never used
OP_maskpixel defined in line 256; used 1 times
OP_maskrectangle defined in line 231; never used
OP_maskstroke defined in line 96; never used
OP_maskstrokeclosed defined in line 249; never used
OP_masktrapezoidx defined in line 232; never used
OP_masktrapezoidy defined in line 233; never used
OP_maskunderline defined in line 235; never used
OP_maskvector defined in line 250; never used
OP_max defined in line 190; never used
OP_mergeprop defined in line 221; never used
OP_metricMaster defined in line 101; never used
OP_min defined in line 191; never used
OP_mod defined in line 172; never used
OP_modifyfont defined in line 123; never used
OP_move defined in line 143; never used
OP_moveto defined in line 97; never used
OP_mul defined in line 173; never used
OP_neg defined in line 174; never used
OP_nil defined in line 79; never used
OP_noPages defined in line 105; never used
OP_nop defined in line 80; never used
OP_nopool defined in line 209; never used
OP_not defined in line 175; never used
OP_opent defined in line 135; never used
OP_openvec defined in line 217; never used
OP_or defined in line 176; never used
OP_pageInstructions defined in line 106; never used
OP_pget defined in line 206; never used
OP_pool defined in line 205; never used
OP_poolop defined in line 204; never used
OP_pop defined in line 151; never used
OP_pset defined in line 207; never used
OP_rem defined in line 179; never used
OP_roll defined in line 155; never used
OP_rotate defined in line 137; never used
OP_round defined in line 180; never used
OP_roundxy defined in line 148; never used
OP_roundxyvec defined in line 149; never used
OP_scale defined in line 138; never used
OP_scale2 defined in line 140; never used
OP_setcorrectmeasure defined in line 128; never used
OP_setcorrecttollerance defined in line 129; never used
OP_setfont defined in line 126; never used
OP_setgray defined in line 244; never used
OP_setxrel defined in line 84; never used
OP_setxy defined in line 82; never used
OP_setxyrel defined in line 83; never used
OP_setyrel defined in line 85; never used
OP_shape defined in line 216; never used
OP_show defined in line 94; never used
OP_showandxrel defined in line 121; never used
OP_sin defined in line 188; never used
OP_space defined in line 88; never used
OP_sqrt defined in line 189; never used
OP_startunderline defined in line 234; never used
OP_sub defined in line 177; never used
OP_trans defined in line 144; never used
OP_transform defined in line 146; never used
OP_transformvewc defined in line 147; never used
OP_translate defined in line 136; never used
OP_trunc defined in line 178; never used
OP_type defined in line 183; never used
OP_unmark defined in line 158; never used
OP_unmark0 defined in line 161; never used
POINT defined in line 16; never used
SHORT_INTEGER defined in line 24; never used
SHORT_OP defined in line 22; never used
SHORT_OP_LIMIT defined in line 99; never used
SHORT_SEQUENCE defined in line 25; never used
SHORT_SEQUENCE_LIMIT defined in line 34; never used
sequenceAPV defined in line 39; never used
sequenceAdaptivePixelVector defined in line 38; used 1 times
  • in line 39
sequenceCPV defined in line 42; never used
sequenceComment defined in line 40; never used
sequenceCompressedPixelVector defined in line 41; used 1 times
  • in line 42
sequenceContinued defined in line 43; never used
sequenceIdentifier defined in line 44; never used
sequenceInsertFile defined in line 45; never used
sequenceInteger defined in line 46; never used
sequenceLargeVector defined in line 47; never used
sequencePPV defined in line 49; never used
sequencePackedPixelVector defined in line 48; used 1 times
  • in line 49
sequenceRational defined in line 50; never used
sequenceString defined in line 51; never used
Last modified: 1986-01-25
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 589
Valid CSS Valid XHTML 1.0 Strict