|
|
1.1 ! root 1: /* Copyright (c) 1987 AT&T */ ! 2: /* All Rights Reserved */ ! 3: ! 4: /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */ ! 5: /* The copyright notice above does not evidence any */ ! 6: /* actual or intended publication of such source code. */ ! 7: ! 8: #include <sccsid.h> ! 9: HVERSION(5620, @(#)5620.h 1.1.1.9 (6/3/87)); ! 10: ! 11: extern Point add(); ! 12: extern Word *addr(); ! 13: extern char *alloc(); ! 14: extern Bitmap *balloc(); ! 15: extern Texture16 *cursswitch(); ! 16: extern Point div(); ! 17: extern Rectangle inset(); ! 18: extern Point jstring(); ! 19: extern Point mul(); ! 20: extern struct Proc *point2window(); ! 21: extern Rectangle raddp(); ! 22: extern Rectangle rsubp(); ! 23: extern Point string(); ! 24: extern Point sub(); ! 25: extern char *gcalloc(); ! 26: extern Rectangle newrect(); ! 27: extern Point transform(); ! 28: extern Rectangle rtransform(); ! 29: extern unsigned long realtime(); ! 30: extern Rectangle canon(); ! 31: extern char *itox(); ! 32: extern long version(); ! 33: extern short Iceil(); ! 34: extern short Ifloor(); ! 35: extern long Lsqrt(); ! 36: extern char *fgets(); ! 37: ! 38: #define floor Ifloor ! 39: #define ceil Iceil ! 40: #define sin Isin ! 41: #define cos Icos ! 42: #define atan2 Iatan2 ! 43: #define sqrt Lsqrt ! 44: #define defont mediumfont ! 45: #define texture16 texture ! 46: #undef Pt ! 47: #undef Rpt ! 48: #undef Rect ! 49: #define Pt fPt ! 50: #define Rpt fRpt ! 51: #define Rect fRect ! 52: extern Point fPt(); ! 53: extern Rectangle fRpt(); ! 54: extern Rectangle fRect(); ! 55: ! 56: extern Texture16 C_sweep; ! 57: extern Texture16 C_crosshair; ! 58: extern Texture16 C_confirm; ! 59: ! 60: /* Font properties from setup.h */ ! 61: #define CW 9 /* width of a character */ ! 62: #define NS 14 /* newline size; height of a character */ ! 63: #define CURSOR "_" /* By convention */ ! 64: ! 65: #define XMARGIN 3 /* inset from border */ ! 66: #define YMARGIN 3 ! 67: #define XCMAX ((XMAX-2*XMARGIN)/CW-1) ! 68: #define YCMAX ((YMAX-2*YMARGIN)/NS-3) ! 69: ! 70: /* ! 71: * Cast macros ! 72: */ ! 73: #define Cast(t, x) ((t (*)())Sys[x]) ! 74: #define IPoint(x) (*Cast(Point, x)) ! 75: #define IRectangle(x) (*Cast(Rectangle, x)) ! 76: #define Iint(x) (*Cast(int, x)) ! 77: #define Ilong(x) (*Cast(long, x)) ! 78: #define Ishort(x) (*Cast(short, x)) ! 79: #define IpBitmap(x) (*Cast(Bitmap *, x)) ! 80: #define IpTexture(x) (*Cast(Texture16 *, x)) ! 81: #define IpLayer(x) (*Cast(Layer *, x)) ! 82: #define IpWord(x) (*Cast(Word *, x)) ! 83: #define Ipchar(x) (*Cast(char *, x)) ! 84: #define Ivoid(x) (*Cast(void, x)) ! 85: #define IpProc(x) (*Cast(struct Proc *, x)) ! 86: #define P_Titem(x) Cast(struct Titem *, x) /* pointer to Titem struct */ ! 87: ! 88: #define outline(olr) box(&physical, olr, F_XOR) ! 89: #define getrect() newrect(3, Rect(0,0,0,0)) ! 90: #define point2layer() point2window(3) ! 91: ! 92: #define MPX
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.