zehortigoza pushed a commit to branch master.

commit 4f60ee4522e49e40d3017e050077f189b27e52c9
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jun 19 11:18:17 2013 +0100

    inform users when eldbus-codegen is cowardly refusing to generate code
---
 src/codegen/parser.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/codegen/parser.c b/src/codegen/parser.c
index 9f4081f..f695490 100644
--- a/src/codegen/parser.c
+++ b/src/codegen/parser.c
@@ -140,7 +140,10 @@ interface_close(void)
 {
    //its not necessary generate code to FreeDesktop interfaces
    if (!strncmp(iface->name, DBUS_INTERFACE, strlen(DBUS_INTERFACE)))
-     interface_free(iface);
+     {
+        printf("Refusing to generate code for FDO interface; see 
eldbus_freedesktop.h\n");
+        interface_free(iface);
+     }
    iface = NULL;
 }
 

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to