Added isc_type, isc_block macros.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Oct 1996 16:44:42 +0000 (16:44 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Oct 1996 16:44:42 +0000 (16:44 +0000)
include/isamc.h

index 8aa911b..c977938 100644 (file)
@@ -4,7 +4,10 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: isamc.h,v $
- * Revision 1.1  1996-10-29 13:40:37  adam
+ * Revision 1.2  1996-10-29 16:44:42  adam
+ * Added isc_type, isc_block macros.
+ *
+ * Revision 1.1  1996/10/29  13:40:37  adam
  * First work.
  *
  */
@@ -54,4 +57,7 @@ int isc_read_item (ISAMC_PP pp, char **dst);
 int isc_read_key (ISAMC_PP pp, void *buf);
 int isc_numkeys (ISAMC_PP pp);
 
+#define isc_type(x) ((x) & 7)
+#define isc_block(x) ((x) >> 3)
+
 #endif