Changeset 108334 in vbox
- Timestamp:
- Feb 21, 2025 3:23:06 PM (3 weeks ago)
- svn:sync-xref-src-repo-rev:
- 167686
- Location:
- trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl_header.c
r108328 r108334 377 377 { 378 378 fputs("[", pFile); 379 for (uint32_t i = 0; i < pIt->cAttrs; i++) 379 uint32_t i; 380 for (i = 0; i < pIt->cAttrs; i++) 380 381 { 381 382 if (pIt->aAttrs[i].pszVal) -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl_idl.c
r108332 r108334 263 263 264 264 /* Make sure we don't miss any %{C++ %} blocks. */ 265 if ( !strncmp(pTok->Type.Comment.pszComment, RT_STR_TUPLE("%{C++"))266 || !strncmp(pTok->Type.Comment.pszComment, RT_STR_TUPLE("%{ C++")))265 if ( !strncmp(pTok->Type.Comment.pszComment, "%{C++", sizeof("%{C++") - 1) 266 || !strncmp(pTok->Type.Comment.pszComment, "%{ C++", sizeof("%{ C++") - 1)) 267 267 { 268 268 if (pfRawBlock) … … 958 958 return xpidlParseError(pThis, pInput, NULL, rc, "Lexer: Failed to query punctuator token with %Rrc", rc); 959 959 960 size_t cchIntro = !strncmp(pTok->Type.Comment.pszComment, RT_STR_TUPLE("%{C++"))960 size_t cchIntro = !strncmp(pTok->Type.Comment.pszComment, "%{C++", sizeof("%{C++") - 1) 961 961 ? 6 /* Assumes a newline after %{C++ */ 962 962 : 7; /* Assumes a newline after %{C++ */ … … 1242 1242 { 1243 1243 /* Could be a raw block, check that the string starts with %{C++. */ 1244 if ( !strncmp(pTok->Type.Comment.pszComment, RT_STR_TUPLE("%{C++"))1245 || !strncmp(pTok->Type.Comment.pszComment, RT_STR_TUPLE("%{ C++")))1244 if ( !strncmp(pTok->Type.Comment.pszComment, "%{C++", sizeof("%{C++") - 1) 1245 || !strncmp(pTok->Type.Comment.pszComment, "%{ C++", sizeof("%{ C++") - 1)) 1246 1246 { 1247 size_t cchIntro = !strncmp(pTok->Type.Comment.pszComment, RT_STR_TUPLE("%{C++"))1247 size_t cchIntro = !strncmp(pTok->Type.Comment.pszComment, "%{C++", sizeof("%{C++") - 1) 1248 1248 ? 6 /* Assumes a newline after %{C++ */ 1249 1249 : 7; /* Assumes a newline after %{C++ */
Note:
See TracChangeset
for help on using the changeset viewer.