projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea1fb51
)
scanner: Emit wl_*_destroy stub even if interface has a destructor
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 13 Aug 2013 19:06:30 +0000
(20:06 +0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 30 Aug 2013 22:53:55 +0000
(15:53 -0700)
If an interface has a destructor but no 'destroy' method we used to
not emit a destroy method. Now with the fix for missing destroy
requests for wl_pointer etc we need to emit the local wl_*_destroy
always.
src/scanner.c
patch
|
blob
|
history
diff --git
a/src/scanner.c
b/src/scanner.c
index
5124000
..
d02d865
100644
(file)
--- a/
src/scanner.c
+++ b/
src/scanner.c
@@
-606,7
+606,7
@@
emit_stubs(struct wl_list *message_list, struct interface *interface)
exit(EXIT_FAILURE);
}
- if (!has_destr
uctor
&& strcmp(interface->name, "wl_display") != 0)
+ if (!has_destr
oy
&& strcmp(interface->name, "wl_display") != 0)
printf("static inline void\n"
"%s_destroy(struct %s *%s)\n"
"{\n"