DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T g

⟦a6488583e⟧ TextFile

    Length: 2874 (0xb3a)
    Types: TextFile
    Names: »globals.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« 
        └─⟦2109abc41⟧ 
            └─ ⟦this⟧ »./X.V10R4/libibm/libsrc/globals.c« 

TextFile

#ifndef lint
static char *rcsid_globals_c = "$Header: globals.c,v 10.2 86/12/17 18:06:15 swick Exp $";
#endif	lint
/* Copyright 1985 Massachusetts Institute of Technology */

/*
 * globals.c - Various global data
 *
 * 	global defintions for device dependent code
 *
 *  	Changes and additions by:
 *
 *		Scott Bates
 *		Brown University
 *		IRIS, Box 1946
 *     		Providence, RI 02912
 *
 *
 *		Copyright (c) 1986 Brown University
 *
 * Permission to use, copy, modify and distribute this software and its
 * documentation for any purpose and without fee is hereby granted, provided
 * that the above copyright notice appear in all copies, and that both
 * that copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Brown University not be used in
 * advertising or publicity pertaining to distribution of the software
 * without specific, written prior permission. Brown University makes no
 * representations about the suitability of this software for any purpose.
 * It is provided "as-is" without express or implied warranty.
 */

#include "private.h"

/*
 * Foreground/background function map
 */

char FBMap[] = {
	0x00, 0x00, 0x00, 0x00, 0x05, 0x05, 0x05, 0x05,
        0x0A, 0x0A, 0x0A, 0x0A, 0x0F, 0x0F, 0x0F, 0x0F,

        0x00, 0x04, 0x08, 0x0C, 0x01, 0x05, 0x09, 0x0D,
        0x02, 0x06, 0x0A, 0x0E, 0x03, 0x07, 0x0B, 0x0F,

        0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
        0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,

        0x00, 0x05, 0x0A, 0x0F, 0x00, 0x05, 0x0A, 0x0F,
        0x00, 0x05, 0x0A, 0x0F, 0x00, 0x05, 0x0A, 0x0F
};

/*
 * Single source function map
 */

char SSMap[] = {
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,

	0x00, 0x04, 0x08, 0x0C, 0x01, 0x05, 0x09, 0x0D,
	0x02, 0x06, 0x0A, 0x0E, 0x03, 0x07, 0x0B, 0x0F,
};

/*
 * Constant tiles
 */

u_short AllZeros[TILE_SIZE] = {
	0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 
};

u_short AllOnes[TILE_SIZE] = {
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
	0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
};

u_short *ConstantTiles[2] = {
	AllZeros,
	AllOnes,
};

/*
 * Constant pixmaps
 */

PIXMAP constpix0 = {1, 1, 1, 1, ConstantPixmap, (caddr_t) AllZeros};
PIXMAP constpix1 = {1, 1, 1, 1, ConstantPixmap, (caddr_t) AllOnes};

/*
 * Bitmap representing the screen (frame buffer)
 */

BITMAP pbm;

/*
 * Bitmap for offscreen text.
 */

u_short TextBuffer[TEXT_BUFFER_SIZE];
BITMAP txtbm = {MAX_OFFSCR_WD, MAX_OFFSCR_HT, 0, 0, (caddr_t) TextBuffer};

/*
 * File descriptor for open display
 */

int xdev = -1;

/*
 * Pointer to shared memory area
 */

XIoAddrAddr XAddr;

/*
 * File descriptor for Mouse: RAM 12/12/86  
 */

int mdev = -1;