VirtualBox

Changeset 105757 in vbox


Ignore:
Timestamp:
Aug 21, 2024 11:42:13 AM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164469
Message:

Runtime/script: Add a simple lexer API to turn a stream of characters into tokens for a defined configuration, bugref:10394 [scm]

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/script.h

    r105755 r105757  
    1     /* $Id$ */
     1/* $Id$ */
    22/** @file
    33 * IPRT - RTScript, Script language support in IPRT.
     
    55
    66/*
    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) 2024 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>.
    1624 *
    1725 * The contents of this file may alternatively be used under the terms
    1826 * of the Common Development and Distribution License Version 1.0
    19  * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
    20  * VirtualBox OSE distribution, in which case the provisions of the
     27 * (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
    2129 * CDDL are applicable instead of those of the GPL.
    2230 *
    2331 * You may elect to license modified versions of this file under the
    2432 * terms and conditions of either the GPL or the CDDL or both.
    25  */
    26 
    27 #ifndef ___iprt_script_h
    28 #define ___iprt_script_h
     33 *
     34 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
     35 */
     36
     37#ifndef IPRT_INCLUDED_script_h
     38#define IPRT_INCLUDED_script_h
     39#ifndef RT_WITHOUT_PRAGMA_ONCE
     40# pragma once
     41#endif
    2942
    3043#include <iprt/cdefs.h>
     
    10971110RT_C_DECLS_END
    10981111
    1099 #endif
    1100 
     1112#endif /* !IPRT_INCLUDED_script_h */
     1113
  • trunk/include/iprt/scriptbase.h

    r105755 r105757  
    55
    66/*
    7  * Copyright (C) 2017 Oracle Corporation
     7 * Copyright (C) 2024 Oracle and/or its affiliates.
    88 *
    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.
     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>.
    1624 *
    1725 * The contents of this file may alternatively be used under the terms
    1826 * of the Common Development and Distribution License Version 1.0
    19  * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
    20  * VirtualBox OSE distribution, in which case the provisions of the
     27 * (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
    2129 * CDDL are applicable instead of those of the GPL.
    2230 *
    2331 * You may elect to license modified versions of this file under the
    2432 * 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
    2535 */
    2636
    27 #ifndef ___iprt_scriptbase_h
    28 #define ___iprt_scriptbase_h
     37#ifndef IPRT_INCLUDED_scriptbase_h
     38#define IPRT_INCLUDED_scriptbase_h
     39#ifndef RT_WITHOUT_PRAGMA_ONCE
     40# pragma once
     41#endif
    2942
    3043#include <iprt/types.h>
     
    117130RT_C_DECLS_END
    118131
    119 #endif
     132#endif /* !IPRT_INCLUDED_scriptbase_h */
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