Added G_GNUC_NULL_TERMINATED here and there

master
Yevgen Muntyan 2006-06-20 21:20:58 -05:00
parent 1ef4605f17
commit bff0396dc3
8 changed files with 65 additions and 25 deletions

View File

@ -36,7 +36,7 @@
<kdevautoproject>
<general>
<activetarget>moo/libmoo.la</activetarget>
<useconfiguration>debug</useconfiguration>
<useconfiguration>mingw</useconfiguration>
</general>
<run>
<mainprogram>./medit</mainprogram>
@ -108,16 +108,16 @@
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
<f77compiler>kdevg77options</f77compiler>
<cflags></cflags>
<cxxflags></cxxflags>
<cflags/>
<cxxflags/>
<envvars/>
<topsourcedir></topsourcedir>
<cppflags></cppflags>
<ldflags></ldflags>
<ccompilerbinary></ccompilerbinary>
<cxxcompilerbinary></cxxcompilerbinary>
<f77compilerbinary></f77compilerbinary>
<f77flags></f77flags>
<topsourcedir/>
<cppflags/>
<ldflags/>
<ccompilerbinary/>
<cxxcompilerbinary/>
<f77compilerbinary/>
<f77flags/>
</optimized>
<gcc-4.0>
<configargs>--enable-all-gcc-warnings=fatal --enable-debug=full </configargs>
@ -292,16 +292,16 @@
</kdevdoctreeview>
<kdevfilecreate>
<filetypes>
<type icon="source" ext="g" create="template" name="GAP source" >
<type icon="source" ext="g" name="GAP source" create="template" >
<descr>A new empty GAP source file</descr>
</type>
<type icon="source_cpp" ext="cpp" create="template" name="C++ Source" >
<type icon="source_cpp" ext="cpp" name="C++ Source" create="template" >
<descr>A new empty C++ file.</descr>
</type>
<type icon="source_h" ext="h" create="template" name="C/C++ Header" >
<type icon="source_h" ext="h" name="C/C++ Header" create="template" >
<descr>A new empty header file for C/C++.</descr>
</type>
<type icon="source_c" ext="c" create="template" name="C Source" >
<type icon="source_c" ext="c" name="C Source" create="template" >
<descr>A new empty C file.</descr>
</type>
</filetypes>
@ -319,8 +319,8 @@
<includeTypes>true</includeTypes>
<includeEnums>true</includeEnums>
<includeTypedefs>true</includeTypedefs>
<automaticCodeCompletion>true</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticCodeCompletion>false</automaticCodeCompletion>
<automaticArgumentsHint>false</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>

View File

@ -61,7 +61,7 @@ GType moo_edit_action_flags_get_type (void) G_GNUC_CONST;
void moo_edit_class_new_action (MooEditClass *klass,
const char *id,
const char *first_prop_name,
...);
...) G_GNUC_NULL_TERMINATED;
void moo_edit_class_new_actionv (MooEditClass *klass,
const char *id,
const char *first_prop_name,

View File

@ -16,6 +16,14 @@
#include <glib-object.h>
#ifndef G_GNUC_NULL_TERMINATED
#if __GNUC__ >= 4
#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define G_GNUC_NULL_TERMINATED
#endif
#endif
G_BEGIN_DECLS

View File

@ -16,6 +16,14 @@
#include <mooutils/mooaction.h>
#ifndef G_GNUC_NULL_TERMINATED
#if __GNUC__ >= 4
#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define G_GNUC_NULL_TERMINATED
#endif
#endif
G_BEGIN_DECLS
@ -59,7 +67,7 @@ MooActionFactory *moo_action_factory_new_func (MooActionFactoryFunc factor
gpointer data);
MooActionFactory *moo_action_factory_new (GType action_type,
const char *first_prop_name,
...);
...) G_GNUC_NULL_TERMINATED;
MooActionFactory *moo_action_factory_new_valist (GType object_type,
const char *first_prop_name,
va_list var_args);
@ -76,7 +84,7 @@ gpointer moo_action_factory_create_action(MooActionFactory *factory
GtkAction *moo_action_group_add_action (GtkActionGroup *group,
const char *action_id,
const char *first_prop_name,
...);
...) G_GNUC_NULL_TERMINATED;
GParamSpec *_moo_action_find_property (GObjectClass *klass,
const char *name);
GParamSpec *_moo_action_find_fake_property (GObjectClass *klass,

View File

@ -19,6 +19,14 @@
#include <gtk/gtkcellrenderer.h>
#include <gtk/gtkdnd.h>
#ifndef G_GNUC_NULL_TERMINATED
#if __GNUC__ >= 4
#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define G_GNUC_NULL_TERMINATED
#endif
#endif
G_BEGIN_DECLS
@ -89,7 +97,7 @@ GtkCellRenderer *_moo_icon_view_get_cell (MooIconView *view,
void _moo_icon_view_set_attributes (MooIconView *view,
MooIconViewCell cell_type,
const char *first_attr,
...);
...) G_GNUC_NULL_TERMINATED;
void _moo_icon_view_clear_attributes (MooIconView *view,
MooIconViewCell cell_type);

View File

@ -18,6 +18,14 @@
#include <gdk/gdkcolor.h>
#include <mooutils/moomarkup.h>
#ifndef G_GNUC_NULL_TERMINATED
#if __GNUC__ >= 4
#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define G_GNUC_NULL_TERMINATED
#endif
#endif
G_BEGIN_DECLS
@ -89,7 +97,7 @@ void moo_prefs_new_key_flags (const char *key,
int default_val);
char *moo_prefs_make_key (const char *first_comp,
...);
...) G_GNUC_NULL_TERMINATED;
char *moo_prefs_make_keyv (const char *first_comp,
va_list var_args);

View File

@ -17,6 +17,14 @@
#include <gtk/gtkwidget.h>
#include <mooutils/mooclosure.h>
#ifndef G_GNUC_NULL_TERMINATED
#if __GNUC__ >= 4
#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define G_GNUC_NULL_TERMINATED
#endif
#endif
G_BEGIN_DECLS
@ -96,7 +104,7 @@ GParameter *moo_param_array_collect (GType type,
MooLookupProperty lookup_func,
guint *len,
const char *first_prop_name,
...);
...) G_GNUC_NULL_TERMINATED;
GParameter *moo_param_array_collect_valist (GType type,
MooLookupProperty lookup_func,
guint *len,
@ -108,7 +116,7 @@ GParameter *moo_param_array_add (GType type,
guint len,
guint *new_len,
const char *first_prop_name,
...);
...) G_GNUC_NULL_TERMINATED;
GParameter *moo_param_array_add_valist (GType type,
GParameter *src,
guint len,
@ -120,7 +128,7 @@ GParameter *moo_param_array_add_type (GParameter *src,
guint len,
guint *new_len,
const char *first_prop_name,
...);
...) G_GNUC_NULL_TERMINATED;
GParameter *moo_param_array_add_type_valist(GParameter *src,
guint len,
guint *new_len,

View File

@ -76,7 +76,7 @@ void moo_window_class_set_id (MooWindowClass *klass,
void moo_window_class_new_action (MooWindowClass *klass,
const char *id,
const char *first_prop_name,
...);
...) G_GNUC_NULL_TERMINATED;
void moo_window_class_new_actionv (MooWindowClass *klass,
const char *id,
const char *first_prop_name,