VirtualBox

Changeset 108334 in vbox


Ignore:
Timestamp:
Feb 21, 2025 3:23:06 PM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167686
Message:

libs/xpcom18a4: Replace xpidl with xpidl-new which enables us to drop the dreaded libIDL dependency (library is dead for well over a decade), bugref:10321 [build fixes]

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  
    377377    {
    378378        fputs("[", pFile);
    379         for (uint32_t i = 0; i < pIt->cAttrs; i++)
     379        uint32_t i;
     380        for (i = 0; i < pIt->cAttrs; i++)
    380381        {
    381382            if (pIt->aAttrs[i].pszVal)
  • trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl_idl.c

    r108332 r108334  
    263263
    264264        /* 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))
    267267        {
    268268            if (pfRawBlock)
     
    958958                return xpidlParseError(pThis, pInput, NULL, rc, "Lexer: Failed to query punctuator token with %Rrc", rc);
    959959
    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)
    961961                              ? 6  /* Assumes a newline after %{C++ */
    962962                              : 7; /* Assumes a newline after %{C++ */
     
    12421242            {
    12431243                /* 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))
    12461246                {
    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)
    12481248                                      ? 6  /* Assumes a newline after %{C++ */
    12491249                                      : 7; /* Assumes a newline after %{C++ */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette