home *** CD-ROM | disk | FTP | other *** search
- /* ./sym/line.c generated from line.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "line.psw"
- #line 10 "./sym/line.c"
- void doLine(float x, float y)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjReal obj6;
- DPSBinObjReal obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 10, 84,
- {DPS_LITERAL|DPS_INT, 0, 0, 5},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 111}, /* newpath */
- {DPS_LITERAL|DPS_INT, 0, 0, 200},
- {DPS_LITERAL|DPS_INT, 0, 0, 10},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
- }; /* _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 = x;
- _dpsP[7].val.realVal = y;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,84);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 7 "line.psw"
-
-
-