?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. #ifndef MHMT_TB_H
  2. #define MHMT_TB_H
  3.  
  4. #include "mhmt-types.h"
  5.  
  6.  
  7.  
  8. extern struct tb_chain * tb_entry[];
  9.  
  10.  
  11.  
  12. // chained two-byter element: pos is position in input file
  13. struct tb_chain
  14. {
  15.         OFFSET pos;
  16.         struct tb_chain * next;
  17. };
  18.  
  19.  
  20.  
  21.  
  22. #define BUNCHSIZE 4096
  23.  
  24. struct tb_bunch
  25. {
  26.         struct tb_bunch * next;
  27.         struct tb_chain bunch[BUNCHSIZE];
  28. };
  29.  
  30.  
  31.  
  32.  
  33. void init_tb(void);
  34. void free_tb(void);
  35. ULONG add_tb(UWORD index, OFFSET position);
  36. void cutoff_tb_chain(UWORD index,OFFSET position);
  37. ULONG add_bunch_of_tb(void);
  38. struct tb_chain * get_free_tb(void);
  39.  
  40.  
  41.  
  42.  
  43. #endif
  44.  
  45.