gobject-introspection r461 - in trunk: giscanner tools



Author: walters
Date: Fri Aug 22 21:08:06 2008
New Revision: 461
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=461&view=rev

Log:
Install config.py, better error handling if we forget --raw


Modified:
   trunk/giscanner/Makefile.am
   trunk/tools/generate.c

Modified: trunk/giscanner/Makefile.am
==============================================================================
--- trunk/giscanner/Makefile.am	(original)
+++ trunk/giscanner/Makefile.am	Fri Aug 22 21:08:06 2008
@@ -39,6 +39,7 @@
 	__init__.py		\
 	ast.py			\
 	cgobject.py		\
+	config.py		\
 	gidlparser.py		\
 	gidlwriter.py		\
 	girparser.py		\

Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c	(original)
+++ trunk/tools/generate.c	Fri Aug 22 21:08:06 2008
@@ -1127,6 +1127,13 @@
   GModule *handle; 
 
   handle = g_module_open (filename, G_MODULE_BIND_LOCAL|G_MODULE_BIND_LAZY);
+  if (handle == NULL)
+    {
+      g_printerr ("Could not load typelib from '%s': %s\n", 
+		  filename, g_module_error ());
+      return NULL;
+    }
+
   if (!g_module_symbol (handle, "_G_TYPELIB", (gpointer *) &typelib))
     {
       g_printerr ("Could not load typelib from '%s': %s\n", 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]