This is Borders.c in view mode; [Download] [Up]
/* Borders.c generated from Borders.psw by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989 */ #include <dpsclient/dpsfriends.h> #include <string.h> #line 1 "Borders.psw" #line 10 "Borders.c" void drawBlackBorder(float width, float height, float widthLessTwo, float heightLessOne) { typedef struct { unsigned char tokenType; unsigned char topLevelCount; unsigned short nBytes; DPSBinObjReal obj0; DPSBinObjGeneric obj1; DPSBinObjReal obj2; DPSBinObjGeneric obj3; DPSBinObjGeneric obj4; DPSBinObjGeneric obj5; DPSBinObjReal obj6; DPSBinObjReal obj7; DPSBinObjGeneric obj8; DPSBinObjReal obj9; DPSBinObjGeneric obj10; DPSBinObjReal obj11; DPSBinObjGeneric obj12; DPSBinObjReal obj13; DPSBinObjGeneric obj14; DPSBinObjGeneric obj15; DPSBinObjGeneric obj16; DPSBinObjGeneric obj17; DPSBinObjReal obj18; DPSBinObjGeneric obj19; DPSBinObjGeneric obj20; DPSBinObjReal obj21; DPSBinObjReal obj22; DPSBinObjGeneric obj23; DPSBinObjGeneric obj24; DPSBinObjReal obj25; DPSBinObjGeneric obj26; DPSBinObjGeneric obj27; DPSBinObjGeneric obj28; DPSBinObjGeneric obj29; DPSBinObjGeneric obj30; DPSBinObjGeneric obj31; char obj32[8]; } _dpsQ; static const _dpsQ _dpsStat = { DPS_DEF_TOKENTYPE, 32, 268, {DPS_LITERAL|DPS_REAL, 0, 0, 1.0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */ {DPS_LITERAL|DPS_REAL, 0, 0, 0.0}, {DPS_EXEC|DPS_NAME, 0, 8, 256}, /* setalpha */ {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_LITERAL|DPS_INT, 0, 0, 0}, {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: width */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: height */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 128}, /* rectfill */ {DPS_LITERAL|DPS_REAL, 0, 0, 0.0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */ {DPS_LITERAL|DPS_REAL, 0, 0, 1.0}, {DPS_EXEC|DPS_NAME, 0, 8, 256}, /* setalpha */ {DPS_LITERAL|DPS_REAL, 0, 0, 2.0}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */ {DPS_LITERAL|DPS_INT, 0, 0, 3}, {DPS_LITERAL|DPS_INT, 0, 0, 3}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: widthLessTwo */ {DPS_LITERAL|DPS_INT, 0, 0, 3}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: widthLessTwo */ {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: heightLessOne */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */ {DPS_LITERAL|DPS_INT, 0, 0, 3}, {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: heightLessOne */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */ {DPS_LITERAL|DPS_INT, 0, 0, 3}, {DPS_LITERAL|DPS_INT, 0, 0, 3}, {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 22}, /* closepath */ {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */ {'s','e','t','a','l','p','h','a'}, }; /* _dpsQ */ _dpsQ _dpsF; /* local copy */ register DPSContext _dpsCurCtxt = DPSPrivCurrentContext(); char pad[3]; register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0; _dpsF = _dpsStat; /* assign automatic variable */ _dpsP[6].val.realVal = width; _dpsP[7].val.realVal = height; _dpsP[18].val.realVal = _dpsP[21].val.realVal = widthLessTwo; _dpsP[22].val.realVal = _dpsP[25].val.realVal = heightLessOne; DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,268); if (0) *pad = 0; /* quiets compiler warnings */ } #line 18 "Borders.psw"
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.