home *** CD-ROM | disk | FTP | other *** search
- /* ./sym/tree.c generated from tree.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "tree.psw"
- #line 10 "./sym/tree.c"
- void doTree(float maxdepth, float leftBranch, float rightBranch, float branchLength, float moveRight, float scaleX, float scaleY, float lineWidth, float branchChange, float widthChange)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjReal obj15;
- DPSBinObjGeneric obj16;
- DPSBinObjGeneric obj17;
- DPSBinObjReal obj18;
- DPSBinObjReal obj19;
- DPSBinObjGeneric obj20;
- DPSBinObjGeneric obj21;
- DPSBinObjReal obj22;
- DPSBinObjGeneric obj23;
- DPSBinObjGeneric obj24;
- DPSBinObjGeneric obj25;
- DPSBinObjGeneric obj26;
- DPSBinObjReal obj27;
- DPSBinObjReal obj28;
- DPSBinObjGeneric obj29;
- DPSBinObjReal obj30;
- DPSBinObjGeneric obj31;
- DPSBinObjGeneric obj32;
- DPSBinObjGeneric obj33;
- DPSBinObjGeneric obj34;
- DPSBinObjReal obj35;
- DPSBinObjGeneric obj36;
- DPSBinObjGeneric obj37;
- DPSBinObjGeneric obj38;
- DPSBinObjGeneric obj39;
- DPSBinObjGeneric obj40;
- DPSBinObjReal obj41;
- DPSBinObjGeneric obj42;
- DPSBinObjGeneric obj43;
- DPSBinObjGeneric obj44;
- DPSBinObjReal obj45;
- DPSBinObjGeneric obj46;
- DPSBinObjGeneric obj47;
- DPSBinObjGeneric obj48;
- DPSBinObjGeneric obj49;
- DPSBinObjReal obj50;
- DPSBinObjGeneric obj51;
- DPSBinObjGeneric obj52;
- DPSBinObjGeneric obj53;
- DPSBinObjGeneric obj54;
- DPSBinObjGeneric obj55;
- DPSBinObjGeneric obj56;
- DPSBinObjGeneric obj57;
- DPSBinObjGeneric obj58;
- DPSBinObjGeneric obj59;
- DPSBinObjGeneric obj60;
- DPSBinObjGeneric obj61;
- DPSBinObjGeneric obj62;
- DPSBinObjGeneric obj63;
- DPSBinObjGeneric obj64;
- DPSBinObjGeneric obj65;
- DPSBinObjGeneric obj66;
- DPSBinObjGeneric obj67;
- char obj68[5];
- char obj69[10];
- char obj70[2];
- char obj71[6];
- char obj72[4];
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 26, 575,
- {DPS_LITERAL|DPS_NAME, 0, 5, 544}, /* depth */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 4, 567}, /* down */
- {DPS_EXEC|DPS_ARRAY, 0, 5, 504},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 2, 559}, /* up */
- {DPS_EXEC|DPS_ARRAY, 0, 5, 464},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 6, 561}, /* doLine */
- {DPS_EXEC|DPS_ARRAY, 0, 9, 392},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 10, 549}, /* fractArrow */
- {DPS_EXEC|DPS_ARRAY, 0, 15, 208},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: moveRight */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: scaleX */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: scaleY */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139}, /* scale */
- {DPS_EXEC|DPS_NAME, 0, 10, 549}, /* fractArrow */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0.5},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 161}, /* showpage */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: branchChange */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: widthChange */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139}, /* scale */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: lineWidth */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */
- {DPS_EXEC|DPS_NAME, 0, 4, 567}, /* down */
- {DPS_EXEC|DPS_NAME, 0, 6, 561}, /* doLine */
- {DPS_EXEC|DPS_NAME, 0, 5, 544}, /* depth */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxdepth */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 97}, /* le */
- {DPS_EXEC|DPS_ARRAY, 0, 8, 328},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 84}, /* if */
- {DPS_EXEC|DPS_NAME, 0, 2, 559}, /* up */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: leftBranch */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136}, /* rotate */
- {DPS_EXEC|DPS_NAME, 0, 10, 549}, /* fractArrow */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: rightBranch */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136}, /* rotate */
- {DPS_EXEC|DPS_NAME, 0, 10, 549}, /* fractArrow */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: branchLength */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 133}, /* rlineto */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 40}, /* currentpoint */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173}, /* translate */
- {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_NAME, 0, 5, 544}, /* depth */
- {DPS_EXEC|DPS_NAME, 0, 5, 544}, /* depth */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 5, 544}, /* depth */
- {DPS_EXEC|DPS_NAME, 0, 5, 544}, /* depth */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {'d','e','p','t','h'},
- {'f','r','a','c','t','A','r','r','o','w'},
- {'u','p'},
- {'d','o','L','i','n','e'},
- {'d','o','w','n'},
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[35].val.realVal = maxdepth;
- _dpsP[41].val.realVal = leftBranch;
- _dpsP[45].val.realVal = rightBranch;
- _dpsP[50].val.realVal = branchLength;
- _dpsP[15].val.realVal = moveRight;
- _dpsP[18].val.realVal = scaleX;
- _dpsP[19].val.realVal = scaleY;
- _dpsP[30].val.realVal = lineWidth;
- _dpsP[27].val.realVal = branchChange;
- _dpsP[28].val.realVal = widthChange;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,575);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 25 "tree.psw"
-
-
-
-