home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / Cookbook / 07.PSWrap / sym / line.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-24  |  1.6 KB  |  55 lines

  1. /* ./sym/line.c generated from line.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "line.psw"
  9. #line 10 "./sym/line.c"
  10. void doLine(float x, float y)
  11. {
  12.   typedef struct {
  13.     unsigned char tokenType;
  14.     unsigned char topLevelCount;
  15.     unsigned short nBytes;
  16.  
  17.     DPSBinObjGeneric obj0;
  18.     DPSBinObjGeneric obj1;
  19.     DPSBinObjGeneric obj2;
  20.     DPSBinObjGeneric obj3;
  21.     DPSBinObjGeneric obj4;
  22.     DPSBinObjGeneric obj5;
  23.     DPSBinObjReal obj6;
  24.     DPSBinObjReal obj7;
  25.     DPSBinObjGeneric obj8;
  26.     DPSBinObjGeneric obj9;
  27.     } _dpsQ;
  28.   static const _dpsQ _dpsStat = {
  29.     DPS_DEF_TOKENTYPE, 10, 84,
  30.     {DPS_LITERAL|DPS_INT, 0, 0, 5},
  31.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155},    /* setlinewidth */
  32.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 111},    /* newpath */
  33.     {DPS_LITERAL|DPS_INT, 0, 0, 200},
  34.     {DPS_LITERAL|DPS_INT, 0, 0, 10},
  35.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  36.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: x */
  37.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: y */
  38.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99},    /* lineto */
  39.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167},    /* stroke */
  40.     }; /* _dpsQ */
  41.   _dpsQ _dpsF;    /* local copy  */
  42.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  43.   char pad[3];
  44.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  45.   _dpsF = _dpsStat;    /* assign automatic variable */
  46.  
  47.   _dpsP[6].val.realVal = x;
  48.   _dpsP[7].val.realVal = y;
  49.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,84);
  50.   if (0) *pad = 0;    /* quiets compiler warnings */
  51. }
  52. #line 7 "line.psw"
  53.  
  54.  
  55.