home *** CD-ROM | disk | FTP | other *** search
- /* ./sym/drawcircle.c generated from drawcircle.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "drawcircle.psw"
- // wraps routine to draw a circle
- #line 11 "./sym/drawcircle.c"
- void drawcircle(float x, float y, float angle, float xScale, float yScale)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjReal obj5;
- DPSBinObjReal obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjReal obj15;
- DPSBinObjGeneric obj16;
- DPSBinObjGeneric obj17;
- DPSBinObjGeneric obj18;
- DPSBinObjGeneric obj19;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 20, 164,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173}, /* translate */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: angle */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136}, /* rotate */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: xScale */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: yScale */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139}, /* scale */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 5},
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: angle */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5}, /* arc */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = x;
- _dpsP[1].val.realVal = y;
- _dpsP[3].val.realVal =
- _dpsP[15].val.realVal = angle;
- _dpsP[5].val.realVal = xScale;
- _dpsP[6].val.realVal = yScale;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,164);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 17 "drawcircle.psw"
-
-