Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
35389149
Commit
35389149
authored
May 19, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export the debug API as functions instead of pointers.
A few other import fixes for Mingw.
parent
454d99f0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
22 deletions
+55
-22
debugtools.c
dlls/ntdll/debugtools.c
+1
-0
debug.h
include/wine/debug.h
+10
-17
library.h
include/wine/library.h
+7
-0
Makefile.in
library/Makefile.in
+1
-1
debug.c
library/debug.c
+27
-0
wine_unicode.def
unicode/wine_unicode.def
+9
-4
No files found.
dlls/ntdll/debugtools.c
View file @
35389149
...
...
@@ -27,6 +27,7 @@
#include "wine/debug.h"
#include "wine/exception.h"
#include "wine/library.h"
#include "wine/unicode.h"
#include "thread.h"
#include "winbase.h"
...
...
include/wine/debug.h
View file @
35389149
...
...
@@ -87,13 +87,6 @@ enum __WINE_DEBUG_CLASS {
#endif
/* __GNUC__ */
extern
const
char
*
(
*
__wine_dbgstr_an
)(
const
char
*
s
,
int
n
);
extern
const
char
*
(
*
__wine_dbgstr_wn
)(
const
WCHAR
*
s
,
int
n
);
extern
const
char
*
(
*
__wine_dbgstr_guid
)(
const
struct
_GUID
*
id
);
extern
int
(
*
__wine_dbg_vprintf
)(
const
char
*
format
,
va_list
args
);
extern
int
(
*
__wine_dbg_vlog
)(
int
cls
,
const
char
*
channel
,
const
char
*
function
,
const
char
*
format
,
va_list
args
);
/*
* Exported definitions and macros
...
...
@@ -102,11 +95,11 @@ extern int (*__wine_dbg_vlog)( int cls, const char *channel,
/* These function return a printable version of a string, including
quotes. The string will be valid for some time, but not indefinitely
as strings are re-used. */
inline
static
const
char
*
wine_dbgstr_guid
(
const
struct
_GUID
*
id
)
{
return
__wine_dbgstr_guid
(
id
);
}
inline
static
const
char
*
wine_dbgstr_an
(
const
char
*
s
,
int
n
)
{
return
__wine_dbgstr_an
(
s
,
n
);
}
inline
static
const
char
*
wine_dbgstr_wn
(
const
WCHAR
*
s
,
int
n
)
{
return
__wine_dbgstr_wn
(
s
,
n
);
}
inline
static
const
char
*
wine_dbgstr_a
(
const
char
*
s
)
{
return
__wine_dbgstr_an
(
s
,
-
1
);
}
inline
static
const
char
*
wine_dbgstr_w
(
const
WCHAR
*
s
)
{
return
__wine_dbgstr_wn
(
s
,
-
1
);
}
extern
const
char
*
wine_dbgstr_guid
(
const
struct
_GUID
*
id
);
extern
const
char
*
wine_dbgstr_an
(
const
char
*
s
,
int
n
);
extern
const
char
*
wine_dbgstr_wn
(
const
WCHAR
*
s
,
int
n
);
extern
const
char
*
wine_dbgstr_a
(
const
char
*
s
);
extern
const
char
*
wine_dbgstr_w
(
const
WCHAR
*
s
);
extern
int
wine_dbg_printf
(
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
extern
int
wine_dbg_log
(
int
cls
,
const
char
*
ch
,
const
char
*
func
,
...
...
@@ -140,11 +133,11 @@ extern int wine_dbg_log( int cls, const char *ch, const char *func,
#ifdef __WINE__
/* Wine uses shorter names that are very likely to conflict with other software */
inline
static
const
char
*
debugstr_an
(
const
char
*
s
,
int
n
)
{
return
__
wine_dbgstr_an
(
s
,
n
);
}
inline
static
const
char
*
debugstr_wn
(
const
WCHAR
*
s
,
int
n
)
{
return
__
wine_dbgstr_wn
(
s
,
n
);
}
inline
static
const
char
*
debugstr_guid
(
const
struct
_GUID
*
id
)
{
return
__
wine_dbgstr_guid
(
id
);
}
inline
static
const
char
*
debugstr_a
(
const
char
*
s
)
{
return
__
wine_dbgstr_an
(
s
,
-
1
);
}
inline
static
const
char
*
debugstr_w
(
const
WCHAR
*
s
)
{
return
__
wine_dbgstr_wn
(
s
,
-
1
);
}
inline
static
const
char
*
debugstr_an
(
const
char
*
s
,
int
n
)
{
return
wine_dbgstr_an
(
s
,
n
);
}
inline
static
const
char
*
debugstr_wn
(
const
WCHAR
*
s
,
int
n
)
{
return
wine_dbgstr_wn
(
s
,
n
);
}
inline
static
const
char
*
debugstr_guid
(
const
struct
_GUID
*
id
)
{
return
wine_dbgstr_guid
(
id
);
}
inline
static
const
char
*
debugstr_a
(
const
char
*
s
)
{
return
wine_dbgstr_an
(
s
,
-
1
);
}
inline
static
const
char
*
debugstr_w
(
const
WCHAR
*
s
)
{
return
wine_dbgstr_wn
(
s
,
-
1
);
}
#define TRACE WINE_TRACE
#define TRACE_(ch) WINE_TRACE_(ch)
...
...
include/wine/library.h
View file @
35389149
...
...
@@ -43,6 +43,13 @@ extern WCHAR **__wine_main_wargv;
/* debugging */
extern
const
char
*
(
*
__wine_dbgstr_an
)(
const
char
*
s
,
int
n
);
extern
const
char
*
(
*
__wine_dbgstr_wn
)(
const
WCHAR
*
s
,
int
n
);
extern
const
char
*
(
*
__wine_dbgstr_guid
)(
const
struct
_GUID
*
id
);
extern
int
(
*
__wine_dbg_vprintf
)(
const
char
*
format
,
va_list
args
);
extern
int
(
*
__wine_dbg_vlog
)(
int
cls
,
const
char
*
channel
,
const
char
*
function
,
const
char
*
format
,
va_list
args
);
extern
void
wine_dbg_add_option
(
const
char
*
name
,
unsigned
char
set
,
unsigned
char
clear
);
/* portability */
...
...
library/Makefile.in
View file @
35389149
...
...
@@ -32,7 +32,7 @@ libwine.a: $(OBJS)
$(RANLIB)
$@
libwine.dll
:
$(OBJS)
$(DLLWRAP)
$(DLLWRAPFLAGS)
--export-all
--implib
libwine.a
-o
libwine.dll
$(OBJS)
$(DLLWRAP)
$(DLLWRAPFLAGS)
--export-all
--implib
libwine.a
-o
libwine.dll
$(OBJS)
-lmsvcrt
install_so
:
libwine.so.$(SOVERSION)
$(MKINSTALLDIRS)
$(libdir)
...
...
library/debug.c
View file @
35389149
...
...
@@ -337,3 +337,30 @@ const char * (*__wine_dbgstr_guid)( const struct _GUID *id ) = default_dbgstr_gu
int
(
*
__wine_dbg_vprintf
)(
const
char
*
format
,
va_list
args
)
=
default_dbg_vprintf
;
int
(
*
__wine_dbg_vlog
)(
int
cls
,
const
char
*
channel
,
const
char
*
function
,
const
char
*
format
,
va_list
args
)
=
default_dbg_vlog
;
/* wrappers to use the function pointers */
const
char
*
wine_dbgstr_guid
(
const
struct
_GUID
*
id
)
{
return
__wine_dbgstr_guid
(
id
);
}
const
char
*
wine_dbgstr_an
(
const
char
*
s
,
int
n
)
{
return
__wine_dbgstr_an
(
s
,
n
);
}
const
char
*
wine_dbgstr_wn
(
const
WCHAR
*
s
,
int
n
)
{
return
__wine_dbgstr_wn
(
s
,
n
);
}
const
char
*
wine_dbgstr_a
(
const
char
*
s
)
{
return
__wine_dbgstr_an
(
s
,
-
1
);
}
const
char
*
wine_dbgstr_w
(
const
WCHAR
*
s
)
{
return
__wine_dbgstr_wn
(
s
,
-
1
);
}
unicode/wine_unicode.def
View file @
35389149
EXPORTS
casemap_lower
casemap_upper
cp_enum_table
cp_get_table
cp_mbstowcs
cp_wcstombs
utf8_wcstombs
utf8_mbstowcs
cp_get_table
cp_enum_table
strcmpiW
strncmpiW
strstrW
strtolW
strtoulW
utf8_mbstowcs
utf8_wcstombs
wctype_table
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment