Annotation of researchv10no/libplot/libpen/pen.h, revision 1.1.1.1

1.1       root        1: #include <stdio.h>
                      2: #include <math.h>
                      3: #include <sgtty.h>
                      4: #define UP 0
                      5: #define DOWN 1
                      6: #define QUANTUM 10
                      7: #define penUp()        {if(penstate==DOWN)fprintf(pltout,"PU "); penstate=UP;}
                      8: #define penDown()      {if(penstate==UP)fprintf(pltout,"PD ");penstate=DOWN;}
                      9: extern int penstate;
                     10: extern FILE *pltout, *pltin;
                     11: extern int res;
                     12: float theta();
                     13: extern struct penvir {
                     14:        float xmax, ymax;
                     15:        float xmin, ymin;
                     16:        float copyx, copyy;
                     17:        float p1x, p1y;
                     18:        float p2x, p2y;
                     19:        float charsz;
                     20:        float pslant;
                     21:        float scale;
                     22:        int pgap;
                     23:        int pentype;
                     24:        int pen;
                     25:        int brush;
                     26: } *e0, *e1, E[], *esave;
                     27: extern double DX, DY;
                     28: struct seg {
                     29:        int x, y, X, Y;
                     30:        char stat;
                     31: };
                     32: #define SCX(x) x*e1->scale
                     33: #define SCY(y) y*e1->scale
                     34: #define CH_RATIO       .67
                     35: float normx();
                     36: float normy();
                     37: #define RADIANS 57.3
                     38: int internal;
                     39: extern char *pens[];
                     40: extern int noscale;
                     41: #define CH_RATIO       .67

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.