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 n

⟦4f1298f2d⟧ TextFile

    Length: 1132 (0x46c)
    Types: TextFile
    Names: »num.h«

Derivation

└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
    └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« 
        └─⟦ca79c7339⟧ 
            └─⟦this⟧ »DVIware/laser-setters/mctex/h/num.h« 

TextFile

/*
 * Copyright (c) 1987, 1989 University of Maryland
 * Department of Computer Science.  All rights reserved.
 * Permission to copy for any purpose is hereby granted
 * so long as this copyright notice remains intact.
 */

/*
 * Pointer I/O: numbers.
 *
 * We deal in fixed format numbers and pointers here.
 * For file I/O, see fio.h.
 */

/*
 * Get one unsigned byte.  Note that this is a proper expression.
 * The rest have more limited contexts, and are therefore OddLy
 * CapItaliseD.
 */
#define	pgetbyte(p)	UnSign8(*(p)++)

/*
 * Get a two-byte unsigned integer, a three-byte unsigned integer,
 * or a four-byte signed integer.
 */
#define	pGetWord(p, r) ((r)  = UnSign8(*(p)++) << 8, \
			(r) |= UnSign8(*(p)++))
#define	pGet3Byte(p,r) ((r)  = UnSign8(*(p)++) << 16, \
			(r) |= UnSign8(*(p)++) << 8, \
			(r) |= UnSign8(*(p)++))
#define	pGetLong(p, r) ((r)  = UnSign8(*(p)++) << 24, \
			(r) |= UnSign8(*(p)++) << 16, \
			(r) |= UnSign8(*(p)++) << 8, \
			(r) |= UnSign8(*(p)++))

/*
 * ADD pputbyte, pPutWord, pPut3Byte, pPutLong HERE IF THEY PROVE
 * USEFUL.  (But then must consider changing PutWord &c in fio.h.)
 */