Changeset 105760 in vbox
- Timestamp:
- Aug 21, 2024 12:15:14 PM (3 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/script.h
r105757 r105760 368 368 * @param pCfg The lexer config to use for identifying the different tokens. 369 369 */ 370 RTDECL(int) RTScriptLexCreateFromReader(PRTSCRIPTLEX phScriptLex, PFNRTSCRIPTLEXRDR pfnReader, 370 RTDECL(int) RTScriptLexCreateFromReader(PRTSCRIPTLEX phScriptLex, PFNRTSCRIPTLEXRDR pfnReader, 371 371 PFNRTSCRIPTLEXDTOR pfnDtor, void *pvUser, 372 372 size_t cchBuf, PRTSTRCACHE phStrCacheId, PRTSTRCACHE phStrCacheStringLit, -
trunk/src/VBox/Runtime/common/script/scriptlex.cpp
r105753 r105760 5 5 6 6 /* 7 * Copyright (C) 2017 Oracle Corporation 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 7 * Copyright (C) 2022-2023 Oracle and/or its affiliates. 8 * 9 * This file is part of VirtualBox base platform packages, as 10 * available from https://www.virtualbox.org. 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation, in version 3 of the 15 * License. 16 * 17 * This program is distributed in the hope that it will be useful, but 18 * WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 * General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, see <https://www.gnu.org/licenses>. 16 24 * 17 25 * The contents of this file may alternatively be used under the terms 18 26 * of the Common Development and Distribution License Version 1.0 19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the20 * VirtualBox OSEdistribution, in which case the provisions of the27 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included 28 * in the VirtualBox distribution, in which case the provisions of the 21 29 * CDDL are applicable instead of those of the GPL. 22 30 * 23 31 * You may elect to license modified versions of this file under the 24 32 * terms and conditions of either the GPL or the CDDL or both. 33 * 34 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0 25 35 */ 26 36 … … 29 39 * Header Files * 30 40 *********************************************************************************************************************************/ 31 #define LOG_GROUP RTLOGGROUP_DEFAULT // @todo41 #define LOG_GROUP RTLOGGROUP_DEFAULT /// @todo 32 42 #include <iprt/script.h> 33 43 … … 155 165 * @param psz The string to match against. 156 166 * @param pszExclude When the string matched but the input continues 157 * with one of the characters in this string the 158 * match will not167 * with one of the characters in this string there will 168 * be no match. 159 169 */ 160 170 DECLINLINE(bool) rtScriptLexMatchStrConsume(PRTSCRIPTLEXINT pThis, char ch, const char *psz, … … 300 310 continue; 301 311 302 /** @todo :Not quite correct when there is an end of stream before the closing lexeme.312 /** @todo Not quite correct when there is an end of stream before the closing lexeme. 303 313 * But doesn't hurt at the moment. */ 304 314 if ( chTmp == '\0' … … 576 586 if (RT_LIKELY(pThis)) 577 587 { 578 pThis->u32Magic = 0xfefecafe; /** @todo */588 pThis->u32Magic = 0xfefecafe; /** @todo */ 579 589 pThis->Pos.iLine = 1; 580 590 pThis->Pos.iCh = 1;
Note:
See TracChangeset
for help on using the changeset viewer.