X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fisamh.h;h=4183717ed140ff28c0b46314bc043ed57003ccca;hb=c0a1c79e55f706009113b2de3c11a6f13d4a0e7d;hp=fde8cfb39b3f3bf6ae6ae02c9cc681a6235c7f13;hpb=5ed7bb5a4a7e46271cc161304b114eae54b53674;p=idzebra-moved-to-github.git diff --git a/include/isamh.h b/include/isamh.h index fde8cfb..4183717 100644 --- a/include/isamh.h +++ b/include/isamh.h @@ -27,7 +27,7 @@ typedef struct ISAMH_PP_s *ISAMH_PP; typedef struct ISAMH_filecat_s { /* filecategories, mostly block sizes */ int bsize; /* block size */ - int mblocks; /* maximum blocks */ + int mblocks; /* maximum keys before switching to larger sizes */ } *ISAMH_filecat; typedef struct ISAMH_M_s { @@ -68,8 +68,10 @@ int isamh_pp_num (ISAMH_PP pp); int isamh_block_used (ISAMH is, int type); int isamh_block_size (ISAMH is, int type); + #define isamh_type(x) ((x) & 7) #define isamh_block(x) ((x) >> 3) +#define isamh_addr(blk,typ) (((blk)<<3)+(typ)) void isamh_buildfirstblock(ISAMH_PP pp); void isamh_buildlaterblock(ISAMH_PP pp); @@ -83,7 +85,10 @@ void isamh_buildlaterblock(ISAMH_PP pp); /* * $Log: isamh.h,v $ - * Revision 1.2 1999-07-06 09:37:04 heikki + * Revision 1.3 1999-07-06 16:30:20 heikki + * IsamH startss to work - at least it builds indexes. Can not search yet... + * + * Revision 1.2 1999/07/06 09:37:04 heikki * Working on isamh - not ready yet. * * Revision 1.1 1999/06/30 15:06:28 heikki