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 - metrics - download
Index: T f

⟦3157abf51⟧ TextFile

    Length: 608 (0x260)
    Types: TextFile
    Names: »fixup.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Empire.V/V1.1/EMPFIX/fixup.c« 

TextFile

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);
}