[VBSCRIPT]

* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61471
This commit is contained in:
Amine Khaldi
2014-01-01 18:29:51 +00:00
parent 7599273da4
commit 7335a1dec5
13 changed files with 19 additions and 81 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ add_idl_headers(vbscript_idlheader vbscript_classes.idl vbsglobal.idl vbsregexp5
add_typelib(vbsglobal.idl vbsregexp10.idl vbsregexp55.idl)
add_library(vbscript SHARED ${SOURCE} vbscript.rc)
set_module_type(vbscript win32dll)
target_link_libraries(vbscript wine)
target_link_libraries(vbscript uuid wine)
add_importlibs(vbscript oleaut32 ole32 user32 msvcrt kernel32 ntdll)
add_dependencies(vbscript vbscript_idlheader stdole2)
add_cd_file(TARGET vbscript DESTINATION reactos/system32 FOR all)
-7
View File
@@ -16,15 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include "vbscript.h"
#include "parse.h"
//#include "parser.tab.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
WINE_DECLARE_DEBUG_CHANNEL(vbscript_disas);
typedef struct _statement_ctx_t {
-5
View File
@@ -17,11 +17,6 @@
*/
#include "vbscript.h"
#include "vbscript_defs.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
static HRESULT Err_Description(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VARIANT *res)
{
+1 -10
View File
@@ -16,18 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <math.h>
#include "vbscript.h"
#include "vbscript_defs.h"
#include <mshtmhst.h>
#include <objsafe.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
#include <math.h>
#define round(x) (((x) < 0) ? (int)((x) - 0.5) : (int)((x) + 0.5))
-6
View File
@@ -16,14 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include "vbscript.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
static DISPID propput_dispid = DISPID_PROPERTYPUT;
typedef struct {
-7
View File
@@ -16,16 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <assert.h>
#include "vbscript.h"
#include "parse.h"
#include "parser.tab.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
static const WCHAR andW[] = {'a','n','d',0};
static const WCHAR byrefW[] = {'b','y','r','e','f',0};
static const WCHAR byvalW[] = {'b','y','v','a','l',0};
-6
View File
@@ -76,13 +76,7 @@
/* Line 268 of yacc.c */
#line 19 "parser.y"
#include "vbscript.h"
#include "parse.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
static int parser_error(parser_ctx_t *,const char*);
-7
View File
@@ -31,14 +31,7 @@
* the Initial Developer. All Rights Reserved.
*/
#include <assert.h>
#include "vbscript.h"
#include "regexp.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
/* FIXME: Better error handling */
#define ReportRegExpError(a,b,c)
-6
View File
@@ -16,14 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include "vbscript.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
#define FDEX_VERSION_MASK 0xf0000000
static inline BOOL is_func_id(vbdisp_t *This, DISPID id)
+2 -5
View File
@@ -17,12 +17,9 @@
*/
#include "vbscript.h"
#include "regexp.h"
#include "vbsregexp55.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
#include <initguid.h>
#include <vbsregexp55.h>
#define REGEXP_TID_LIST \
XDIID(RegExp2), \
+1 -7
View File
@@ -16,15 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
//#include <assert.h>
#include "vbscript.h"
#include <objsafe.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
#include <vbscript_classes.h>
#ifdef _WIN64
+10 -2
View File
@@ -16,6 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdarg.h>
#define WIN32_NO_STATUS
@@ -27,14 +28,17 @@
#include <windef.h>
#include <winbase.h>
#include <ole2.h>
#include <objsafe.h>
#include <dispex.h>
#include <activscp.h>
#include <vbscript_classes.h>
#include <mshtmhst.h>
#include <wine/list.h>
#include <wine/unicode.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
typedef struct {
void **blocks;
DWORD block_cnt;
@@ -410,3 +414,7 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
return ret;
}
#include "parse.h"
#include "regexp.h"
#include "vbscript_defs.h"
+4 -12
View File
@@ -16,23 +16,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <initguid.h>
#include "vbscript.h"
#include <vbscript.h>
#include <objsafe.h>
#include <mshtmhst.h>
#include <rpcproxy.h>
//#include "vbscript_classes.h"
#include "vbsglobal.h"
#include "vbsregexp55.h"
#include <initguid.h>
#include <vbscript_classes.h>
#include <vbsglobal.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(vbscript);
WINE_DECLARE_DEBUG_CHANNEL(heap);
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
static HINSTANCE vbscript_hinstance;
static ITypeLib *typelib;