Changeset 85160 in vbox
- Timestamp:
- Jul 10, 2020 9:01:02 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139123
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpp/xml.h
r85121 r85160 363 363 */ 364 364 365 366 #if RT_CLANG_PREREQ(4, 0) /* VC++ needs the nothrow'ed-ness, while clang barfs at it. */ 367 typedef xmlParserInput *FNEXTERNALENTITYLOADER(const char *aURI, const char *aID, xmlParserCtxt *aCtxt); 368 #else 365 369 typedef DECLCALLBACKTYPE_EX(xmlParserInput *, RT_NOTHING, FNEXTERNALENTITYLOADER,(const char *aURI, const char *aID, 366 370 xmlParserCtxt *aCtxt)); 367 typedef FNEXTERNALENTITYLOADER *PFNEXTERNALENTITYLOADER; 371 #endif 372 typedef FNEXTERNALENTITYLOADER *PFNEXTERNALENTITYLOADER; /**< xmlExternalEntityLoader */ 368 373 369 374 class RT_DECL_CLASS GlobalLock -
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r85124 r85160 167 167 168 168 169 DECL EXPORT(int) supR3PreInit(PSUPPREINITDATA pPreInitData, uint32_t fFlags)169 DECL_NOTHROW(DECLEXPORT(int)) supR3PreInit(PSUPPREINITDATA pPreInitData, uint32_t fFlags) 170 170 { 171 171 /* -
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); -
trunk/src/VBox/Runtime/generic/ftp-server.cpp
r85121 r85160 343 343 static void rtFtpServerClientStateReset(PRTFTPSERVERCLIENTSTATE pState); 344 344 345 /** 346 * Function prototypes for command handlers.345 /** @name Command handlers. 346 * @{ 347 347 */ 348 348 static FNRTFTPSERVERCMD rtFtpServerHandleABOR; … … 365 365 static FNRTFTPSERVERCMD rtFtpServerHandleTYPE; 366 366 static FNRTFTPSERVERCMD rtFtpServerHandleUSER; 367 /** @} */ 367 368 368 369 /** … … 1270 1271 *********************************************************************************************************************************/ 1271 1272 1272 static intrtFtpServerHandleABOR(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1273 static DECLCALLBACK(int) rtFtpServerHandleABOR(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1273 1274 { 1274 1275 RT_NOREF(cArgs, apcszArgs); … … 1286 1287 } 1287 1288 1288 static intrtFtpServerHandleCDUP(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1289 static DECLCALLBACK(int) rtFtpServerHandleCDUP(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1289 1290 { 1290 1291 RT_NOREF(cArgs, apcszArgs); … … 1322 1323 } 1323 1324 1324 static intrtFtpServerHandleCWD(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1325 static DECLCALLBACK(int) rtFtpServerHandleCWD(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1325 1326 { 1326 1327 if (cArgs != 1) … … 1344 1345 } 1345 1346 1346 static intrtFtpServerHandleFEAT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1347 static DECLCALLBACK(int) rtFtpServerHandleFEAT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1347 1348 { 1348 1349 RT_NOREF(cArgs, apcszArgs); … … 1862 1863 } 1863 1864 1864 static intrtFtpServerHandleLIST(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1865 static DECLCALLBACK(int) rtFtpServerHandleLIST(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1865 1866 { 1866 1867 /* If no argument is given, use the server's CWD as the path. */ … … 1908 1909 } 1909 1910 1910 static intrtFtpServerHandleMODE(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1911 static DECLCALLBACK(int) rtFtpServerHandleMODE(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1911 1912 { 1912 1913 RT_NOREF(pClient, cArgs, apcszArgs); … … 1916 1917 } 1917 1918 1918 static intrtFtpServerHandleNOOP(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1919 static DECLCALLBACK(int) rtFtpServerHandleNOOP(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1919 1920 { 1920 1921 RT_NOREF(cArgs, apcszArgs); … … 1926 1927 } 1927 1928 1928 static intrtFtpServerHandlePASS(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1929 static DECLCALLBACK(int) rtFtpServerHandlePASS(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1929 1930 { 1930 1931 if (cArgs != 1) … … 1951 1952 } 1952 1953 1953 static intrtFtpServerHandlePORT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1954 static DECLCALLBACK(int) rtFtpServerHandlePORT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1954 1955 { 1955 1956 if (cArgs != 1) … … 1971 1972 } 1972 1973 1973 static intrtFtpServerHandlePWD(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1974 static DECLCALLBACK(int) rtFtpServerHandlePWD(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1974 1975 { 1975 1976 RT_NOREF(cArgs, apcszArgs); … … 1987 1988 } 1988 1989 1989 static intrtFtpServerHandleOPTS(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)1990 static DECLCALLBACK(int) rtFtpServerHandleOPTS(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 1990 1991 { 1991 1992 RT_NOREF(cArgs, apcszArgs); … … 2000 2001 } 2001 2002 2002 static intrtFtpServerHandleQUIT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2003 static DECLCALLBACK(int) rtFtpServerHandleQUIT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2003 2004 { 2004 2005 RT_NOREF(cArgs, apcszArgs); … … 2023 2024 } 2024 2025 2025 static intrtFtpServerHandleRETR(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2026 static DECLCALLBACK(int) rtFtpServerHandleRETR(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2026 2027 { 2027 2028 if (cArgs != 1) /* File name needs to be present. */ … … 2071 2072 } 2072 2073 2073 static intrtFtpServerHandleSIZE(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2074 static DECLCALLBACK(int) rtFtpServerHandleSIZE(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2074 2075 { 2075 2076 if (cArgs != 1) … … 2096 2097 } 2097 2098 2098 static intrtFtpServerHandleSTAT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2099 static DECLCALLBACK(int) rtFtpServerHandleSTAT(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2099 2100 { 2100 2101 if (cArgs != 1) … … 2138 2139 } 2139 2140 2140 static intrtFtpServerHandleSTRU(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2141 static DECLCALLBACK(int) rtFtpServerHandleSTRU(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2141 2142 { 2142 2143 if (cArgs != 1) … … 2159 2160 } 2160 2161 2161 static intrtFtpServerHandleSYST(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2162 static DECLCALLBACK(int) rtFtpServerHandleSYST(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2162 2163 { 2163 2164 RT_NOREF(cArgs, apcszArgs); … … 2171 2172 } 2172 2173 2173 static intrtFtpServerHandleTYPE(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2174 static DECLCALLBACK(int) rtFtpServerHandleTYPE(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2174 2175 { 2175 2176 if (cArgs != 1) … … 2197 2198 } 2198 2199 2199 static intrtFtpServerHandleUSER(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs)2200 static DECLCALLBACK(int) rtFtpServerHandleUSER(PRTFTPSERVERCLIENT pClient, uint8_t cArgs, const char * const *apcszArgs) 2200 2201 { 2201 2202 if (cArgs != 1)
Note:
See TracChangeset
for help on using the changeset viewer.