VirtualBox

Ignore:
Timestamp:
Feb 19, 2025 9:28:41 AM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167622
Message:

Runtime/RTScriptLex*: Implement support for optionally returning parsed comments (single and multi line) as tokens when enabled in the lexer config, bugref:10321

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/testcase/tstDisasmArmv8-1.cpp

    r108049 r108280  
    179179                                         NULL /*pfnDtor*/, &Rdr /*pvUser*/, cbSrc,
    180180                                         NULL /*phStrCacheId*/, NULL /*phStrCacheStringLit*/,
    181                                          &s_LexCfg);
     181                                         NULL /*phStrCacheComments*/, &s_LexCfg);
    182182    RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
    183183    if (RT_FAILURE(rc))
     
    233233                RTSCRIPTLEX hLexDis = NULL;
    234234                rc = RTScriptLexCreateFromString(&hLexDis, szOutput, NULL /*phStrCacheId*/,
    235                                                  NULL /*phStrCacheStringLit*/, &s_LexCfg);
     235                                                 NULL /*phStrCacheStringLit*/, NULL /*phStrCacheComments*/,
     236                                                 &s_LexCfg);
    236237                RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
    237238                if (RT_SUCCESS(rc))
     
    490491                                                 NULL /*pfnDtor*/, &Rdr /*pvUser*/, 0 /*cchBuf*/,
    491492                                                 NULL /*phStrCacheId*/, NULL /*phStrCacheStringLit*/,
    492                                                  &s_LexCfg);
     493                                                 NULL /*phStrCacheComments*/, &s_LexCfg);
    493494                RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
    494495
     
    496497                RTSCRIPTLEX hLexDis = NULL;
    497498                rc = RTScriptLexCreateFromString(&hLexDis, szOutput, NULL /*phStrCacheId*/,
    498                                                  NULL /*phStrCacheStringLit*/, &s_LexCfg);
     499                                                 NULL /*phStrCacheStringLit*/, NULL /*phStrCacheComments*/,
     500                                                 &s_LexCfg);
    499501                RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
    500502                if (RT_SUCCESS(rc))
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