Annotation of researchv10dc/630/include/mpx.h, revision 1.1.1.1

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(mpx, @(#)mpx.h        1.1.1.11        (5/12/87));
                     10: 
                     11: #ifndef        MPX_H
                     12: #define        MPX_H   MPX_H
                     13: 
                     14: #ifndef        LAYER_H
                     15: #include <layer.h>
                     16: #endif
                     17: 
                     18: #ifndef        PROC_H
                     19: #include <dmdproc.h>
                     20: #endif
                     21: 
                     22: 
                     23: 
                     24: /***** START of globals ******/
                     25: extern long _addrSys;
                     26: typedef int (*ptr_fint)();
                     27: #define Sys            ((ptr_fint *)_addrSys)
                     28: #define I_Ref(t,i)     (*(t *)(Sys[i]))
                     29: #define P_Array(t,i)   ((t *)(Sys[i]))
                     30: #define D_Ref(t,i)     (*(t *)&(Sys[i]))
                     31: #define DP_Ref(t,i)    ((t *)&(Sys[i]))
                     32: #define DD_Ref(t,o,i)  (((t *)&Sys[i])[o])
                     33: 
                     34: 
                     35: /* PTR ENTRIES */
                     36: 
                     37: #define        B_cap           I_Ref(struct Bitmap, 2)
                     38: #define        B_checkmark     I_Ref(struct Bitmap, 3)
                     39: #define        B_down          I_Ref(struct Bitmap, 4)
                     40: #define        B_h1            I_Ref(struct Bitmap, 5)
                     41: #define        B_h2            I_Ref(struct Bitmap, 6)
                     42: #define        B_insert        I_Ref(struct Bitmap, 7)
                     43: #define        B_local         I_Ref(struct Bitmap, 8)
                     44: #define        B_mux           I_Ref(struct Bitmap, 9)
                     45: #define        B_print         I_Ref(struct Bitmap, 10)
                     46: #define        B_rtarrow       I_Ref(struct Bitmap, 11)
                     47: #define        B_scroll        I_Ref(struct Bitmap, 12)
                     48: #define        B_up            I_Ref(struct Bitmap, 15)
                     49: #define        C_arrows        I_Ref(struct Texture16, 17)
                     50: #define        C_insert        I_Ref(struct Texture16, 20)
                     51: #define        C_cup           I_Ref(struct Texture16, 36)
                     52: #define        C_deadmouse     I_Ref(struct Texture16, 37)
                     53: #define        C_skull         I_Ref(struct Texture16, 38)
                     54: #define        C_target        I_Ref(struct Texture16, 39)
                     55: #define        T_background    I_Ref(struct Texture16, 72)
                     56: #define        T_black         I_Ref(struct Texture16, 73)
                     57: #define        T_checks        I_Ref(struct Texture16, 74)
                     58: #define        T_grey          I_Ref(struct Texture16, 75)
                     59: #define        T_grey2         I_Ref(struct Texture16, 76)
                     60: #define        T_white         I_Ref(struct Texture16, 77)
                     61: #define        botbits         P_Array(int, 176)
                     62: #define        mediumfont      I_Ref(struct Font, 239)
                     63: #define        physical        I_Ref(struct Bitmap, 254)
                     64: #define        largefont       I_Ref(struct Font, 412)
                     65: #define        smallfont       I_Ref(struct Font, 687)
                     66: #define syscache        P_Array(struct Cache, 465)
                     67: #define        topbits         P_Array(int, 731)
                     68: #define        ver_int         I_Ref(long, 750)
                     69: #define        ver_str         P_Array(char, 751)
                     70: #define useritems      I_Ref(struct Titem1, 796)
                     71: 
                     72: /* BSS ENTRIES */
                     73: 
                     74: #define Msg_queue      D_Ref(struct msqid_ds *, -35)
                     75: #define P              D_Ref(struct Proc *, -38)
                     76: #define Brammax         D_Ref(char *, -73)
                     77: #define Brammin         D_Ref(char *, -74)
                     78: #define Rammax          D_Ref(char *, -76)
                     79: #define Rammin          D_Ref(char *, -123)
                     80: #define Rommax          D_Ref(char *, -124)
                     81: #define Rommin          D_Ref(char *, -125)
                     82: #define Wbufsize        D_Ref(int, -94)
                     83: #define alloclevel     D_Ref(long *, -47)
                     84: #define alloclimit     D_Ref(long *, -48)
                     85: #define debugger       D_Ref(struct Proc *, -119)
                     86: #define gclevel                D_Ref(long *, -54)
                     87: #define kbdid          D_Ref(int, -101)
                     88: #define kbdproc                D_Ref(struct Proc *, -57)
                     89: #define memendp                D_Ref(long *, -65)
                     90: #define memstartp      D_Ref(long *, -66)
                     91: #define prog_env_id     D_Ref(unsigned long, -139)
                     92: #define RealMouse      I_Ref(struct Mouse, 479)
                     93: /**** END of globals ******/
                     94: 
                     95: 
                     96: 
                     97: #define Jdisplayp      (P->uJdisplayp)
                     98: #define        Drect           (P->uDrect)
                     99: #define mouse          (P->umouse)
                    100: #define PtCurrent      (P->curpt)
                    101: #define        display         (*Jdisplayp)
                    102: 
                    103: #define button(i)      (clipbttn() & (8 >> i))
                    104: #define button1()      (clipbttn() & 4)
                    105: #define button2()      (clipbttn() & 2)
                    106: #define button3()      (clipbttn() & 1)
                    107: #define button12()     (clipbttn() & 6)
                    108: #define button13()     (clipbttn() & 5)
                    109: #define button23()     (clipbttn() & 3)
                    110: #define button123()    (clipbttn() & 7)
                    111: 
                    112: /* list of functions returning structures already declared */
                    113: Word *         addr();
                    114: Bitmap *       balloc();
                    115: Rectangle      canon();
                    116: Texture16 *    cursswitch();
                    117: Texture16 *    Cursswitch();
                    118: Point          fPt();
                    119: Rectangle      fRpt();
                    120: Rectangle      fRect();
                    121: Rectangle      inset();
                    122: Point          jstring();
                    123: Point          sPtCurrent();
                    124: Rectangle      newrect();
                    125: struct Proc *  peel();
                    126: Point          add();
                    127: Point          sub();
                    128: Point          mul();
                    129: Point          div();
                    130: Rectangle      raddp();
                    131: Rectangle      rsubp();
                    132: Point          string();
                    133: Point          transform();
                    134: Rectangle      rtransform();
                    135: 
                    136: /* globals in libraries */
                    137: extern Texture16 T_lightgrey;
                    138: extern Texture16 T_darkgrey;
                    139: 
                    140: /* the following are needed for attach */
                    141: #define LOG_HOST1      0
                    142: #define LOG_HOST2      1
                    143: 
                    144: /* undocumented (but needed) variables, pandora.h */
                    145: 
                    146: #ifdef lastkbdid
                    147: #undef lastkbdid
                    148: /* last time keyboard id was received */
                    149: #define lastkbdid       D_Ref(long, -61)
                    150: #endif
                    151: 
                    152: #endif /* MPX_H */

unix.superglobalmegacorp.com

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