regex.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright 2001 Sun Microsystems, Inc.
  3. * Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. #if defined( macintosh ) || defined( DOS ) || defined( _WINDOWS ) || defined( NEED_BSDREGEX )
  7. /*
  8. * Copyright (c) 1993 Regents of the University of Michigan.
  9. * All rights reserved.
  10. *
  11. * Redistribution and use in source and binary forms are permitted
  12. * provided that this notice is preserved and that due credit is given
  13. * to the University of Michigan at Ann Arbor. The name of the University
  14. * may not be used to endorse or promote products derived from this
  15. * software without specific prior written permission. This software
  16. * is provided ``as is'' without express or implied warranty.
  17. */
  18. /*
  19. * regex.h -- includes for regular expression matching routines
  20. * 13 August 1993 Mark C Smith
  21. */
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #include "ldap.h"
  26. #if !defined( NEEDPROTOS ) && defined( __STDC__ )
  27. #define NEEDPROTOS
  28. #endif
  29. #ifdef _SLDAPD_H_ /* server build: no need to use LDAP_CALL stuff */
  30. #ifdef LDAP_CALL
  31. #undef LDAP_CALL
  32. #define LDAP_CALL
  33. #endif
  34. #endif
  35. #ifdef NEEDPROTOS
  36. int re_init( void );
  37. void re_lock( void );
  38. int re_unlock( void );
  39. char * LDAP_CALL re_comp( char *pat );
  40. int LDAP_CALL re_exec( char *lp );
  41. void LDAP_CALL re_modw( char *s );
  42. int LDAP_CALL re_subs( char *src, char *dst );
  43. #else /* NEEDPROTOS */
  44. int re_init();
  45. void re_lock();
  46. int re_unlock();
  47. char * LDAP_CALL re_comp();
  48. int LDAP_CALL re_exec();
  49. void LDAP_CALL re_modw();
  50. int LDAP_CALL re_subs();
  51. #endif /* NEEDPROTOS */
  52. #define re_fail( m, p )
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #endif /* macintosh or DOS or or _WIN32 or NEED_BSDREGEX */