GnuCash c935c2f+
Loading...
Searching...
No Matches
splint-defs.h
1/********************************************************************
2 * splint-defs.h: declarations from system include files needed to *
3 * provide splint with memory usage patterns. *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation; either version 2 of *
8 * the License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License*
16 * along with this program; if not, contact: *
17 * *
18 * Free Software Foundation Voice: +1-617-542-5942 *
19 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20 * Boston, MA 02110-1301, USA gnu@gnu.org *
21\********************************************************************/
22
23/* Only need this if running splint. This file contains lines copied from the other
24include files, but with the splint annotations added. Yes, this is dangerous if the
25definitions change. However, these definitions aren't used during regular compilation,
26only when running splint, so the danger is manageable. */
27
28#if !defined( SPLINT_DEFS_H ) && defined( S_SPLINT_S )
29#define SPLINT_DEFS_H
30
31/*@ -incondefs @*/
32
33/* Each section is surrounded by the include guard of the appropriate include file */
34
35/* dbi.h */
36
37#ifdef __DBI_H__
38void dbi_conn_close( /*@ only @*/ dbi_conn );
39int dbi_conn_error( dbi_conn, /*@ out @*/ const char** );
40dbi_result dbi_conn_get_table_list( dbi_conn, const char*, /*@ null @*/ const char* );
41/*@ dependent @*/
42const char* dbi_conn_get_option( dbi_conn, const char* );
43int dbi_result_free( /*@ only @*/ dbi_result );
44/*@ dependent @*/
45const char* dbi_result_get_string_idx( dbi_result, unsigned int );
46dbi_driver dbi_driver_list( /*@ null @*/ dbi_driver );
47size_t dbi_conn_quote_string_copy( dbi_conn, const char*, /*@ out @*/ char** );
48/*@ dependent @*/
49dbi_driver_get_name( dbi_driver );
50#endif
51
52/* gdate.h */
53
54#ifdef __G_DATE_H__
55void g_date_free( /*@ only @*/ GDate* );
56#endif
57
58/* gmem.h */
59
60#ifdef __G_MEM_H__
61/*@ null @*/ /*@ only @*/ /*@ out @*/ gpointer g_malloc(gsize n_bytes);
62/*@ null @*/ /*@ only @*/ /*@ out @*/
63gpointer g_malloc0(gsize n_bytes);
64void g_free( /*@ only @*/ gpointer );
65#endif
66
67/* gvalue.h */
68
69#ifdef __G_VALUE_H__
70GValue* g_value_init( /*@ out @*/ GValue*, GType );
71/*@ dependent @*/
72const gchar* g_value_get_string(const GValue *value);
73void g_value_take_string( GValue*, /*@ only @*/ const gchar *);
74#endif
75
76/* gstring.h */
77
78#ifdef __G_STRING_H__
79gchar* g_string_free( /*@ only @*/ GString*, gboolean );
80#endif
81
82/* ghash.h */
83
84#ifdef __G_HASH_H__
85GHashTable* g_hash_table_new_full( GHashFunc, GEqualFunc, /*@ null @*/ GDestroyNotify, /*@ null @*/ GDestroyNotify );
86void g_hash_table_insert(GHashTable *hash_table, /*@ only @*/ gpointer key, gpointer value);
87/*@ dependent @*/
88g_hash_table_lookup( GHashTable* hash_table, gpointer key );
89#endif
90
91/* glist.h */
92
93#ifdef __G_LIST_H__
94GList* g_list_append( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
95GList* g_list_prepend( /*@ returned @*//*@ null @*/ GList*, /*@ keep @*/ gpointer );
96void g_list_free( /*@ only @*/ GList* );
97#endif
98
99/* gslist.h */
100
101#ifdef __G_SLIST_H__
102GSList* g_slist_append( /*@ returned @*//*@ null @*/ GSList*, /*@ keep @*/ gpointer );
103void g_slist_free( /*@ only @*/ GSList* );
104#endif
105
106/* gstrfuncs.h */
107
108#ifdef __G_STRFUNCS_H__
109gint64 g_ascii_strtoll( const gchar*, /*@ null @*/ gchar**, guint );
110#endif
111
112/* gtype.h */
113
114#ifdef __G_TYPE_H__
115/*@ dependent @*/ GTypeInstance* g_type_check_instance_cast(GTypeInstance *instance,
116 GType iface_type);
117#endif
118
119/* gtestutils.h */
120
121#ifdef __G_TEST_UTILS_H__
122#undef g_assert
123#define g_assert assert
124#endif
125
126/*@ +incondefs @*/
127#endif /* SPLINT_DEFS_H */