Changeset 85160 in vbox for trunk/src/VBox/Runtime/common/log/tracelogreader.cpp
- Timestamp:
- Jul 10, 2020 9:01:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.