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
a58e4cc0
Commit
a58e4cc0
authored
Aug 20, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Check for redefinition of named user types.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2b6cf134
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
typetree.c
tools/widl/typetree.c
+8
-0
No files found.
tools/widl/typetree.c
View file @
a58e4cc0
...
...
@@ -285,6 +285,8 @@ type_t *type_new_enum(const char *name, struct namespace *namespace, int defined
t
->
details
.
enumeration
->
enums
=
enums
;
t
->
defined
=
TRUE
;
}
else
if
(
defined
)
error_loc
(
"redefinition of enum %s
\n
"
,
name
);
return
t
;
}
...
...
@@ -311,6 +313,8 @@ type_t *type_new_struct(char *name, struct namespace *namespace, int defined, va
t
->
details
.
structure
->
fields
=
fields
;
t
->
defined
=
TRUE
;
}
else
if
(
defined
)
error_loc
(
"redefinition of struct %s
\n
"
,
name
);
return
t
;
}
...
...
@@ -336,6 +340,8 @@ type_t *type_new_nonencapsulated_union(const char *name, int defined, var_list_t
t
->
details
.
structure
->
fields
=
fields
;
t
->
defined
=
TRUE
;
}
else
if
(
defined
)
error_loc
(
"redefinition of union %s
\n
"
,
name
);
return
t
;
}
...
...
@@ -367,6 +373,8 @@ type_t *type_new_encapsulated_union(char *name, var_t *switch_field, var_t *unio
t
->
details
.
structure
->
fields
=
append_var
(
t
->
details
.
structure
->
fields
,
union_field
);
t
->
defined
=
TRUE
;
}
else
error_loc
(
"redefinition of union %s
\n
"
,
name
);
return
t
;
}
...
...
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