VDScriptAst.cpp revision db453c26f429ba8057ea92644ddd59279b9a918d
/** @file
*
* VBox HDD container test utility - scripting engine AST node related functions.
*/
/*
* Copyright (C) 2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#define LOGGROUP LOGGROUP_DEFAULT
#include "VDScriptAst.h"
{
{
{
/** @todo. */
break;
}
{
if (pAstNodeArg->pType)
if (pAstNodeArg->pArgIde)
break;
}
break;
break;
break;
case VDSCRIPTASTCLASS_INVALID:
default:
}
}
{
switch (enmClass)
{
cbAlloc = sizeof(VDSCRIPTASTFN);
break;
cbAlloc = sizeof(VDSCRIPTASTFNARG);
break;
cbAlloc = sizeof(VDSCRIPTASTDECL);
break;
cbAlloc = sizeof(VDSCRIPTASTSTMT);
break;
case VDSCRIPTASTCLASS_INVALID:
default:
}
if (pAstNode)
{
}
return pAstNode;
}
{
PVDSCRIPTASTIDE pAstNode = (PVDSCRIPTASTIDE)RTMemAllocZ(RT_OFFSETOF(VDSCRIPTASTIDE, aszIde[cchIde + 1]));
if (pAstNode)
{
}
return pAstNode;
}