VirtualBox

Changeset 108281 in vbox


Ignore:
Timestamp:
Feb 19, 2025 9:59:01 AM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167623
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/script/scriptlex.cpp

    r108280 r108281  
    588588 * @param   cchCur                  How much of the current buffer is used.
    589589 * @param   cchAdd                  How many additional characters are required.
    590  * @param   pTok                    The token to fill in if re-allocating the buffer failed. 
     590 * @param   pTok                    The token to fill in if re-allocating the buffer failed.
    591591 */
    592592DECLINLINE(bool) rtScriptLexEnsureTmpBufSpace(PRTSCRIPTLEXINT pThis, char **ppchTmp, size_t *pcchTmp,
     
    674674
    675675            if (chTmp == '\0')
    676                 break; /* End of stream before closing lexeme. */ 
     676                break; /* End of stream before closing lexeme. */
    677677
    678678            if (!rtScriptLexEnsureTmpBufSpace(pThis, &pszTmp, &cchTmp, cchComment,
     
    892892
    893893                    if (pCfg->fFlags & RTSCRIPT_LEX_CFG_F_COMMENTS_AS_TOKENS)
    894                     {   
     894                    {
    895895                        if (phStrCacheComments)
    896896                            *phStrCacheComments = pThis->hStrCacheComments;
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