Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
633 B

  1. #ifndef CRITBIT_H_
  2. #define CRITBIT_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* for __pure__ if we are compiling under dietlibc */
  7. #include <stddef.h>
  8. #ifndef __pure__
  9. #define __pure__
  10. #endif
  11. typedef struct {
  12. void *root;
  13. } critbit0_tree;
  14. int critbit0_contains(critbit0_tree *t, const char *u) __pure__;
  15. int critbit0_insert(critbit0_tree *t, const char *u);
  16. int critbit0_delete(critbit0_tree *t, const char *u);
  17. void critbit0_clear(critbit0_tree *t);
  18. int critbit0_allprefixed(critbit0_tree *t, const char *prefix,
  19. int (*handle) (const char *, void *), void *arg);
  20. #ifdef __cplusplus
  21. };
  22. #endif
  23. #endif