diff options
Diffstat (limited to 'ace/OS_NS_regex.inl')
-rw-r--r-- | ace/OS_NS_regex.inl | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/ace/OS_NS_regex.inl b/ace/OS_NS_regex.inl index fc532b41367..b1f445f0e67 100644 --- a/ace/OS_NS_regex.inl +++ b/ace/OS_NS_regex.inl @@ -1,4 +1,35 @@ // -*- C++ -*- // $Id$ -// This is a placeholder. +#include "ace/OS_NS_errno.h" +#include "ace/os_include/os_regex.h" + +ACE_INLINE char * +ACE_OS::compile (const char *instring, char *expbuf, char *endbuf) +{ + ACE_OS_TRACE ("ACE_OS::compile"); +#if defined (ACE_HAS_REGEX) + ACE_OSCALL_RETURN (::compile (instring, expbuf, endbuf), char *, 0); +#else + ACE_UNUSED_ARG (instring); + ACE_UNUSED_ARG (expbuf); + ACE_UNUSED_ARG (endbuf); + + ACE_NOTSUP_RETURN (0); +#endif /* ACE_HAS_REGEX */ +} + +ACE_INLINE int +ACE_OS::step (const char *str, char *expbuf) +{ + ACE_OS_TRACE ("ACE_OS::step"); +#if defined (ACE_HAS_REGEX) + ACE_OSCALL_RETURN (::step (str, expbuf), int, -1); +#else + ACE_UNUSED_ARG (str); + ACE_UNUSED_ARG (expbuf); + + ACE_NOTSUP_RETURN (-1); +#endif /* ACE_HAS_REGEX */ +} + |