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 w

⟦8006c56d1⟧ TextFile

    Length: 628 (0x274)
    Types: TextFile
    Names: »warning.c«

Derivation

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

TextFile


#include <X/Xlib.h>
#include <stdio.h>
#include <math.h>
#include <signal.h>
#include "../defs.h"
#include "../struct.h"
#include "../data.h"
#include "../bitmaps.h"

extern Window w;
extern Font dfont;
extern FontInfo *dfontinfo;
extern int udcounter;

int warncount = 0;
int warntimer = -1;

warning(text)
char *text;
{
    warntimer = udcounter + 5;  /* 10 updates later the line will be cleared */
    if (warncount > 0)
	XPixSet(w, 50, 490, dfontinfo->width * warncount, dfontinfo->height,
	    backColor);
    warncount = strlen(text);
    XText(w, 50, 490, text, warncount, dfont, textColor, backColor);
    XFlush();
}