home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
kaffe-0.5p4-src.tgz
/
tar.out
/
contrib
/
kaffe
/
kaffeh
/
file.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
569b
|
22 lines
/*
* file.h
* File support routines.
*
* Copyright (c) 1996 Systems Architecture Research Centre,
* City University, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
*/
#ifndef __file_h
#define __file_h
#define readu1(c, f) (*(c)) = getc(f)
#define readu2(c, f) (*(c)) = (getc(f) << 8) | getc(f)
#define readu4(c, f) (*(c)) = (getc(f) << 24)|(getc(f) << 16)|(getc(f) << 8)|getc(f)
#endif