diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-06-21 20:49:40 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-06-21 20:49:40 +0200 |
commit | 126439237eeccce05608d9d431e3bf1c4d68e49a (patch) | |
tree | 5da8e989ecd90e15dddb66801980af526124ddb0 /ACE/ace/OS_NS_string.cpp | |
parent | 247ef819c09c78d5bd11ce03d61a658ff105d581 (diff) | |
download | ATCD-126439237eeccce05608d9d431e3bf1c4d68e49a.tar.gz |
Removed ACE_REGISTER completely. register is a compiler hint which is mostly ignored by compilers and recent compilers all give warnings when register is still used.
* ACE/ASNMP/asnmp/asn1.cpp:
* ACE/ace/CDR_Base.cpp:
* ACE/ace/CDR_Base.inl:
* ACE/ace/ETCL/ETCL_y.cpp:
* ACE/ace/Global_Macros.h:
* ACE/ace/Handle_Set.cpp:
* ACE/ace/OS_NS_stdlib.cpp:
* ACE/ace/OS_NS_string.cpp:
Diffstat (limited to 'ACE/ace/OS_NS_string.cpp')
-rw-r--r-- | ACE/ace/OS_NS_string.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ACE/ace/OS_NS_string.cpp b/ACE/ace/OS_NS_string.cpp index 4043ef63f4c..091e8ece972 100644 --- a/ACE/ace/OS_NS_string.cpp +++ b/ACE/ace/OS_NS_string.cpp @@ -69,8 +69,8 @@ ACE_OS::strdup_emulation (const wchar_t *s) char * ACE_OS::strecpy (char *s, const char *t) { - ACE_REGISTER char *dscan = s; - ACE_REGISTER const char *sscan = t; + char *dscan = s; + const char *sscan = t; while ((*dscan++ = *sscan++) != '\0') continue; @@ -82,8 +82,8 @@ ACE_OS::strecpy (char *s, const char *t) wchar_t * ACE_OS::strecpy (wchar_t *s, const wchar_t *t) { - ACE_REGISTER wchar_t *dscan = s; - ACE_REGISTER const wchar_t *sscan = t; + wchar_t *dscan = s; + const wchar_t *sscan = t; while ((*dscan++ = *sscan++) != ACE_TEXT_WIDE ('\0')) continue; @@ -342,9 +342,9 @@ ACE_OS::strrchr_emulation (const char *s, int c) char * ACE_OS::strsncpy (char *dst, const char *src, size_t maxlen) { - ACE_REGISTER char *rdst = dst; - ACE_REGISTER const char *rsrc = src; - ACE_REGISTER size_t rmaxlen = maxlen; + char *rdst = dst; + const char *rsrc = src; + size_t rmaxlen = maxlen; if (rmaxlen > 0) { @@ -368,9 +368,9 @@ ACE_OS::strsncpy (char *dst, const char *src, size_t maxlen) ACE_WCHAR_T * ACE_OS::strsncpy (ACE_WCHAR_T *dst, const ACE_WCHAR_T *src, size_t maxlen) { - ACE_REGISTER ACE_WCHAR_T *rdst = dst; - ACE_REGISTER const ACE_WCHAR_T *rsrc = src; - ACE_REGISTER size_t rmaxlen = maxlen; + ACE_WCHAR_T *rdst = dst; + const ACE_WCHAR_T *rsrc = src; + size_t rmaxlen = maxlen; if (rmaxlen > 0) { |