2010-07-29 12:58:38 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ihost.h"
|
|
|
|
|
|
|
|
extern IHost host_obj;
|
2010-07-30 12:01:55 +00:00
|
|
|
|
2011-08-23 13:15:48 +00:00
|
|
|
extern IArguments2 arguments_obj;
|
|
|
|
|
2010-07-30 12:01:55 +00:00
|
|
|
extern ITypeInfo *host_ti;
|
2011-07-20 19:47:38 +00:00
|
|
|
|
2011-08-23 13:15:48 +00:00
|
|
|
extern ITypeInfo *arguments_ti;
|
|
|
|
|
2011-07-20 19:47:38 +00:00
|
|
|
extern WCHAR scriptFullName[];
|
2011-08-23 13:15:54 +00:00
|
|
|
|
|
|
|
extern WCHAR **argums;
|
|
|
|
|
|
|
|
extern int numOfArgs;
|
2011-08-23 13:16:08 +00:00
|
|
|
|
|
|
|
extern VARIANT_BOOL wshInteractive;
|
2015-01-29 11:56:22 +00:00
|
|
|
|
|
|
|
static inline void * __WINE_ALLOC_SIZE(1) heap_alloc(size_t len)
|
|
|
|
{
|
|
|
|
return HeapAlloc(GetProcessHeap(), 0, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t len)
|
|
|
|
{
|
|
|
|
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL heap_free(void *mem)
|
|
|
|
{
|
|
|
|
return HeapFree(GetProcessHeap(), 0, mem);
|
|
|
|
}
|