home *** CD-ROM | disk | FTP | other *** search
- /*
- * dirindex.h
- *
- * Author: Tomi Ollila <too@cs.hut.fi>
- *
- * Copyright (c) 1993 Tomi Ollila
- * All rights reserved
- *
- * Created: Thu Nov 4 23:08:25 1993 too
- * Last modified: Sun Nov 14 18:57:59 1993 too
- *
- * HISTORY
- * $Log: dirindex.h,v $
- * Revision 1.1 1993/11/17 11:47:44 too
- * Initial revision
- *
- */
-
- #ifndef _DIRINDEX_H_
- #define _DIRINDEX_H_
-
- /*
- * WARNING: this macro doesn't do typechecking, so look that `buf' is of type
- * `otype' (as usually you want this)
- */
- #define directIndex(otype, buf, ptr) \
- (otype)(*(otype *)(((char *)(buf)) + (ptr)))
-
- #endif /* _DIRINDEX_H_ */
-
-