/* dps_raw.c generated from dps_raw.psw by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989 */ #include #include #include "dps_raw.h" #line 1 "dps_raw.psw" /* dps_raw.psw --- Copyright (C) 1999 GYVE Development Team Author: Masatake YAMATO This file is part of gtkDPS Library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General2 Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* TODO static */ /* Product */ #line 36 "dps_raw.c" void PSWProductStringLength(DPSContext ctxt, int *len) { typedef struct { unsigned char tokenType; unsigned char topLevelCount; unsigned short nBytes; DPSBinObjGeneric obj0; DPSBinObjGeneric obj1; DPSBinObjGeneric obj2; DPSBinObjGeneric obj3; DPSBinObjGeneric obj4; DPSBinObjGeneric obj5; DPSBinObjGeneric obj6; DPSBinObjGeneric obj7; } _dpsQ; static const _dpsQ _dpsStat = { DPS_DEF_TOKENTYPE, 8, 68, {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* product */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 98}, /* length */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_LITERAL|DPS_INT, 0, 0, 1}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 70}, /* flush */ }; /* _dpsQ */ _dpsQ _dpsF; /* local copy */ register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0; static int _dpsCodes[1] = {-1}; DPSResultsRec _dpsR[1]; static const DPSResultsRec _dpsRstat[] = { { dps_tInt, -1 }, }; _dpsR[0] = _dpsRstat[0]; _dpsR[0].value = (char *)len; { if (_dpsCodes[0] < 0) { static const char * const _dps_names[] = { "product"}; int *_dps_nameVals[1]; _dps_nameVals[0] = &_dpsCodes[0]; DPSMapNames(ctxt, 1, (char **) _dps_names, _dps_nameVals); } } _dpsF = _dpsStat; /* assign automatic variable */ _dpsP[0].val.nameVal = _dpsCodes[0]; DPSSetResultTable(ctxt, _dpsR, 1); DPSBinObjSeqWrite(ctxt,(char *) &_dpsF,68); DPSAwaitReturnValues(ctxt); } #line 28 "dps_raw.psw" #line 94 "dps_raw.c" void PSWProductString(DPSContext ctxt, char *productname) { typedef struct { unsigned char tokenType; unsigned char topLevelCount; unsigned short nBytes; DPSBinObjGeneric obj0; DPSBinObjGeneric obj1; DPSBinObjGeneric obj2; DPSBinObjGeneric obj3; DPSBinObjGeneric obj4; DPSBinObjGeneric obj5; DPSBinObjGeneric obj6; } _dpsQ; static const _dpsQ _dpsStat = { DPS_DEF_TOKENTYPE, 7, 60, {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* product */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_LITERAL|DPS_INT, 0, 0, 1}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 70}, /* flush */ }; /* _dpsQ */ _dpsQ _dpsF; /* local copy */ register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0; static int _dpsCodes[1] = {-1}; DPSResultsRec _dpsR[1]; static const DPSResultsRec _dpsRstat[] = { { dps_tChar, -1 }, }; _dpsR[0] = _dpsRstat[0]; _dpsR[0].count = -1; _dpsR[0].value = (char *)productname; { if (_dpsCodes[0] < 0) { static const char * const _dps_names[] = { "product"}; int *_dps_nameVals[1]; _dps_nameVals[0] = &_dpsCodes[0]; DPSMapNames(ctxt, 1, (char **) _dps_names, _dps_nameVals); } } _dpsF = _dpsStat; /* assign automatic variable */ _dpsP[0].val.nameVal = _dpsCodes[0]; DPSSetResultTable(ctxt, _dpsR, 1); DPSBinObjSeqWrite(ctxt,(char *) &_dpsF,60); DPSAwaitReturnValues(ctxt); } #line 32 "dps_raw.psw" /* Coord */ #line 153 "dps_raw.c" void PSWGetCoordtr(DPSContext ctxt, float ctm[], float invctm[], int *x_offset, int *y_offset) { typedef struct { unsigned char tokenType; unsigned char topLevelCount; unsigned short nBytes; DPSBinObjGeneric obj0; DPSBinObjGeneric obj1; DPSBinObjGeneric obj2; DPSBinObjGeneric obj3; DPSBinObjGeneric obj4; DPSBinObjGeneric obj5; DPSBinObjGeneric obj6; DPSBinObjGeneric obj7; DPSBinObjGeneric obj8; DPSBinObjGeneric obj9; DPSBinObjGeneric obj10; DPSBinObjGeneric obj11; DPSBinObjGeneric obj12; DPSBinObjGeneric obj13; DPSBinObjGeneric obj14; DPSBinObjGeneric obj15; DPSBinObjGeneric obj16; DPSBinObjGeneric obj17; } _dpsQ; static const _dpsQ _dpsStat = { DPS_DEF_TOKENTYPE, 18, 148, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 104}, /* matrix */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 39}, /* currentmatrix */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 104}, /* matrix */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 94}, /* invertmatrix */ {DPS_LITERAL|DPS_INT, 0, 0, 1}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* currentXoffset */ {DPS_LITERAL|DPS_INT, 0, 0, 3}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_LITERAL|DPS_INT, 0, 0, 2}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_LITERAL|DPS_INT, 0, 0, 4}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 70}, /* flush */ }; /* _dpsQ */ _dpsQ _dpsF; /* local copy */ register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0; static int _dpsCodes[1] = {-1}; DPSResultsRec _dpsR[4]; static const DPSResultsRec _dpsRstat[] = { { dps_tFloat }, { dps_tFloat }, { dps_tInt, -1 }, { dps_tInt, -1 }, }; _dpsR[0] = _dpsRstat[0]; _dpsR[0].count = 6; _dpsR[0].value = (char *)ctm; _dpsR[1] = _dpsRstat[1]; _dpsR[1].count = 6; _dpsR[1].value = (char *)invctm; _dpsR[2] = _dpsRstat[2]; _dpsR[2].value = (char *)x_offset; _dpsR[3] = _dpsRstat[3]; _dpsR[3].value = (char *)y_offset; { if (_dpsCodes[0] < 0) { static const char * const _dps_names[] = { "currentXoffset"}; int *_dps_nameVals[1]; _dps_nameVals[0] = &_dpsCodes[0]; DPSMapNames(ctxt, 1, (char **) _dps_names, _dps_nameVals); } } _dpsF = _dpsStat; /* assign automatic variable */ _dpsP[9].val.nameVal = _dpsCodes[0]; DPSSetResultTable(ctxt, _dpsR, 4); DPSBinObjSeqWrite(ctxt,(char *) &_dpsF,148); DPSAwaitReturnValues(ctxt); } #line 41 "dps_raw.psw"