home *** CD-ROM | disk | FTP | other *** search
/ ftp.shrubbery.net / 2015-02-07.ftp.shrubbery.net.tar / ftp.shrubbery.net / pub / foad / foad-0.3.tar.gz / foad-0.3.tar / foad-0.3 / foad.h < prev    next >
C/C++ Source or Header  |  2001-06-11  |  926b  |  58 lines

  1. #ifndef FOAD_H
  2. #define FOAD_H
  3.  
  4. #include "config.h"
  5.  
  6. #include <stdio.h>
  7. #if HAVE_STRINGS_H
  8. # include <strings.h>
  9. #endif
  10. #if HAVE_STRING_H
  11. # include <string.h>
  12. #endif
  13. #if HAVE_STDLIB_H
  14. # include <stdlib.h>
  15. #elif HAVE_MALLOC_H
  16. # include <malloc.h>
  17. #endif
  18. #if HAVE_UNISTD_H
  19. # include <unistd.h>
  20. #endif
  21. #if HAVE_ERRNO_H
  22. # include <errno.h>
  23. #endif
  24. extern    int errno;
  25.  
  26. #if HAVE_SYS_TYPES_H
  27. # include <sys/types.h>
  28. #endif
  29. #include <regex.h>
  30. #include <limits.h>
  31.  
  32. #if ! HAVE_BZERO
  33. # define    bzero(a, b)    memset(a, 0, b)
  34. #endif
  35.  
  36. #if ! HAVE_RINDEX
  37. # define    index(a, b)    strchr(a, b)
  38. # define    rindex(a, b)    strrchr(a, b)
  39. #endif
  40.  
  41. typedef struct _node {
  42.         char            *addr;
  43.         int             line;
  44.         regex_t         preg;
  45.         struct _node    *next;
  46. } node;
  47. typedef struct s_addresses {
  48.         node    *next;
  49. } s_addresses;
  50.  
  51. #if STDC_HEADERS
  52. int    append(char **, char *);
  53. #else
  54. int    append();
  55. #endif
  56.  
  57. #endif /* FOAD_H */
  58.