|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T f
Length: 608 (0x260)
Types: TextFile
Names: »fixup.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Empire.V/V1.1/EMPFIX/fixup.c«
extern int xflg, wflg, mflg;
/*
n = ptr to name
v = current value
w = default value
*/
fixup(n, v, wv)
char *n;
int v, wv;
{
char *cp, *getstri();
if( wflg ) return(wv);
if( xflg ) return(v);
printf(" %6s %d ", n, v);
cp = getstri("");
if( *cp == 'x' ) {
xflg++;
return(v);
}
if( *cp == 'w' ) {
wflg = xflg = mflg = 1;
return(wv);
}
if( *cp == '\0' ) return(v);
v = atoi(cp);
mflg++;
return(v);
}