home *** CD-ROM | disk | FTP | other *** search
- /* ./sym/circle.c generated from circle.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "circle.psw"
- #line 10 "./sym/circle.c"
- void drawCircle(float radius, float shade)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjReal obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 11, 92,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 40}, /* currentpoint */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 111}, /* newpath */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: radius */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 360},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5}, /* arc */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: shade */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[3].val.realVal = radius;
- _dpsP[7].val.realVal = shade;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,92);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 10 "circle.psw"
-
-