GnuCash 2.4.99
splint-defs.h
00001 /********************************************************************
00002  * splint-defs.h: declarations from system include files needed to  *
00003  *                provide splint with memory usage patterns.        *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021 \********************************************************************/
00022 
00023 /* Only need this if running splint.  This file contains lines copied from the other
00024 include files, but with the splint annotations added.  Yes, this is dangerous if the
00025 definitions change.  However, these definitions aren't used during regular compilation,
00026 only when running splint, so the danger is manageable. */
00027 
00028 #if !defined( SPLINT_DEFS_H ) && defined( S_SPLINT_S )
00029 #define SPLINT_DEFS_H
00030 
00031 /*@ -incondefs @*/
00032 
00033 /* Each section is surrounded by the include guard of the appropriate include file */
00034 
00035 /* dbi.h */
00036 
00037 #ifdef __DBI_H__
00038 void dbi_conn_close( /*@ only @*/ dbi_conn );
00039 int dbi_conn_error( dbi_conn, /*@ out @*/ const char** );
00040 dbi_result dbi_conn_get_table_list( dbi_conn, const char*, /*@ null @*/ const char* );
00041 /*@ dependent @*/
00042 const char* dbi_conn_get_option( dbi_conn, const char* );
00043 int dbi_result_free( /*@ only @*/ dbi_result );
00044 /*@ dependent @*/
00045 const char* dbi_result_get_string_idx( dbi_result, unsigned int );
00046 dbi_driver dbi_driver_list( /*@ null @*/ dbi_driver );
00047 size_t dbi_conn_quote_string_copy( dbi_conn, const char*, /*@ out @*/ char** );
00048 /*@ dependent @*/
00049 dbi_driver_get_name( dbi_driver );
00050 #endif
00051 
00052 /* gdate.h */
00053 
00054 #ifdef __G_DATE_H__
00055 void g_date_free( /*@ only @*/ GDate* );
00056 #endif
00057 
00058 /* gmem.h */
00059 
00060 #ifdef __G_MEM_H__
00061 /*@ null @*/ /*@ only @*/ /*@ out @*/ gpointer g_malloc(gsize n_bytes);
00062 /*@ null @*/ /*@ only @*/ /*@ out @*/
00063 gpointer g_malloc0(gsize n_bytes);
00064 void g_free( /*@ only @*/ gpointer );
00065 #endif
00066 
00067 /* gvalue.h */
00068 
00069 #ifdef __G_VALUE_H__
00070 GValue* g_value_init( /*@ out @*/ GValue*, GType );
00071 /*@ dependent @*/
00072 const gchar* g_value_get_string(const GValue *value);
00073 void g_value_take_string( GValue*, /*@ only @*/ const gchar *);
00074 #endif
00075 
00076 /* gstring.h */
00077 
00078 #ifdef __G_STRING_H__
00079 gchar* g_string_free( /*@ only @*/ GString*, gboolean );
00080 #endif
00081 
00082 /* ghash.h */
00083 
00084 #ifdef __G_HASH_H__
00085 GHashTable* g_hash_table_new_full( GHashFunc, GEqualFunc, /*@ null @*/ GDestroyNotify, /*@ null @*/ GDestroyNotify );
00086 void g_hash_table_insert(GHashTable *hash_table, /*@ only @*/ gpointer key, gpointer value);
00087 /*@ dependent @*/
00088 g_hash_table_lookup( GHashTable* hash_table, gpointer key );
00089 #endif
00090 
00091 /* glist.h */
00092 
00093 #ifdef __G_LIST_H__
00094 GList* g_list_append( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
00095 GList* g_list_prepend( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
00096 void g_list_free( /*@ only @*/ GList* );
00097 #endif
00098 
00099 /* gslist.h */
00100 
00101 #ifdef __G_SLIST_H__
00102 GSList* g_slist_append( /*@ returned @*//*@ null @*/ GSList*, /*@ keep @*/ gpointer );
00103 void g_slist_free( /*@ only @*/ GSList* );
00104 #endif
00105 
00106 /* gstrfuncs.h */
00107 
00108 #ifdef __G_STRFUNCS_H__
00109 gint64 g_ascii_strtoll( const gchar*, /*@ null @*/ gchar**, guint );
00110 #endif
00111 
00112 /* gtype.h */
00113 
00114 #ifdef __G_TYPE_H__
00115 /*@ dependent @*/ GTypeInstance* g_type_check_instance_cast(GTypeInstance *instance,
00116         GType iface_type);
00117 #endif
00118 
00119 /* gtestutils.h */
00120 
00121 #ifdef __G_TEST_UTILS_H__
00122 #undef g_assert
00123 #define g_assert assert
00124 #endif
00125 
00126 /*@ +incondefs @*/
00127 #endif /* SPLINT_DEFS_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines