os_string.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_string.h
00006  *
00007  *  string operations
00008  *
00009  *  os_string.h,v 1.6 2006/05/05 08:08:48 jwillemsen Exp
00010  *
00011  *  @author Don Hinton <dhinton@dresystems.com>
00012  *  @author This code was originally in various places including ace/OS.h.
00013  */
00014 //=============================================================================
00015 
00016 #ifndef ACE_OS_INCLUDE_OS_STRING_H
00017 #define ACE_OS_INCLUDE_OS_STRING_H
00018 
00019 #include /**/ "ace/pre.h"
00020 
00021 #include "ace/config-all.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #include "ace/os_include/os_stddef.h"
00028 
00029 // Matthew Stevens 7-10-95 Fix GNU GCC 2.7 for memchr() problem.
00030 #if defined (ACE_HAS_GNU_CSTRING_H)
00031 // Define this file to keep /usr/include/memory.h from being included.
00032 # include /**/ <cstring>
00033 #else
00034 # if !defined (ACE_LACKS_MEMORY_H)
00035 #   include /**/ <memory.h>
00036 # endif /* !ACE_LACKS_MEMORY_H */
00037 # if !defined (ACE_LACKS_STRING_H)
00038 #   include /**/ <string.h>
00039 # endif /* !ACE_LACKS_STRING_H */
00040 #endif /* ACE_HAS_GNU_CSTRING_H */
00041 
00042 // Place all additions (especially function declarations) within extern "C" {}
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif /* __cplusplus */
00047 
00048   // this looks fishy... dhinton
00049 #if !defined (ACE_HAS_STRERROR)
00050 # if defined (ACE_HAS_SYS_ERRLIST)
00051     extern char *sys_errlist[];
00052 #   define strerror(err) sys_errlist[err]
00053 # else
00054 #   define strerror(err) "strerror is unsupported"
00055 # endif /* ACE_HAS_SYS_ERRLIST */
00056 #endif /* !ACE_HAS_STERROR */
00057 
00058 #if defined (ACE_LACKS_STRTOK_R_PROTOTYPE) && !defined (_POSIX_SOURCE)
00059   char *strtok_r (char *s, const char *delim, char **save_ptr);
00060 #endif  /* ACE_LACKS_STRTOK_R_PROTOTYPE */
00061 
00062 #if defined (__BORLANDC__) && (__BORLANDC__ < 0x560)
00063 #  define _stricmp stricmp
00064 #  define _strnicmp strnicmp
00065 #endif /* __BORLANDC__ */
00066 
00067 #ifdef __cplusplus
00068 }
00069 #endif /* __cplusplus */
00070 
00071 #include /**/ "ace/post.h"
00072 #endif /* ACE_OS_INCLUDE_OS_STRING_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6