/* Generated with C2C (Cedar To C)*/
/* Copyright (C) 1993 by Xerox Corporation. All rights reserved. */
/* time: July 28, 1993 10:13:27 am PDT */
/* C2C version: April 20, 1993 (sun4) */
/* ref-counting: off */
/* file: CMYKCompatibilityImpl, module: CMYKCompatibilityImpl */
/* switches: bcfhklnouw */
#include <cedar/InstallationSupport.h>
#include <cedar/CedarExtra.h>
static char versionStamp[] = "@(#)mob←version [2072648782,437204734] CMYKCompatibilityImpl";
typedef unsigned word, *ptr;
typedef unsigned char byte, *bPt;
typedef unsigned short half, *hPt;
typedef word (*fPt)();
#define SOURCE(p, l) /* source p, l */
#define SGNCK(i) ((int) (word) (i) < 0 ? XR←RaiseArithmeticFault(): i )
static void NoName←Q120();
static void CMYKCompatibilityImpl←P0();
static word CreateColorOperatorOldCMYK←P60();
static struct {unsigned f; char r[16];} string1 = {917520, "\216\257\300\363\223\326\161\300\017\164\046\072\104\350\000"};
static struct {unsigned f; char r[4];} string2 = {65537, "\001\000\000"};
static struct {unsigned f; char r[20];} string3 = {1245204, "Xerox/Research/CMYK"};
static struct {unsigned f; char r[16];} string4 = {851984, "\257\300\173\212\034\116\300\032\017\066\376\100\164\000\000"};
static struct {unsigned f; char r[4];} string5 = {196611, "\004A\020"};
static struct {unsigned f; char r[16];} string6 = {851984, "\257\300\207\164\301\163\300\327\135\041\305\100\150\000\000"};
static struct {unsigned f; char r[16];} string7 = {851984, "\257\300ZT?\010\300\370;=;@h\000\000"};
static struct {unsigned f; char r[16];} string8 = {851984, "\257\300\246\205\220\035\300\344\000\142\023\100\150\000\000"};
static struct {
word f0[9]; word f9; word f10; word f11;
word f12[4];
} globalframe = {
{0}, (word) CreateColorOperatorOldCMYK←P60, 0, (word) CMYKCompatibilityImpl←P0,
{0}
};
static void NoName←Q120()
{
register ptr gf←c018 = (ptr) &globalframe;
word var←c8532;
(* (( (ptr) gf←c018)+6) ) = (word) XR←GetTypeIndex((word) &string1, 0, (word) &string2);
(* (ptr) (( (bPt) gf←c018)+32) ) = (word) XR←GetRefLiteral((* (( (ptr) gf←c018)+6) ), (word) &string3);
(void) XR←DeclareGlobalFrame((word) "CMYKCompatibilityImpl", &globalframe, (word) XR←GetTypeIndex((word) &string4, 0, (word) &string5)
, (word) (( (bPt) gf←c018)+44)/* var←c8340 */ );
var←c8532 = (word) XR←ImportInterface((word) "ImagerColorPrivate", (word) XR←GetTypeIndexS((word) (&string6)), 48);
(* (( (ptr) gf←c018)+13)/* var←c8372 */ ) = var←c8532;
(void) XR←ImportProcS(var←c8532, 67634434);
(void) XR←ImportProcS(var←c8532, 67633666);
(void) XR←ImportProcS(var←c8532, 68955143);
var←c8532 = (word) XR←ImportInterface((word) "ImagerColor", (word) XR←GetTypeIndexS((word) (&string7)), 32);
(* (( (ptr) gf←c018)+15)/* var←c8500 */ ) = var←c8532;
(void) XR←ImportProcS(var←c8532, 67378945);
var←c8532 = (word) XR←ImportInterface((word) "Real", (word) XR←GetTypeIndexS((word) (&string8)), 11);
(* (( (ptr) gf←c018)+14)/* var←c8468 */ ) = var←c8532;
(void) XR←ImportProcS(var←c8532, 67371521);
}
static void CMYKCompatibilityImpl←P0(formal←c011, formal←c010)
word formal←c011;
word formal←c010;
{
register ptr gf←c8564 = (ptr) &globalframe;
/* CMYKCompatibilityImpl: */
SOURCE(52, 630)
SOURCE(144, 274)
{
word pd9;
pd9 = (* (( (ptr) (* (( (ptr) gf←c8564)+13)/* var←c8372 */ ))+48) );
(* (( (ptr) gf←c8564)+4)/* researchCMYKLinear←v2552 */ ) = (word) ( *( (fPt) ((* (ptr) pd9 ))))((* (( (ptr) gf←c8564)+8)
), (word) (( (bPt) gf←c8564)+36)/* var←c8308 */ , 0, 0, 0, 0
, 0, pd9);
};
}
static word CreateColorOperatorOldCMYK←P60(class←v7456, structure←v7484)
word class←v7456;
word structure←v7484;
{
register ptr gf←c8596 = (ptr) &globalframe;
word var←c7528;
word consistencyTest←v2628;
word maxIn←v2656;
/* CreateColorOperatorOldCMYK: */
SOURCE(421, 261)
SOURCE(496, 66)
{
word pd10;
pd10 = (* (( (ptr) (* (( (ptr) gf←c8596)+13)/* var←c8372 */ ))+6) );
consistencyTest←v2628 = (word) ( *( (fPt) ((* (ptr) pd10 ))))(structure←v7484, 1, pd10);
};
SOURCE(564, 55)
{
word pd11;
pd11 = (* (( (ptr) (* (( (ptr) gf←c8596)+13)/* var←c8372 */ ))+9) );
maxIn←v2656 = (word) ( *( (fPt) ((* (ptr) pd11 ))))(structure←v7484, 0, pd11);
};
SOURCE(621, 61)
{
word var←c8436;
{
word pd12;
word idx13;
pd12 = (* (( (ptr) (* (( (ptr) gf←c8596)+14)/* var←c8468 */ ))+6) );
var←c8436 = (
idx13 = (word) ( *( (fPt) ((* (ptr) pd12 ))))(maxIn←v2656, pd12),
SGNCK(idx13)
);
};
{
word pd14;
pd14 = (* (( (ptr) (* (( (ptr) gf←c8596)+15)/* var←c8500 */ ))+35) );
return((word) ( *( (fPt) ((* (ptr) pd14 ))))(var←c8436, pd14));
};
};
}
/* file: CMYKCompatibilityImpl, module: CMYKCompatibilityImpl, compiled at: July 28, 1993 10:13:27 am PDT */
extern void XR←install←CMYKCompatibilityImpl() {
NoName←Q120();
}
extern void XR←run←CMYKCompatibilityImpl() { XR←Start(&globalframe); }