Changeset 85160 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jul 10, 2020 9:01:02 AM (5 years ago)
- Location:
- trunk/src/VBox/Runtime/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp
r82968 r85160 993 993 * created manually later on. 994 994 */ 995 intrtDbgModContainerCreate(PRTDBGMODINT pMod, RTUINTPTR cbSeg)995 DECLHIDDEN(int) rtDbgModContainerCreate(PRTDBGMODINT pMod, RTUINTPTR cbSeg) 996 996 { 997 997 PRTDBGMODCTN pThis = (PRTDBGMODCTN)RTMemAlloc(sizeof(*pThis)); -
trunk/src/VBox/Runtime/common/log/tracelogreader.cpp
r85121 r85160 239 239 240 240 /********************************************************************************************************************************* 241 * Defined Constants And Macros*241 * Internal Functions * 242 242 *********************************************************************************************************************************/ 243 244 243 static DECLCALLBACK(int) rtTraceLogRdrHdrRecvd(PRTTRACELOGRDRINT pThis, RTTRACELOGRDRPOLLEVT *penmEvt, bool *pfContinuePoll); 245 244 static DECLCALLBACK(int) rtTraceLogRdrHdrDescRecvd(PRTTRACELOGRDRINT pThis, RTTRACELOGRDRPOLLEVT *penmEvt, bool *pfContinuePoll); … … 256 255 /** 257 256 * State handlers. 258 */ 259 static PFNRTTRACELOGRDRSTATEHANDLER g_apfnStateHandlers[] = 260 { 261 NULL, 262 rtTraceLogRdrHdrRecvd, 263 rtTraceLogRdrHdrDescRecvd, 264 rtTraceLogRdrMagicRecvd, 265 rtTraceLogRdrEvtDescRecvd, 266 rtTraceLogRdrEvtDescIdRecvd, 267 rtTraceLogRdrEvtDescDescriptionRecvd, 268 rtTraceLogRdrEvtItemDescRecvd, 269 rtTraceLogRdrEvtItemDescNameRecvd, 270 rtTraceLogRdrEvtItemDescDescriptionRecvd, 271 rtTraceLogRdrEvtMarkerRecvd, 272 rtTraceLogRdrEvtDataRecvd, 273 NULL 257 * @note The struct wrapper is for working around a Clang nothrow attrib oddity. 258 */ 259 static struct { PFNRTTRACELOGRDRSTATEHANDLER pfn; } g_aStateHandlers[] = 260 { 261 { NULL }, 262 { rtTraceLogRdrHdrRecvd }, 263 { rtTraceLogRdrHdrDescRecvd }, 264 { rtTraceLogRdrMagicRecvd }, 265 { rtTraceLogRdrEvtDescRecvd }, 266 { rtTraceLogRdrEvtDescIdRecvd }, 267 { rtTraceLogRdrEvtDescDescriptionRecvd }, 268 { rtTraceLogRdrEvtItemDescRecvd }, 269 { rtTraceLogRdrEvtItemDescNameRecvd }, 270 { rtTraceLogRdrEvtItemDescDescriptionRecvd }, 271 { rtTraceLogRdrEvtMarkerRecvd }, 272 { rtTraceLogRdrEvtDataRecvd }, 273 { NULL } 274 274 }; 275 275 … … 1570 1570 { 1571 1571 /* Act according to the current state. */ 1572 rc = g_a pfnStateHandlers[pThis->enmState](pThis, penmEvt, &fContinue);1572 rc = g_aStateHandlers[pThis->enmState].pfn(pThis, penmEvt, &fContinue); 1573 1573 } 1574 1574 else -
trunk/src/VBox/Runtime/common/path/RTPathParentLength.cpp
r82968 r85160 87 87 * double-slash prefix as parent. 88 88 */ 89 size_tRTPathParentLength(const char *pszPath)89 RTDECL(size_t) RTPathParentLength(const char *pszPath) 90 90 { 91 91 #if RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS -
trunk/src/VBox/Runtime/common/string/ministring.cpp
r83252 r85160 1144 1144 } 1145 1145 1146 const RTCStringoperator+(const RTCString &a_rStr1, const RTCString &a_rStr2)1146 RTDECL(const RTCString) operator+(const RTCString &a_rStr1, const RTCString &a_rStr2) 1147 1147 { 1148 1148 RTCString strRet(a_rStr1); … … 1151 1151 } 1152 1152 1153 const RTCStringoperator+(const RTCString &a_rStr1, const char *a_pszStr2)1153 RTDECL(const RTCString) operator+(const RTCString &a_rStr1, const char *a_pszStr2) 1154 1154 { 1155 1155 RTCString strRet(a_rStr1); … … 1158 1158 } 1159 1159 1160 const RTCStringoperator+(const char *a_psz1, const RTCString &a_rStr2)1160 RTDECL(const RTCString) operator+(const char *a_psz1, const RTCString &a_rStr2) 1161 1161 { 1162 1162 RTCString strRet(a_psz1);
Note:
See TracChangeset
for help on using the changeset viewer.