Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
064c48a6
Commit
064c48a6
authored
Dec 15, 2002
by
Ove Kaaven
Committed by
Alexandre Julliard
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include guiddef.h in widltypes.h.
parent
e4eee61a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
header.c
tools/widl/header.c
+1
-1
parser.l
tools/widl/parser.l
+2
-2
parser.y
tools/widl/parser.y
+1
-1
widltypes.h
tools/widl/widltypes.h
+6
-8
No files found.
tools/widl/header.c
View file @
064c48a6
...
...
@@ -603,7 +603,7 @@ void write_forward(type_t *iface)
void
write_guid
(
type_t
*
iface
)
{
uuid_t
*
uuid
=
get_attrp
(
iface
->
attrs
,
ATTR_UUID
);
UUID
*
uuid
=
get_attrp
(
iface
->
attrs
,
ATTR_UUID
);
if
(
!
uuid
)
return
;
fprintf
(
header
,
"DEFINE_GUID(IID_%s, 0x%08lx, 0x%04x, 0x%04x, 0x%02x,0x%02x, 0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x);
\n
"
,
iface
->
name
,
uuid
->
Data1
,
uuid
->
Data2
,
uuid
->
Data3
,
uuid
->
Data4
[
0
],
uuid
->
Data4
[
1
],
...
...
tools/widl/parser.l
View file @
064c48a6
...
...
@@ -75,9 +75,9 @@ int import_stack_ptr = 0;
static void pop_import(void);
static
uuid_t
* parse_uuid(const char*u)
static
UUID
* parse_uuid(const char*u)
{
uuid_t* uuid = xmalloc(sizeof(uuid_t
));
UUID* uuid = xmalloc(sizeof(UUID
));
char b[3];
/* it would be nice to use UuidFromStringA */
uuid->Data1 = strtoul(u, NULL, 16);
...
...
tools/widl/parser.y
View file @
064c48a6
...
...
@@ -106,7 +106,7 @@ static type_t std_uhyper = { "MIDL_uhyper" };
var_t *var;
func_t *func;
char *str;
uuid_t
*uuid;
UUID
*uuid;
int num;
}
...
...
tools/widl/widltypes.h
View file @
064c48a6
...
...
@@ -22,15 +22,20 @@
#define __WIDL_WIDLTYPES_H
#include "windef.h"
#include "guiddef.h"
#include "wine/rpcfc.h"
#ifndef UUID_DEFINED
#define UUID_DEFINED
typedef
GUID
UUID
;
#endif
typedef
struct
_attr_t
attr_t
;
typedef
struct
_expr_t
expr_t
;
typedef
struct
_type_t
type_t
;
typedef
struct
_typeref_t
typeref_t
;
typedef
struct
_var_t
var_t
;
typedef
struct
_func_t
func_t
;
typedef
struct
_uuid_t
uuid_t
;
#define DECL_LINK(type) \
type *l_next; \
...
...
@@ -159,11 +164,4 @@ struct _func_t {
DECL_LINK
(
func_t
)
};
struct
_uuid_t
{
DWORD
Data1
;
WORD
Data2
;
WORD
Data3
;
BYTE
Data4
[
8
];
};
#endif
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