Skip to content

Commit

Permalink
Define & use ID_fill = rb_intern("fill")
Browse files Browse the repository at this point in the history
  • Loading branch information
rmagick committed Aug 2, 2004
1 parent fb84783 commit 0c55342
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ext/RMagick/rmagick.h
@@ -1,4 +1,4 @@
/* $Id: rmagick.h,v 1.59 2004/07/31 22:04:09 rmagick Exp $ */
/* $Id: rmagick.h,v 1.60 2004/08/02 22:39:15 rmagick Exp $ */
/*=============================================================================
| Copyright (C) 2004 by Timothy P. Hunter
| Name: rmagick.h
Expand Down Expand Up @@ -259,6 +259,7 @@ EXTERN ID ID_call; // "call"
EXTERN ID ID_cur_image; // "cur_image"
EXTERN ID ID_dup; // "dup"
EXTERN ID ID_enumerators; // "enumerators"
EXTERN ID ID_fill; // "fill"
EXTERN ID ID_flag; // "flag"
EXTERN ID ID_from_s; // "from_s"
EXTERN ID ID_Geometry; // "Geometry"
Expand Down
6 changes: 3 additions & 3 deletions ext/RMagick/rmimage.c
@@ -1,4 +1,4 @@
/* $Id: rmimage.c,v 1.62 2004/06/19 20:41:18 rmagick Exp $ */
/* $Id: rmimage.c,v 1.63 2004/08/02 22:39:15 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2004 by Timothy P. Hunter
| Name: rmimage.c
Expand Down Expand Up @@ -4809,7 +4809,7 @@ Image_initialize(VALUE self, VALUE info_obj, VALUE width, VALUE height, VALUE fi
// fillobj.fill(self)
else
{
(void) rb_funcall(fill, rb_intern("fill"), 1, self);
(void) rb_funcall(fill, ID_fill, 1, self);
}

return self;
Expand Down Expand Up @@ -4886,7 +4886,7 @@ Image_initialize(int argc, VALUE *argv, VALUE self)
// fillobj.fill(self)
else
{
(void) rb_funcall(fill, rb_intern("fill"), 1, self);
(void) rb_funcall(fill, ID_fill, 1, self);
}

return self;
Expand Down
5 changes: 3 additions & 2 deletions ext/RMagick/rmmain.c
@@ -1,4 +1,4 @@
/* $Id: rmmain.c,v 1.63 2004/07/31 22:04:09 rmagick Exp $ */
/* $Id: rmmain.c,v 1.64 2004/08/02 22:39:15 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2004 by Timothy P. Hunter
| Name: rmmain.c
Expand Down Expand Up @@ -469,6 +469,7 @@ Init_RMagick(void)
ID_cur_image = rb_intern("cur_image");
ID_dup = rb_intern("dup");
ID_enumerators = rb_intern("enumerators");
ID_fill = rb_intern("fill");
ID_flag = rb_intern("flag");
ID_from_s = rb_intern("from_s");
ID_Geometry = rb_intern("Geometry");
Expand Down Expand Up @@ -1442,7 +1443,7 @@ static void version_constants(void)

rb_define_const(Module_Magick, "Version", rb_str_new2(PACKAGE_STRING));
sprintf(long_version,
"This is %s ($Date: 2004/07/31 22:04:09 $) Copyright (C) 2004 by Timothy P. Hunter\n"
"This is %s ($Date: 2004/08/02 22:39:15 $) Copyright (C) 2004 by Timothy P. Hunter\n"
"Built with %s\n"
"Built for %s\n"
"Web page: http://rmagick.rubyforge.org\n"
Expand Down

0 comments on commit 0c55342

Please sign in to comment.