FreeBSD Bugzilla – Attachment 250922 Details for
Bug 279257
emulators/virtualbox-ose-additions-legacy fails to build: error: ISO C++17 does not allow 'register' storage class specifier
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Eliminate the "register" keyword
patch-register (text/plain), 6.01 KB, created by
Mikhail Teterin
on 2024-05-24 15:10:13 UTC
(
hide
)
Description:
Eliminate the "register" keyword
Filename:
MIME Type:
Creator:
Mikhail Teterin
Created:
2024-05-24 15:10:13 UTC
Size:
6.01 KB
patch
obsolete
>--- src/VBox/Runtime/common/log/logcom.cpp 2020-07-09 12:57:28.000000000 -0400 >+++ src/VBox/Runtime/common/log/logcom.cpp 2024-05-23 10:32:14.490835000 -0400 >@@ -121,6 +121,6 @@ > for (pu8 = (const uint8_t *)pach; cb-- > 0; pu8++) > { >- register unsigned cMaxWait; >- register uint8_t u8; >+ unsigned cMaxWait; >+ uint8_t u8; > > /* expand \n -> \r\n */ >--- src/VBox/Runtime/common/table/avl_Range.cpp.h 2020-07-09 12:57:33.000000000 -0400 >+++ src/VBox/Runtime/common/table/avl_Range.cpp.h 2024-05-23 10:42:15.121608000 -0400 >@@ -36,7 +36,7 @@ > * @param Key The Key to find matching range for. > */ >-KAVL_DECL(PKAVLNODECORE) KAVL_FN(RangeGet)(PPKAVLNODECORE ppTree, register KAVLKEY Key) >+KAVL_DECL(PKAVLNODECORE) KAVL_FN(RangeGet)(PPKAVLNODECORE ppTree, KAVLKEY Key) > { >- register PKAVLNODECORE pNode = KAVL_GET_POINTER_NULL(ppTree); >+ PKAVLNODECORE pNode = KAVL_GET_POINTER_NULL(ppTree); > if (pNode) > { >--- src/VBox/Runtime/common/table/avl_GetBestFit.cpp.h 2020-07-09 12:57:33.000000000 -0400 >+++ src/VBox/Runtime/common/table/avl_GetBestFit.cpp.h 2024-05-23 10:41:02.248485000 -0400 >@@ -44,5 +44,5 @@ > KAVL_DECL(PKAVLNODECORE) KAVL_FN(GetBestFit)(PPKAVLNODECORE ppTree, KAVLKEY Key, bool fAbove) > { >- register PKAVLNODECORE pNode = KAVL_GET_POINTER_NULL(ppTree); >+ PKAVLNODECORE pNode = KAVL_GET_POINTER_NULL(ppTree); > if (pNode) > { >--- src/VBox/Runtime/common/table/avl_Get.cpp.h 2020-07-09 12:57:33.000000000 -0400 >+++ src/VBox/Runtime/common/table/avl_Get.cpp.h 2024-05-23 10:39:42.972691000 -0400 >@@ -38,5 +38,5 @@ > KAVL_DECL(PKAVLNODECORE) KAVL_FN(Get)(PPKAVLNODECORE ppTree, KAVLKEY Key) > { >- register PKAVLNODECORE pNode = KAVL_GET_POINTER_NULL(ppTree); >+ PKAVLNODECORE pNode = KAVL_GET_POINTER_NULL(ppTree); > > if (pNode) >--- src/VBox/Runtime/common/table/avl_Base.cpp.h 2020-07-09 12:57:33.000000000 -0400 >+++ src/VBox/Runtime/common/table/avl_Base.cpp.h 2024-05-23 10:34:18.209908000 -0400 >@@ -267,5 +267,5 @@ > else > { >- register unsigned char uchHeight = (unsigned char)(KMAX(uchLeftHeight, uchRightHeight) + 1); >+ unsigned char uchHeight = (unsigned char)(KMAX(uchLeftHeight, uchRightHeight) + 1); > if (uchHeight == pNode->uchHeight) > break; >@@ -301,8 +301,8 @@ > KAVLSTACK AVLStack; > PPKAVLNODECORE ppCurNode = ppTree; >- register PKAVLNODECORE pCurNode; >- register KAVLKEY Key = pNode->Key; NOREF(Key); >+ PKAVLNODECORE pCurNode; >+ KAVLKEY Key = pNode->Key; NOREF(Key); > #ifdef KAVL_RANGE >- register KAVLKEY KeyLast = pNode->KeyLast; NOREF(KeyLast); >+ KAVLKEY KeyLast = pNode->KeyLast; NOREF(KeyLast); > #endif > >@@ -401,5 +401,5 @@ > KAVLSTACK AVLStack; > PPKAVLNODECORE ppDeleteNode = ppTree; >- register PKAVLNODECORE pDeleteNode; >+ PKAVLNODECORE pDeleteNode; > > AVLStack.cEntries = 0; >@@ -428,5 +428,5 @@ > const unsigned iStackEntry = AVLStack.cEntries; > PPKAVLNODECORE ppLeftLeast = &pDeleteNode->pLeft; >- register PKAVLNODECORE pLeftLeast = KAVL_GET_POINTER(ppLeftLeast); >+ PKAVLNODECORE pLeftLeast = KAVL_GET_POINTER(ppLeftLeast); > > while (pLeftLeast->pRight != KAVL_NULL) >--- src/VBox/Runtime/common/string/utf-16.cpp 2020-07-09 12:57:33.000000000 -0400 >+++ src/VBox/Runtime/common/string/utf-16.cpp 2024-05-23 10:36:03.449254000 -0400 >@@ -195,5 +195,5 @@ > > >-RTDECL(int) RTUtf16Cmp(register PCRTUTF16 pwsz1, register PCRTUTF16 pwsz2) >+RTDECL(int) RTUtf16Cmp(PCRTUTF16 pwsz1, PCRTUTF16 pwsz2) > { > if (pwsz1 == pwsz2) >@@ -206,6 +206,6 @@ > for (;;) > { >- register RTUTF16 wcs = *pwsz1; >- register int iDiff = wcs - *pwsz2; >+ RTUTF16 wcs = *pwsz1; >+ int iDiff = wcs - *pwsz2; > if (iDiff || !wcs) > return iDiff; >--- src/VBox/Runtime/common/string/utf-16-case.cpp 2020-07-09 12:57:33.000000000 -0400 >+++ src/VBox/Runtime/common/string/utf-16-case.cpp 2024-05-23 10:38:28.979400000 -0400 >@@ -40,5 +40,5 @@ > > >-RTDECL(int) RTUtf16ICmp(register PCRTUTF16 pwsz1, register PCRTUTF16 pwsz2) >+RTDECL(int) RTUtf16ICmp(PCRTUTF16 pwsz1, PCRTUTF16 pwsz2) > { > if (pwsz1 == pwsz2) >@@ -52,7 +52,7 @@ > for (;;) > { >- register RTUTF16 wc1 = *pwsz1; >- register RTUTF16 wc2 = *pwsz2; >- register int iDiff = wc1 - wc2; >+ RTUTF16 wc1 = *pwsz1; >+ RTUTF16 wc2 = *pwsz2; >+ int iDiff = wc1 - wc2; > if (iDiff) > { >@@ -107,5 +107,5 @@ > > >-RTDECL(int) RTUtf16BigICmp(register PCRTUTF16 pwsz1, register PCRTUTF16 pwsz2) >+RTDECL(int) RTUtf16BigICmp(PCRTUTF16 pwsz1, PCRTUTF16 pwsz2) > { > if (pwsz1 == pwsz2) >@@ -119,7 +119,7 @@ > for (;;) > { >- register RTUTF16 wc1 = *pwsz1; >- register RTUTF16 wc2 = *pwsz2; >- register int iDiff = wc1 - wc2; >+ RTUTF16 wc1 = *pwsz1; >+ RTUTF16 wc2 = *pwsz2; >+ int iDiff = wc1 - wc2; > if (iDiff) > { >@@ -217,5 +217,5 @@ > > >-RTDECL(int) RTUtf16NICmp(register PCRTUTF16 pwsz1, register PCRTUTF16 pwsz2, size_t cwcMax) >+RTDECL(int) RTUtf16NICmp(PCRTUTF16 pwsz1, PCRTUTF16 pwsz2, size_t cwcMax) > { > if (pwsz1 == pwsz2) >@@ -229,7 +229,7 @@ > while (cwcMax-- > 0) > { >- register RTUTF16 wc1 = *pwsz1; >- register RTUTF16 wc2 = *pwsz2; >- register int iDiff = wc1 - wc2; >+ RTUTF16 wc1 = *pwsz1; >+ RTUTF16 wc2 = *pwsz2; >+ int iDiff = wc1 - wc2; > if (iDiff) > { >@@ -290,5 +290,5 @@ > > >-RTDECL(int) RTUtf16BigNICmp(register PCRTUTF16 pwsz1, register PCRTUTF16 pwsz2, size_t cwcMax) >+RTDECL(int) RTUtf16BigNICmp(PCRTUTF16 pwsz1, PCRTUTF16 pwsz2, size_t cwcMax) > { > if (pwsz1 == pwsz2) >@@ -302,7 +302,7 @@ > while (cwcMax-- > 0) > { >- register RTUTF16 wc1 = *pwsz1; >- register RTUTF16 wc2 = *pwsz2; >- register int iDiff = wc1 - wc2; >+ RTUTF16 wc1 = *pwsz1; >+ RTUTF16 wc2 = *pwsz2; >+ int iDiff = wc1 - wc2; > if (iDiff) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279257
: 250922 |
250923
|
251072
|
251696