Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move new RG_DEF_METHOD to rbgutil.h

  • Loading branch information...
commit b51f7287ce9db9572bb0f7ccc1beed597e7f4eab 1 parent ce0748b
@masaakiaoyagi masaakiaoyagi authored
View
8 atk/ext/atk/rbatkprivate.h
@@ -11,14 +11,6 @@
# define G_VALUE_INIT { 0, { { 0 } } }
#endif
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
G_BEGIN_DECLS
G_GNUC_INTERNAL void Init_atk_action(VALUE mAtk);
View
8 gdk3/ext/gdk3/rbgdk3private.h
@@ -50,14 +50,6 @@
# define CAIRO_AVAILABLE 0
#endif
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
extern ID id_call;
G_GNUC_INTERNAL void Init_gdk(void);
View
8 gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h
@@ -23,14 +23,6 @@
#include "rbgdk-pixbuf.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
G_GNUC_INTERNAL void Init_gdk_pixbuf_animation(VALUE mGLib);
G_GNUC_INTERNAL void Init_gdk_pixbuf_animation_iter(VALUE mGLib);
G_GNUC_INTERNAL void Init_gdk_pixbuf_format(VALUE mGLib);
View
8 gio2/ext/gio2/rbgio2private.h
@@ -27,14 +27,6 @@
#include <rbgobject.h>
#include "rbgio2.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
#define CSTR2RVAL_TAINTED(string, length) \
rbgio_cstr_to_rval_tainted((string), (length))
#define CSTR2RVAL_TAINTED_FREE(string, length) \
View
8 glib2/ext/glib2/rbgprivate.h
@@ -25,14 +25,6 @@
#include "rbgobject.h"
#include "glib-enum-types.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
#ifndef HAVE_RB_ERRINFO
# define rb_errinfo() (ruby_errinfo)
#endif
View
4 glib2/ext/glib2/rbgutil.h
@@ -42,7 +42,7 @@ extern "C" {
#define RG_DEF_MODFUNC_OPERATOR(ope, func, argc) \
rb_define_module_function(RG_TARGET_NAMESPACE, ope, rg_m_operator_ ## func, argc)
#define RG_DEF_SMETHOD(method, argc) \
- rb_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
+ rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
#define RG_DEF_SMETHOD_P(method, argc) \
rb_define_singleton_method(RG_TARGET_NAMESPACE, #method"?", rg_s_ ## method ## _p, argc)
#define RG_DEF_SMETHOD_BANG(method, argc) \
@@ -50,7 +50,7 @@ extern "C" {
#define RG_DEF_SMETHOD_OPERATOR(ope, func, argc) \
rb_define_singleton_method(RG_TARGET_NAMESPACE, ope, rg_s_operator_ ## func, argc)
#define RG_DEF_METHOD(method, argc) \
- rb_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
+ rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
#define RG_DEF_METHOD_P(method, argc) \
rb_define_method(RG_TARGET_NAMESPACE, #method"?", rg_ ## method ## _p, argc)
#define RG_DEF_METHOD_BANG(method, argc) \
View
8 goocanvas/ext/goocanvas/rbgoocanvasprivate.h
@@ -24,14 +24,6 @@
#include <rbgdk-pixbuf.h>
#include "rbgoocanvas.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
void Init_goocanvas(void); /* Goo::Canvas */
G_GNUC_INTERNAL void Init_goocanvasitem(VALUE mGoo); /* Goo::CanvasItem */
G_GNUC_INTERNAL void Init_goocanvastext(VALUE mGoo); /* Goo::CanvasText */
View
8 gstreamer/ext/gstreamer/rbgst-private.h
@@ -24,14 +24,6 @@
#include "rbgst.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
#ifndef G_VALUE_INIT
# define G_VALUE_INIT { 0, { { 0 } } }
#endif
View
7 gtk2/ext/gtk2/global.h
@@ -32,6 +32,13 @@
# include <st.h>
#endif
+#undef RG_DEF_METHOD
+#define RG_DEF_METHOD(method, argc) \
+ rb_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
+#undef RG_DEF_SMETHOD
+#define RG_DEF_SMETHOD(method, argc) \
+ rb_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
+
#ifndef HAVE_RB_ERRINFO
# define rb_errinfo() (ruby_errinfo)
#endif
View
8 gtk3/ext/gtk3/rbgtk3private.h
@@ -54,14 +54,6 @@
# define CAIRO_AVAILABLE 0
#endif
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
extern ID id_relative_callbacks;
extern ID id_call;
View
7 gtksourceview2/ext/gtksourceview2/rbgtksourcemain.h
@@ -39,4 +39,11 @@
#include "rbgtk.h"
#include "rbgtksourceview2version.h"
+#undef RG_DEF_METHOD
+#define RG_DEF_METHOD(method, argc) \
+ rb_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
+#undef RG_DEF_SMETHOD
+#define RG_DEF_SMETHOD(method, argc) \
+ rb_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
+
#endif /* __RBGTKSOURCEVIEWMAIN_H_ */
View
8 gtksourceview3/ext/gtksourceview3/rbgtksourceview3private.h
@@ -33,14 +33,6 @@
#include "rbgtksourceview3conversions.h"
#include "rbgtksourceview3version.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
extern void Init_gtksourceview3(void);
G_GNUC_INTERNAL void Init_gtksource_view (VALUE mGtkSource);
View
8 gvlc/ext/gvlc/rbvlcprivate.h
@@ -27,14 +27,6 @@
#include "rbvlcconversions.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
G_BEGIN_DECLS
#define ZEROBOOL2RVAL(bool) ((bool == 0) ? Qtrue : Qfalse)
View
8 pango/ext/pango/rbpangoprivate.h
@@ -3,14 +3,6 @@
#include "rbpango.h"
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
#ifndef HAVE_RB_ERRINFO
# define rb_errinfo() (ruby_errinfo)
#endif
View
8 poppler/ext/poppler/rbpoppler-private.h
@@ -7,14 +7,6 @@
# include <rbgdk.h>
#endif
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
#define RVAL2GDKPIXBUF(o) (GDK_PIXBUF(RVAL2GOBJ(o)))
G_GNUC_INTERNAL void Init_poppler_indexiter(VALUE mPoppler);
View
8 rsvg2/ext/rsvg2/rsvg2.h
@@ -51,14 +51,6 @@ extern "C" {
#include <librsvg/librsvg-features.h>
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
#define LIBRSVG_CHECK_VERSION(major, minor, micro) \
(LIBRSVG_MAJOR_VERSION > (major) || \
(LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION > (minor)) || \
View
7 vte/ext/vte/rbvte.h
@@ -12,6 +12,13 @@
# include "rbvteversion.h"
#endif
+#undef RG_DEF_METHOD
+#define RG_DEF_METHOD(method, argc) \
+ rb_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
+#undef RG_DEF_SMETHOD
+#define RG_DEF_SMETHOD(method, argc) \
+ rb_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
+
#define RVAL2TERM(obj) (RVAL2GOBJ(obj))
#define RVAL2COLOR(obj) ((GdkColor *)RVAL2BOXED(obj, GDK_TYPE_COLOR))
#define COLOR2RVAL(obj) (BOXED2RVAL(obj, GDK_TYPE_COLOR))
View
8 vte3/ext/vte3/rbvte3private.h
@@ -15,14 +15,6 @@
# include "rbvteversion.h"
#endif
-/* TODO: move to rbgutil.h */
-#undef RG_DEF_METHOD
-#define RG_DEF_METHOD(method, argc) \
- rbg_define_method(RG_TARGET_NAMESPACE, #method, rg_ ## method, argc)
-#undef RG_DEF_SMETHOD
-#define RG_DEF_SMETHOD(method, argc) \
- rbg_define_singleton_method(RG_TARGET_NAMESPACE, #method, rg_s_ ## method, argc)
-
G_GNUC_INTERNAL void Init_vte_access(VALUE mVte);
G_GNUC_INTERNAL void Init_vte_reaper(VALUE mVte);
G_GNUC_INTERNAL void Init_vte_terminal(VALUE mVte);
Please sign in to comment.
Something went wrong with that request. Please try again.