This is wraps.c in view mode; [Download] [Up]
/* wraps.c generated from wraps.psw by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989 */ #include <dpsclient/dpsfriends.h> #include <string.h> #line 1 "wraps.psw" #line 10 "wraps.c" void PSdostuff(const char *word, float x1, float y1, float x2, float y2, float x3, float y3, float red, float green, float blue) { typedef struct { unsigned char tokenType; unsigned char sizeFlag; unsigned short topLevelCount; unsigned long nBytes; DPSBinObjGeneric obj0; DPSBinObjGeneric obj1; DPSBinObjReal obj2; DPSBinObjReal obj3; DPSBinObjGeneric obj4; DPSBinObjGeneric obj5; DPSBinObjGeneric obj6; DPSBinObjGeneric obj7; DPSBinObjGeneric obj8; DPSBinObjReal obj9; DPSBinObjReal obj10; DPSBinObjGeneric obj11; DPSBinObjGeneric obj12; DPSBinObjGeneric obj13; DPSBinObjReal obj14; DPSBinObjReal obj15; DPSBinObjReal obj16; DPSBinObjGeneric obj17; DPSBinObjReal obj18; DPSBinObjReal obj19; DPSBinObjGeneric obj20; DPSBinObjGeneric obj21; DPSBinObjGeneric obj22; } _dpsQ; static const _dpsQ _dpsStat = { DPS_DEF_TOKENTYPE, 0, 23, 192, {DPS_LITERAL|DPS_INT, 0, 0, 1}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x1 */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y1 */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */ {DPS_LITERAL|DPS_STRING, 0, 0, 184}, /* param word */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x2 */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y2 */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */ {DPS_LITERAL|DPS_STRING, 0, 0, 184}, /* param word */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: red */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: green */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: blue */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 157}, /* setrgbcolor */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x3 */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y3 */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */ {DPS_LITERAL|DPS_STRING, 0, 0, 184}, /* param word */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */ }; /* _dpsQ */ _dpsQ _dpsF; /* local copy */ register DPSContext _dpsCurCtxt = DPSPrivCurrentContext(); char pad[3]; register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0; register int _dps_offset = 184; _dpsF = _dpsStat; /* assign automatic variable */ _dpsP[5].length = _dpsP[12].length = _dpsP[21].length = strlen(word); _dpsP[2].val.realVal = x1; _dpsP[3].val.realVal = y1; _dpsP[9].val.realVal = x2; _dpsP[10].val.realVal = y2; _dpsP[18].val.realVal = x3; _dpsP[19].val.realVal = y3; _dpsP[14].val.realVal = red; _dpsP[15].val.realVal = green; _dpsP[16].val.realVal = blue; _dpsP[21].val.stringVal = _dps_offset; _dps_offset += (_dpsP[21].length + 3) & ~3; _dpsP[12].val.stringVal = _dps_offset; _dps_offset += (_dpsP[12].length + 3) & ~3; _dpsP[5].val.stringVal = _dps_offset; _dps_offset += (_dpsP[5].length + 3) & ~3; _dpsF.nBytes = _dps_offset+8; DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,192); DPSWriteStringChars(_dpsCurCtxt, (char *)word, _dpsP[21].length); DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[21].length + 3) & 3); DPSWriteStringChars(_dpsCurCtxt, (char *)word, _dpsP[12].length); DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[12].length + 3) & 3); DPSWriteStringChars(_dpsCurCtxt, (char *)word, _dpsP[5].length); DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[5].length + 3) & 3); if (0) *pad = 0; /* quiets compiler warnings */ } #line 13 "wraps.psw" #line 107 "wraps.c" void PSdostuffnowhite(const char *word, float x1, float y1, float x2, float y2, float x3, float y3, float red, float green, float blue) { typedef struct { unsigned char tokenType; unsigned char sizeFlag; unsigned short topLevelCount; unsigned long nBytes; DPSBinObjGeneric obj0; DPSBinObjGeneric obj1; DPSBinObjReal obj2; DPSBinObjReal obj3; DPSBinObjGeneric obj4; DPSBinObjGeneric obj5; DPSBinObjGeneric obj6; DPSBinObjReal obj7; DPSBinObjReal obj8; DPSBinObjReal obj9; DPSBinObjGeneric obj10; DPSBinObjReal obj11; DPSBinObjReal obj12; DPSBinObjGeneric obj13; DPSBinObjGeneric obj14; DPSBinObjGeneric obj15; } _dpsQ; static const _dpsQ _dpsStat = { DPS_DEF_TOKENTYPE, 0, 16, 136, {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x2 */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y2 */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */ {DPS_LITERAL|DPS_STRING, 0, 0, 128}, /* param word */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: red */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: green */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: blue */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 157}, /* setrgbcolor */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x3 */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y3 */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */ {DPS_LITERAL|DPS_STRING, 0, 0, 128}, /* param word */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */ }; /* _dpsQ */ _dpsQ _dpsF; /* local copy */ register DPSContext _dpsCurCtxt = DPSPrivCurrentContext(); char pad[3]; register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0; register int _dps_offset = 128; _dpsF = _dpsStat; /* assign automatic variable */ _dpsP[5].length = _dpsP[14].length = strlen(word); _dpsP[2].val.realVal = x2; _dpsP[3].val.realVal = y2; _dpsP[11].val.realVal = x3; _dpsP[12].val.realVal = y3; _dpsP[7].val.realVal = red; _dpsP[8].val.realVal = green; _dpsP[9].val.realVal = blue; _dpsP[14].val.stringVal = _dps_offset; _dps_offset += (_dpsP[14].length + 3) & ~3; _dpsP[5].val.stringVal = _dps_offset; _dps_offset += (_dpsP[5].length + 3) & ~3; _dpsF.nBytes = _dps_offset+8; DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,136); DPSWriteStringChars(_dpsCurCtxt, (char *)word, _dpsP[14].length); DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[14].length + 3) & 3); DPSWriteStringChars(_dpsCurCtxt, (char *)word, _dpsP[5].length); DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[5].length + 3) & 3); if (0) *pad = 0; /* quiets compiler warnings */ } #line 22 "wraps.psw"
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.