silut.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef silut_H_INCLUDED
  2. #define silut_H_INCLUDED
  3. /** A Silut record (String Integer LookUp Table consists of an integer and a constant character string. A Silut with string geing NULL is considered
  4. to be the a guard record.
  5. */
  6. struct Silut_;
  7. typedef struct Silut_ Silut;
  8. /** A Silut record (String Integer LookUp Table consists of an integer and a constant character string. A Silut with string set to NULL is considered
  9. to be the a guard record.
  10. */
  11. struct Silut_ {
  12. int integer;
  13. const char * string;
  14. };
  15. /** Use this macro as the last guard element) of a Silut
  16. lookup table. */
  17. #define SILUT_DONE { -1, NULL }
  18. /* This file was generated with:
  19. 'cfunctions -c -aoff -n -w silut_proto src/silut.c' */
  20. #ifndef CFH_SILUT_PROTO
  21. #define CFH_SILUT_PROTO
  22. /* From 'src/silut.c': */
  23. int silut_len (Silut lut[] );
  24. Silut * silut_lsearchi (Silut lut[] , int integer );
  25. Silut * silut_lsearchcstr (Silut lut[] , const char * string );
  26. int silut_comparecstr (const void * one , const void * two );
  27. int silut_compareint (const void * one , const void * two );
  28. Silut * silut_bsearchcstr (Silut lut[] , const char * string );
  29. Silut * silut_bsearchint (Silut lut[] , int integer );
  30. #endif /* CFH_SILUT_PROTO */
  31. #endif