Skip to content

Commit

Permalink
glib2: define variables at the head of block
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 28, 2013
1 parent d581916 commit 749d34d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions glib2/ext/glib2/rbgobj_closure.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/*
* Copyright (C) 2011 Ruby-GNOME2 Project Team
* Copyright (C) 2011-2013 Ruby-GNOME2 Project Team
* Copyright (C) 2002-2006 Ruby-GNOME2 Project
* Copyright (C) 2002,2003 Masahiro Sakai
*
Expand Down Expand Up @@ -332,9 +332,11 @@ rg_invalidate(VALUE self)
void
Init_gobject_gclosure(void)
{
VALUE RG_TARGET_NAMESPACE;

init_rclosure();

VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_CLOSURE, "Closure", mGLib);
RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_CLOSURE, "Closure", mGLib);

RG_DEF_METHOD(initialize, 0);
RG_DEF_METHOD_P(in_marshal, 0);
Expand Down

0 comments on commit 749d34d

Please sign in to comment.