ftp.nice.ch/pub/next/tools/screen/backspace/StarShip.NIHS.bs.tar.gz#/StarShipView.BackModule/sym/spaceFuncts.c

This is spaceFuncts.c in view mode; [Download] [Up]

/* ./sym/spaceFuncts.c generated from spaceFuncts.psw
   by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
 */

#include <dpsclient/dpsfriends.h>
#include <string.h>

#line 1 "spaceFuncts.psw"
#line 10 "./sym/spaceFuncts.c"
void loadSpaceProcedures( void )
{
  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;
    DPSBinObjGeneric obj15;
    DPSBinObjGeneric obj16;
    DPSBinObjGeneric obj17;
    DPSBinObjGeneric obj18;
    DPSBinObjGeneric obj19;
    DPSBinObjGeneric obj20;
    DPSBinObjGeneric obj21;
    DPSBinObjGeneric obj22;
    DPSBinObjGeneric obj23;
    DPSBinObjGeneric obj24;
    DPSBinObjGeneric obj25;
    char obj26[3];
    char obj27[3];
    } _dpsQ;
  static const _dpsQ _dpsF = {
    DPS_DEF_TOKENTYPE, 8, 218,
    {DPS_LITERAL|DPS_NAME, 0, 3, 211},	/* DSS */
    {DPS_EXEC|DPS_ARRAY, 0, 9, 136},
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 14},	/* bind */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},	/* def */
    {DPS_LITERAL|DPS_NAME, 0, 3, 208},	/* DSL */
    {DPS_EXEC|DPS_ARRAY, 0, 9, 64},
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 14},	/* bind */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},	/* def */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 157},	/* setrgbcolor */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 111},	/* newpath */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},	/* arc */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 22},	/* closepath */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},	/* fill */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 111},	/* newpath */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},	/* arc */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 22},	/* closepath */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},	/* fill */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155},	/* setlinewidth */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},	/* setgray */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},	/* moveto */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99},	/* lineto */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99},	/* lineto */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99},	/* lineto */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99},	/* lineto */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167},	/* stroke */
    {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155},	/* setlinewidth */
    {'D','S','L'},
    {'D','S','S'},
    }; /* _dpsQ */
  register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  char pad[3];
  DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,218);
  if (0) *pad = 0;    /* quiets compiler warnings */
}
#line 11 "spaceFuncts.psw"

#line 85 "./sym/spaceFuncts.c"
void PSscreenBorder(float x, float y, float w, float h, float y2, float linew, float color)
{
  typedef struct {
    unsigned char tokenType;
    unsigned char topLevelCount;
    unsigned short nBytes;

    DPSBinObjReal obj0;
    DPSBinObjReal obj1;
    DPSBinObjReal obj2;
    DPSBinObjReal obj3;
    DPSBinObjReal obj4;
    DPSBinObjReal obj5;
    DPSBinObjReal obj6;
    DPSBinObjReal obj7;
    DPSBinObjReal obj8;
    DPSBinObjReal obj9;
    DPSBinObjReal obj10;
    DPSBinObjReal obj11;
    DPSBinObjReal obj12;
    DPSBinObjGeneric obj13;
    char obj14[3];
    } _dpsQ;
  static const _dpsQ _dpsStat = {
    DPS_DEF_TOKENTYPE, 14, 119,
    {DPS_LITERAL|DPS_REAL, 0, 0, 0.0},
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: x */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: y2 */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: x */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: h */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: w */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: h */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: w */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: y */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: x */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: y */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: color */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: linew */
    {DPS_EXEC|DPS_NAME, 0, 3, 112},	/* DSS */
    {'D','S','S'},
    }; /* _dpsQ */
  _dpsQ _dpsF;	/* local copy  */
  register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  char pad[3];
  register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  _dpsF = _dpsStat;	/* assign automatic variable */

  _dpsP[1].val.realVal =
  _dpsP[3].val.realVal =
  _dpsP[9].val.realVal = x;
  _dpsP[8].val.realVal =
  _dpsP[10].val.realVal = y;
  _dpsP[5].val.realVal =
  _dpsP[7].val.realVal = w;
  _dpsP[4].val.realVal =
  _dpsP[6].val.realVal = h;
  _dpsP[2].val.realVal = y2;
  _dpsP[12].val.realVal = linew;
  _dpsP[11].val.realVal = color;
  DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,119);
  if (0) *pad = 0;    /* quiets compiler warnings */
}
#line 15 "spaceFuncts.psw"

#line 150 "./sym/spaceFuncts.c"
void PSscreenLights(float xleft, float xright, float y, float r, float g, float b)
{
  typedef struct {
    unsigned char tokenType;
    unsigned char topLevelCount;
    unsigned short nBytes;

    DPSBinObjReal obj0;
    DPSBinObjReal obj1;
    DPSBinObjReal obj2;
    DPSBinObjReal obj3;
    DPSBinObjReal obj4;
    DPSBinObjReal obj5;
    DPSBinObjReal obj6;
    DPSBinObjReal obj7;
    DPSBinObjReal obj8;
    DPSBinObjReal obj9;
    DPSBinObjReal obj10;
    DPSBinObjReal obj11;
    DPSBinObjReal obj12;
    DPSBinObjGeneric obj13;
    char obj14[3];
    } _dpsQ;
  static const _dpsQ _dpsStat = {
    DPS_DEF_TOKENTYPE, 14, 119,
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: xleft */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: y */
    {DPS_LITERAL|DPS_REAL, 0, 0, 2.0},
    {DPS_LITERAL|DPS_REAL, 0, 0, 0.0},
    {DPS_LITERAL|DPS_REAL, 0, 0, 360.0},
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: xright */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: y */
    {DPS_LITERAL|DPS_REAL, 0, 0, 2.0},
    {DPS_LITERAL|DPS_REAL, 0, 0, 0.0},
    {DPS_LITERAL|DPS_REAL, 0, 0, 360.0},
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: r */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: g */
    {DPS_LITERAL|DPS_REAL, 0, 0, 0},	/* param: b */
    {DPS_EXEC|DPS_NAME, 0, 3, 112},	/* DSL */
    {'D','S','L'},
    }; /* _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 = xleft;
  _dpsP[5].val.realVal = xright;
  _dpsP[1].val.realVal =
  _dpsP[6].val.realVal = y;
  _dpsP[10].val.realVal = r;
  _dpsP[11].val.realVal = g;
  _dpsP[12].val.realVal = b;
  DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,119);
  if (0) *pad = 0;    /* quiets compiler warnings */
}
#line 20 "spaceFuncts.psw"

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.