regex.h 1.7 KB

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