r18640 - gnucash/trunk - Move splint-defs.h to src/debug.

Geert Janssens gjanssens at code.gnucash.org
Thu Feb 11 04:08:08 EST 2010


Author: gjanssens
Date: 2010-02-11 04:08:08 -0500 (Thu, 11 Feb 2010)
New Revision: 18640
Trac: http://svn.gnucash.org/trac/changeset/18640

Added:
   gnucash/trunk/src/debug/splint-defs.h
Removed:
   gnucash/trunk/splint-defs.h
Modified:
   gnucash/trunk/src/backend/dbi/Makefile.am
   gnucash/trunk/src/backend/sql/Makefile.am
Log:
Move splint-defs.h to src/debug.

It's only used for debugging. Note that the current splint-defs.h causes compilation errors due to redefinition of function declarations. These should be fixed when splint is to be run again.

Deleted: gnucash/trunk/splint-defs.h
===================================================================
--- gnucash/trunk/splint-defs.h	2010-02-10 22:55:11 UTC (rev 18639)
+++ gnucash/trunk/splint-defs.h	2010-02-11 09:08:08 UTC (rev 18640)
@@ -1,121 +0,0 @@
-/********************************************************************
- * splint-defs.h: declarations from system include files needed to  *
- *                provide splint with memory usage patterns.        *
- *                                                                  *
- * This program is free software; you can redistribute it and/or    *
- * modify it under the terms of the GNU General Public License as   *
- * published by the Free Software Foundation; either version 2 of   *
- * the License, or (at your option) any later version.              *
- *                                                                  *
- * This program is distributed in the hope that it will be useful,  *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
- * GNU General Public License for more details.                     *
- *                                                                  *
- * You should have received a copy of the GNU General Public License*
- * along with this program; if not, contact:                        *
- *                                                                  *
- * Free Software Foundation           Voice:  +1-617-542-5942       *
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
- * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
-\********************************************************************/
-
-/* Only need this if running splint.  This file contains lines copied from the other
-include files, but with the splint annotations added.  Yes, this is dangerous if the
-definitions change.  However, these definitions aren't used during regular compilation,
-only when running splint, so the danger is manageable. */
-
-#if !defined( SPLINT_DEFS_H ) && defined( S_SPLINT_S )
-#define SPLINT_DEFS_H
-
-/*@ -incondefs @*/
-
-/* Each section is surrounded by the include guard of the appropriate include file */
-
-/* dbi.h */
-
-#ifdef __DBI_H__
-void dbi_conn_close( /*@ only @*/ dbi_conn );
-int dbi_conn_error( dbi_conn, /*@ out @*/ const char** );
-dbi_result dbi_conn_get_table_list( dbi_conn, const char*, /*@ null @*/ const char* );
-/*@ dependent @*/ const char* dbi_conn_get_option( dbi_conn, const char* );
-int dbi_result_free( /*@ only @*/ dbi_result );
-/*@ dependent @*/ const char* dbi_result_get_string_idx( dbi_result, unsigned int );
-dbi_driver dbi_driver_list( /*@ null @*/ dbi_driver );
-size_t dbi_conn_quote_string_copy( dbi_conn, const char*, /*@ out @*/ char** );
-/*@ dependent @*/ dbi_driver_get_name( dbi_driver );
-#endif
-
-/* gdate.h */
-
-#ifdef __G_DATE_H__
-void g_date_free( /*@ only @*/ GDate* );
-#endif
-
-/* gmem.h */
-
-#ifdef __G_MEM_H__
-/*@ null @*/ /*@ only @*/ /*@ out @*/ gpointer g_malloc(gsize n_bytes);
-/*@ null @*/ /*@ only @*/ /*@ out @*/ gpointer g_malloc0(gsize n_bytes);
-void g_free( /*@ only @*/ gpointer );
-#endif
-
-/* gvalue.h */
-
-#ifdef __G_VALUE_H__
-GValue* g_value_init( /*@ out @*/ GValue*, GType );
-/*@ dependent @*/ const gchar* g_value_get_string(const GValue *value);
-void g_value_take_string( GValue*, /*@ only @*/ const gchar *);
-#endif
-
-/* gstring.h */
-
-#ifdef __G_STRING_H__
-gchar* g_string_free( /*@ only @*/ GString*, gboolean );
-#endif
-
-/* ghash.h */
-
-#ifdef __G_HASH_H__
-GHashTable* g_hash_table_new_full( GHashFunc, GEqualFunc, /*@ null @*/ GDestroyNotify, /*@ null @*/ GDestroyNotify );
-void g_hash_table_insert(GHashTable *hash_table, /*@ only @*/ gpointer key, gpointer value);
-/*@ dependent @*/ g_hash_table_lookup( GHashTable* hash_table, gpointer key );
-#endif
-
-/* glist.h */
-
-#ifdef __G_LIST_H__
-GList* g_list_append( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
-GList* g_list_prepend( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
-void g_list_free( /*@ only @*/ GList* );
-#endif
-
-/* gslist.h */
-
-#ifdef __G_SLIST_H__
-GSList* g_slist_append( /*@ returned @*//*@ null @*/ GSList*, /*@ keep @*/ gpointer );
-void g_slist_free( /*@ only @*/ GSList* );
-#endif
-
-/* gstrfuncs.h */
-
-#ifdef __G_STRFUNCS_H__
-gint64 g_ascii_strtoll( const gchar*, /*@ null @*/ gchar**, guint );
-#endif
-
-/* gtype.h */
-
-#ifdef __G_TYPE_H__
-/*@ dependent @*/ GTypeInstance* g_type_check_instance_cast(GTypeInstance *instance,
-						 				GType iface_type);
-#endif
-
-/* gtestutils.h */
-
-#ifdef __G_TEST_UTILS_H__
-#undef g_assert
-#define g_assert assert
-#endif
-
-/*@ +incondefs @*/
-#endif /* SPLINT_DEFS_H */

Modified: gnucash/trunk/src/backend/dbi/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/dbi/Makefile.am	2010-02-10 22:55:11 UTC (rev 18639)
+++ gnucash/trunk/src/backend/dbi/Makefile.am	2010-02-11 09:08:08 UTC (rev 18640)
@@ -4,11 +4,13 @@
 pkglib_LTLIBRARIES = libgncmod-backend-dbi.la
 
 
+# "${top_srcdir}/src/debug" below is for the splint header
 AM_CFLAGS = \
   -I.. -I../.. \
   -DLOCALE_DIR=\""$(datadir)/locale"\" \
   -I${top_srcdir}/src/backend \
   -I${top_srcdir}/src/backend/sql \
+  -I${top_srcdir}/src/debug \
   -I${top_srcdir}/src/engine \
   -I${top_srcdir}/src/core-utils \
   -I${top_srcdir}/lib/libc \

Modified: gnucash/trunk/src/backend/sql/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/sql/Makefile.am	2010-02-10 22:55:11 UTC (rev 18639)
+++ gnucash/trunk/src/backend/sql/Makefile.am	2010-02-11 09:08:08 UTC (rev 18640)
@@ -3,10 +3,12 @@
 # Now a shared library AND a GModule
 lib_LTLIBRARIES = libgnc-backend-sql.la
 
+# "${top_srcdir}/src/debug" below is for the splint header
 AM_CFLAGS = \
   -I.. -I../.. \
   -DLOCALE_DIR=\""$(datadir)/locale"\" \
   -I${top_srcdir}/src/backend \
+  -I${top_srcdir}/src/debug \
   -I${top_srcdir}/src/engine \
   -I${top_srcdir}/src/core-utils\
   -I${top_srcdir}/lib/libc\

Copied: gnucash/trunk/src/debug/splint-defs.h (from rev 18624, gnucash/trunk/splint-defs.h)
===================================================================
--- gnucash/trunk/src/debug/splint-defs.h	                        (rev 0)
+++ gnucash/trunk/src/debug/splint-defs.h	2010-02-11 09:08:08 UTC (rev 18640)
@@ -0,0 +1,121 @@
+/********************************************************************
+ * splint-defs.h: declarations from system include files needed to  *
+ *                provide splint with memory usage patterns.        *
+ *                                                                  *
+ * This program is free software; you can redistribute it and/or    *
+ * modify it under the terms of the GNU General Public License as   *
+ * published by the Free Software Foundation; either version 2 of   *
+ * the License, or (at your option) any later version.              *
+ *                                                                  *
+ * This program is distributed in the hope that it will be useful,  *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
+ * GNU General Public License for more details.                     *
+ *                                                                  *
+ * You should have received a copy of the GNU General Public License*
+ * along with this program; if not, contact:                        *
+ *                                                                  *
+ * Free Software Foundation           Voice:  +1-617-542-5942       *
+ * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
+ * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
+\********************************************************************/
+
+/* Only need this if running splint.  This file contains lines copied from the other
+include files, but with the splint annotations added.  Yes, this is dangerous if the
+definitions change.  However, these definitions aren't used during regular compilation,
+only when running splint, so the danger is manageable. */
+
+#if !defined( SPLINT_DEFS_H ) && defined( S_SPLINT_S )
+#define SPLINT_DEFS_H
+
+/*@ -incondefs @*/
+
+/* Each section is surrounded by the include guard of the appropriate include file */
+
+/* dbi.h */
+
+#ifdef __DBI_H__
+void dbi_conn_close( /*@ only @*/ dbi_conn );
+int dbi_conn_error( dbi_conn, /*@ out @*/ const char** );
+dbi_result dbi_conn_get_table_list( dbi_conn, const char*, /*@ null @*/ const char* );
+/*@ dependent @*/ const char* dbi_conn_get_option( dbi_conn, const char* );
+int dbi_result_free( /*@ only @*/ dbi_result );
+/*@ dependent @*/ const char* dbi_result_get_string_idx( dbi_result, unsigned int );
+dbi_driver dbi_driver_list( /*@ null @*/ dbi_driver );
+size_t dbi_conn_quote_string_copy( dbi_conn, const char*, /*@ out @*/ char** );
+/*@ dependent @*/ dbi_driver_get_name( dbi_driver );
+#endif
+
+/* gdate.h */
+
+#ifdef __G_DATE_H__
+void g_date_free( /*@ only @*/ GDate* );
+#endif
+
+/* gmem.h */
+
+#ifdef __G_MEM_H__
+/*@ null @*/ /*@ only @*/ /*@ out @*/ gpointer g_malloc(gsize n_bytes);
+/*@ null @*/ /*@ only @*/ /*@ out @*/ gpointer g_malloc0(gsize n_bytes);
+void g_free( /*@ only @*/ gpointer );
+#endif
+
+/* gvalue.h */
+
+#ifdef __G_VALUE_H__
+GValue* g_value_init( /*@ out @*/ GValue*, GType );
+/*@ dependent @*/ const gchar* g_value_get_string(const GValue *value);
+void g_value_take_string( GValue*, /*@ only @*/ const gchar *);
+#endif
+
+/* gstring.h */
+
+#ifdef __G_STRING_H__
+gchar* g_string_free( /*@ only @*/ GString*, gboolean );
+#endif
+
+/* ghash.h */
+
+#ifdef __G_HASH_H__
+GHashTable* g_hash_table_new_full( GHashFunc, GEqualFunc, /*@ null @*/ GDestroyNotify, /*@ null @*/ GDestroyNotify );
+void g_hash_table_insert(GHashTable *hash_table, /*@ only @*/ gpointer key, gpointer value);
+/*@ dependent @*/ g_hash_table_lookup( GHashTable* hash_table, gpointer key );
+#endif
+
+/* glist.h */
+
+#ifdef __G_LIST_H__
+GList* g_list_append( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
+GList* g_list_prepend( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
+void g_list_free( /*@ only @*/ GList* );
+#endif
+
+/* gslist.h */
+
+#ifdef __G_SLIST_H__
+GSList* g_slist_append( /*@ returned @*//*@ null @*/ GSList*, /*@ keep @*/ gpointer );
+void g_slist_free( /*@ only @*/ GSList* );
+#endif
+
+/* gstrfuncs.h */
+
+#ifdef __G_STRFUNCS_H__
+gint64 g_ascii_strtoll( const gchar*, /*@ null @*/ gchar**, guint );
+#endif
+
+/* gtype.h */
+
+#ifdef __G_TYPE_H__
+/*@ dependent @*/ GTypeInstance* g_type_check_instance_cast(GTypeInstance *instance,
+						 				GType iface_type);
+#endif
+
+/* gtestutils.h */
+
+#ifdef __G_TEST_UTILS_H__
+#undef g_assert
+#define g_assert assert
+#endif
+
+/*@ +incondefs @*/
+#endif /* SPLINT_DEFS_H */



More information about the gnucash-changes mailing list