rmagick 1.15.3 → 1.15.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rmagick might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- /* $Id: rminfo.c,v 1.45.2.1 2007/02/17 14:18:13 rmagick Exp $ */
1
+ /* $Id: rminfo.c,v 1.45.2.2 2007/03/04 00:05:36 rmagick Exp $ */
2
2
  /*============================================================================\
3
3
  | Copyright (C) 2007 by Timothy P. Hunter
4
4
  | Name: rminfo.c
@@ -92,7 +92,7 @@ Info_aset(VALUE self, VALUE format, VALUE key, VALUE value)
92
92
  key_p = STRING_PTR_LEN(key, key_l);
93
93
 
94
94
  /* Allow any argument that supports to_s */
95
- value = rb_funcall(value, ID_to_s, 0);
95
+ value = rb_funcall(value, rm_ID_to_s, 0);
96
96
  value_p = STRING_PTR(value);
97
97
 
98
98
  if (format_l > MAX_FORMAT_LEN || format_l+key_l > MaxTextExtent-1)
@@ -125,7 +125,7 @@ Info_aset(VALUE self, VALUE format, VALUE key, VALUE value)
125
125
 
126
126
  format_p = STRING_PTR_LEN(format, format_l);
127
127
  key_p = STRING_PTR_LEN(key, key_l);
128
- value = rb_funcall(value, ID_to_s, 0);
128
+ value = rb_funcall(value, rm_ID_to_s, 0);
129
129
  value_p = STRING_PTR_LEN(value, value_l);
130
130
 
131
131
  if ((3 + format_l + key_l + value_l) > sizeof(definitions))
@@ -376,7 +376,7 @@ Info_define(int argc, VALUE *argv, VALUE self)
376
376
  {
377
377
  case 3:
378
378
  /* Allow any argument that supports to_s */
379
- fmt_arg = rb_funcall(argv[2], ID_to_s, 0);
379
+ fmt_arg = rb_funcall(argv[2], rm_ID_to_s, 0);
380
380
  value = STRING_PTR(fmt_arg);
381
381
  case 2:
382
382
  key = STRING_PTR_LEN(argv[1], key_l);
@@ -418,7 +418,7 @@ Info_define(int argc, VALUE *argv, VALUE self)
418
418
  {
419
419
  case 3:
420
420
  /* Allow any argument that supports to_s */
421
- fmt_arg = rb_funcall(argv[2], ID_to_s, 0);
421
+ fmt_arg = rb_funcall(argv[2], rm_ID_to_s, 0);
422
422
  value = STRING_PTR_LEN(fmt_arg, value_l);
423
423
  /* Fall through */
424
424
  case 2:
@@ -568,7 +568,7 @@ Info_density_eq(VALUE self, VALUE density_arg)
568
568
  return self;
569
569
  }
570
570
 
571
- density = rb_funcall(density_arg, ID_to_s, 0);
571
+ density = rb_funcall(density_arg, rm_ID_to_s, 0);
572
572
  dens = STRING_PTR(density);
573
573
  if (!IsGeometry(dens))
574
574
  {
@@ -744,7 +744,7 @@ Info_extract_eq(VALUE self, VALUE extract_arg)
744
744
  return self;
745
745
  }
746
746
 
747
- extract = rb_funcall(extract_arg, ID_to_s, 0);
747
+ extract = rb_funcall(extract_arg, rm_ID_to_s, 0);
748
748
  extr = STRING_PTR(extract);
749
749
  if (!IsGeometry(extr))
750
750
  {
@@ -826,7 +826,7 @@ Info_tile_eq(VALUE self, VALUE tile_arg)
826
826
  return self;
827
827
  }
828
828
 
829
- tile = rb_funcall(tile_arg, ID_to_s, 0);
829
+ tile = rb_funcall(tile_arg, rm_ID_to_s, 0);
830
830
  til = STRING_PTR(tile);
831
831
  if (!IsGeometry(til))
832
832
  {
@@ -1359,7 +1359,7 @@ Info_origin_eq(VALUE self, VALUE origin_arg)
1359
1359
  return self;
1360
1360
  }
1361
1361
 
1362
- origin_str = rb_funcall(origin_arg, ID_to_s, 0);
1362
+ origin_str = rb_funcall(origin_arg, rm_ID_to_s, 0);
1363
1363
  origin = GetPageGeometry(STRING_PTR(origin_str));
1364
1364
 
1365
1365
  if (IsGeometry(origin) == MagickFalse)
@@ -1411,7 +1411,7 @@ Info_page_eq(VALUE self, VALUE page_arg)
1411
1411
  info->page = NULL;
1412
1412
  return self;
1413
1413
  }
1414
- geom_str = rb_funcall(page_arg, ID_to_s, 0);
1414
+ geom_str = rb_funcall(page_arg, rm_ID_to_s, 0);
1415
1415
  geometry=GetPageGeometry(STRING_PTR(geom_str));
1416
1416
  if (*geometry == '\0')
1417
1417
  {
@@ -1609,7 +1609,7 @@ Info_size_eq(VALUE self, VALUE size_arg)
1609
1609
  return self;
1610
1610
  }
1611
1611
 
1612
- size = rb_funcall(size_arg, ID_to_s, 0);
1612
+ size = rb_funcall(size_arg, rm_ID_to_s, 0);
1613
1613
  sz = STRING_PTR(size);
1614
1614
  if (!IsGeometry(sz))
1615
1615
  {
@@ -1,4 +1,4 @@
1
- /* $Id: rmmain.c,v 1.159 2007/01/20 15:45:29 rmagick Exp $ */
1
+ /* $Id: rmmain.c,v 1.159.2.1 2007/03/04 00:05:36 rmagick Exp $ */
2
2
  /*============================================================================\
3
3
  | Copyright (C) 2007 by Timothy P. Hunter
4
4
  | Name: rmmain.c
@@ -472,7 +472,7 @@ monitor_handler(
472
472
  args[2] = UINT2NUM((unsigned long) span);
473
473
 
474
474
  monitor = rb_cvar_get(Module_Magick, Magick_Monitor);
475
- (void) rb_funcall2((VALUE)monitor, ID_call, 3, (VALUE *)args);
475
+ (void) rb_funcall2((VALUE)monitor, rm_ID_call, 3, (VALUE *)args);
476
476
  }
477
477
 
478
478
  return True;
@@ -604,29 +604,29 @@ Init_RMagick(void)
604
604
  /* Create IDs for frequently used methods, etc. */
605
605
  /*-----------------------------------------------------------------------*/
606
606
 
607
- ID__dummy_img_ = rb_intern("_dummy_img_");
608
- ID_call = rb_intern("call");
609
- ID_changed = rb_intern("changed");
610
- ID_cur_image = rb_intern("cur_image");
611
- ID_dup = rb_intern("dup");
612
- ID_enumerators = rb_intern("enumerators");
613
- ID_fill = rb_intern("fill");
614
- ID_flag = rb_intern("flag");
615
- ID_from_s = rb_intern("from_s");
616
- ID_Geometry = rb_intern("Geometry");
617
- ID_GeometryValue = rb_intern("GeometryValue");
618
- ID_height = rb_intern("height");
619
- ID_initialize_copy = rb_intern("initialize_copy");
620
- ID_length = rb_intern("length");
621
- ID_notify_observers = rb_intern("notify_observers");
622
- ID_new = rb_intern("new");
623
- ID_push = rb_intern("push");
624
- ID_spaceship = rb_intern("<=>");
625
- ID_to_s = rb_intern("to_s");
626
- ID_values = rb_intern("values");
627
- ID_width = rb_intern("width");
628
- ID_x = rb_intern("x");
629
- ID_y = rb_intern("y");
607
+ rm_ID__dummy_img_ = rb_intern("_dummy_img_");
608
+ rm_ID_call = rb_intern("call");
609
+ rm_ID_changed = rb_intern("changed");
610
+ rm_ID_cur_image = rb_intern("cur_image");
611
+ rm_ID_dup = rb_intern("dup");
612
+ rm_ID_enumerators = rb_intern("enumerators");
613
+ rm_ID_fill = rb_intern("fill");
614
+ rm_ID_flag = rb_intern("flag");
615
+ rm_ID_from_s = rb_intern("from_s");
616
+ rm_ID_Geometry = rb_intern("Geometry");
617
+ rm_ID_GeometryValue = rb_intern("GeometryValue");
618
+ rm_ID_height = rb_intern("height");
619
+ rm_ID_initialize_copy = rb_intern("initialize_copy");
620
+ rm_ID_length = rb_intern("length");
621
+ rm_ID_notify_observers = rb_intern("notify_observers");
622
+ rm_ID_new = rb_intern("new");
623
+ rm_ID_push = rb_intern("push");
624
+ rm_ID_spaceship = rb_intern("<=>");
625
+ rm_ID_to_s = rb_intern("to_s");
626
+ rm_ID_values = rb_intern("values");
627
+ rm_ID_width = rb_intern("width");
628
+ rm_ID_x = rb_intern("x");
629
+ rm_ID_y = rb_intern("y");
630
630
 
631
631
  /*-----------------------------------------------------------------------*/
632
632
  /* Module Magick methods */
@@ -1936,7 +1936,7 @@ static void version_constants(void)
1936
1936
  rb_define_const(Module_Magick, "Version", str);
1937
1937
 
1938
1938
  sprintf(long_version,
1939
- "This is %s ($Date: 2007/01/20 15:45:29 $) Copyright (C) 2007 by Timothy P. Hunter\n"
1939
+ "This is %s ($Date: 2007/03/04 00:05:36 $) Copyright (C) 2007 by Timothy P. Hunter\n"
1940
1940
  "Built with %s\n"
1941
1941
  "Built for %s\n"
1942
1942
  "Web page: http://rmagick.rubyforge.org\n"
@@ -1,4 +1,4 @@
1
- /* $Id: rmutil.c,v 1.90.2.1 2007/02/04 13:16:23 rmagick Exp $ */
1
+ /* $Id: rmutil.c,v 1.90.2.2 2007/03/04 00:05:37 rmagick Exp $ */
2
2
  /*============================================================================\
3
3
  | Copyright (C) 2007 by Timothy P. Hunter
4
4
  | Name: rmutil.c
@@ -437,7 +437,7 @@ rm_fuzz_to_dbl(VALUE fuzz_arg)
437
437
  VALUE
438
438
  ImageList_cur_image(VALUE img)
439
439
  {
440
- return rb_funcall(img, ID_cur_image, 0);
440
+ return rb_funcall(img, rm_ID_cur_image, 0);
441
441
  }
442
442
 
443
443
  /*
@@ -956,7 +956,7 @@ Pixel_dup(VALUE self)
956
956
  {
957
957
  (void) rb_obj_taint(dup);
958
958
  }
959
- return rb_funcall(dup, ID_initialize_copy, 1, self);
959
+ return rb_funcall(dup, rm_ID_initialize_copy, 1, self);
960
960
  }
961
961
 
962
962
 
@@ -1122,7 +1122,7 @@ AffineMatrix_to_AffineMatrix(AffineMatrix *am, VALUE st)
1122
1122
  rb_raise(rb_eTypeError, "type mismatch: %s given",
1123
1123
  rb_class2name(CLASS_OF(st)));
1124
1124
  }
1125
- values = rb_funcall(st, ID_values, 0);
1125
+ values = rb_funcall(st, rm_ID_values, 0);
1126
1126
  v = rb_ary_entry(values, 0);
1127
1127
  am->sx = v == Qnil ? 1.0 : NUM2DBL(v);
1128
1128
  v = rb_ary_entry(values, 1);
@@ -1803,7 +1803,7 @@ Color_from_ColorInfo(const ColorInfo *ci)
1803
1803
  color = Pixel_from_PixelPacket((PixelPacket *)(&(ci->color)));
1804
1804
  #endif
1805
1805
 
1806
- return rb_funcall(Class_Color, ID_new, 3
1806
+ return rb_funcall(Class_Color, rm_ID_new, 3
1807
1807
  , name, compliance, color);
1808
1808
  }
1809
1809
 
@@ -1826,7 +1826,7 @@ Color_to_ColorInfo(ColorInfo *ci, VALUE st)
1826
1826
 
1827
1827
  memset(ci, '\0', sizeof(ColorInfo));
1828
1828
 
1829
- members = rb_funcall(st, ID_values, 0);
1829
+ members = rb_funcall(st, rm_ID_values, 0);
1830
1830
 
1831
1831
  m = rb_ary_entry(members, 0);
1832
1832
  if (m != Qnil)
@@ -1979,7 +1979,7 @@ Color_to_PixelPacket(PixelPacket *pp, VALUE color)
1979
1979
  VALUE
1980
1980
  PrimaryInfo_from_PrimaryInfo(PrimaryInfo *p)
1981
1981
  {
1982
- return rb_funcall(Class_Primary, ID_new, 3
1982
+ return rb_funcall(Class_Primary, rm_ID_new, 3
1983
1983
  , INT2FIX(p->x), INT2FIX(p->y), INT2FIX(p->z));
1984
1984
  }
1985
1985
 
@@ -1997,7 +1997,7 @@ PrimaryInfo_to_PrimaryInfo(PrimaryInfo *pi, VALUE sp)
1997
1997
  rb_raise(rb_eTypeError, "type mismatch: %s given",
1998
1998
  rb_class2name(CLASS_OF(sp)));
1999
1999
  }
2000
- members = rb_funcall(sp, ID_values, 0);
2000
+ members = rb_funcall(sp, rm_ID_values, 0);
2001
2001
  m = rb_ary_entry(members, 0);
2002
2002
  pi->x = m == Qnil ? 0.0 : NUM2DBL(m);
2003
2003
  m = rb_ary_entry(members, 1);
@@ -2013,7 +2013,7 @@ PrimaryInfo_to_PrimaryInfo(PrimaryInfo *pi, VALUE sp)
2013
2013
  VALUE
2014
2014
  PointInfo_to_Point(PointInfo *p)
2015
2015
  {
2016
- return rb_funcall(Class_Point, ID_new, 2
2016
+ return rb_funcall(Class_Point, rm_ID_new, 2
2017
2017
  , INT2FIX(p->x), INT2FIX(p->y));
2018
2018
  }
2019
2019
 
@@ -2031,7 +2031,7 @@ Point_to_PointInfo(PointInfo *pi, VALUE sp)
2031
2031
  rb_raise(rb_eTypeError, "type mismatch: %s given",
2032
2032
  rb_class2name(CLASS_OF(sp)));
2033
2033
  }
2034
- members = rb_funcall(sp, ID_values, 0);
2034
+ members = rb_funcall(sp, rm_ID_values, 0);
2035
2035
  m = rb_ary_entry(members, 0);
2036
2036
  pi->x = m == Qnil ? 0.0 : NUM2DBL(m);
2037
2037
  m = rb_ary_entry(members, 1);
@@ -2058,7 +2058,7 @@ ChromaticityInfo_new(ChromaticityInfo *ci)
2058
2058
  blue_primary = PrimaryInfo_from_PrimaryInfo(&ci->blue_primary);
2059
2059
  white_point = PrimaryInfo_from_PrimaryInfo(&ci->white_point);
2060
2060
 
2061
- return rb_funcall(Class_Chromaticity, ID_new, 4
2061
+ return rb_funcall(Class_Chromaticity, rm_ID_new, 4
2062
2062
  , red_primary, green_primary, blue_primary, white_point);
2063
2063
  }
2064
2064
 
@@ -2080,7 +2080,7 @@ ChromaticityInfo_to_ChromaticityInfo(ChromaticityInfo *ci, VALUE chrom)
2080
2080
  rb_raise(rb_eTypeError, "type mismatch: %s given",
2081
2081
  rb_class2name(CLASS_OF(chrom)));
2082
2082
  }
2083
- values_id = ID_values;
2083
+ values_id = rm_ID_values;
2084
2084
 
2085
2085
  // Get the struct members in an array
2086
2086
  chrom_members = rb_funcall(chrom, values_id, 0);
@@ -2137,7 +2137,7 @@ Rectangle_from_RectangleInfo(RectangleInfo *rect)
2137
2137
  height = UINT2NUM(rect->height);
2138
2138
  x = INT2NUM(rect->x);
2139
2139
  y = INT2NUM(rect->y);
2140
- return rb_funcall(Class_Rectangle, ID_new, 4
2140
+ return rb_funcall(Class_Rectangle, rm_ID_new, 4
2141
2141
  , width, height, x, y);
2142
2142
  }
2143
2143
 
@@ -2155,7 +2155,7 @@ Rectangle_to_RectangleInfo(RectangleInfo *rect, VALUE sr)
2155
2155
  rb_raise(rb_eTypeError, "type mismatch: %s given",
2156
2156
  rb_class2name(CLASS_OF(sr)));
2157
2157
  }
2158
- members = rb_funcall(sr, ID_values, 0);
2158
+ members = rb_funcall(sr, rm_ID_values, 0);
2159
2159
  m = rb_ary_entry(members, 0);
2160
2160
  rect->width = m == Qnil ? 0 : NUM2ULONG(m);
2161
2161
  m = rb_ary_entry(members, 1);
@@ -2179,7 +2179,7 @@ Segment_from_SegmentInfo(SegmentInfo *segment)
2179
2179
  y1 = rb_float_new(segment->y1);
2180
2180
  x2 = rb_float_new(segment->x2);
2181
2181
  y2 = rb_float_new(segment->y2);
2182
- return rb_funcall(Class_Segment, ID_new, 4, x1, y1, x2, y2);
2182
+ return rb_funcall(Class_Segment, rm_ID_new, 4, x1, y1, x2, y2);
2183
2183
  }
2184
2184
 
2185
2185
  /*
@@ -2197,7 +2197,7 @@ Segment_to_SegmentInfo(SegmentInfo *segment, VALUE s)
2197
2197
  rb_class2name(CLASS_OF(s)));
2198
2198
  }
2199
2199
 
2200
- members = rb_funcall(s, ID_values, 0);
2200
+ members = rb_funcall(s, rm_ID_values, 0);
2201
2201
  m = rb_ary_entry(members, 0);
2202
2202
  segment->x1 = m == Qnil ? 0.0 : NUM2DBL(m);
2203
2203
  m = rb_ary_entry(members, 1);
@@ -2256,7 +2256,7 @@ Font_from_TypeInfo(TypeInfo *ti)
2256
2256
  foundry = ti->foundry ? rb_str_new2(ti->foundry) : Qnil;
2257
2257
  format = ti->format ? rb_str_new2(ti->format) : Qnil;
2258
2258
 
2259
- return rb_funcall(Class_Font, ID_new, 9
2259
+ return rb_funcall(Class_Font, rm_ID_new, 9
2260
2260
  , name, description, family, style
2261
2261
  , stretch, weight, encoding, foundry, format);
2262
2262
  }
@@ -2278,7 +2278,7 @@ Font_to_TypeInfo(TypeInfo *ti, VALUE st)
2278
2278
 
2279
2279
  memset(ti, '\0', sizeof(TypeInfo));
2280
2280
 
2281
- members = rb_funcall(st, ID_values, 0);
2281
+ members = rb_funcall(st, rm_ID_values, 0);
2282
2282
  m = rb_ary_entry(members, 0);
2283
2283
  if (m != Qnil)
2284
2284
  {
@@ -2397,7 +2397,7 @@ TypeMetric_from_TypeMetric(TypeMetric *tm)
2397
2397
  underline_position = rb_float_new(tm->underline_position);
2398
2398
  underline_thickness = rb_float_new(tm->underline_position);
2399
2399
 
2400
- return rb_funcall(Class_TypeMetric, ID_new, 9
2400
+ return rb_funcall(Class_TypeMetric, rm_ID_new, 9
2401
2401
  , pixels_per_em, ascent, descent, width
2402
2402
  , height, max_advance, bounds
2403
2403
  , underline_position, underline_thickness);
@@ -2418,7 +2418,7 @@ TypeMetric_to_TypeMetric(TypeMetric *tm, VALUE st)
2418
2418
  rb_raise(rb_eTypeError, "type mismatch: %s given",
2419
2419
  rb_class2name(CLASS_OF(st)));
2420
2420
  }
2421
- members = rb_funcall(st, ID_values, 0);
2421
+ members = rb_funcall(st, rm_ID_values, 0);
2422
2422
 
2423
2423
  pixels_per_em = rb_ary_entry(members, 0);
2424
2424
  Point_to_PointInfo(&tm->pixels_per_em, pixels_per_em);
@@ -2648,7 +2648,7 @@ VALUE Enum_spaceship(VALUE self, VALUE other)
2648
2648
 
2649
2649
  // Values are equal, check class.
2650
2650
 
2651
- return rb_funcall(CLASS_OF(self), ID_spaceship, 1, CLASS_OF(other));
2651
+ return rb_funcall(CLASS_OF(self), rm_ID_spaceship, 1, CLASS_OF(other));
2652
2652
  }
2653
2653
 
2654
2654
 
@@ -2686,13 +2686,13 @@ VALUE Enum_type_initialize(VALUE self, VALUE sym, VALUE val)
2686
2686
  super_argv[1] = val;
2687
2687
  (void) rb_call_super(2, (VALUE *)super_argv);
2688
2688
 
2689
- if (rb_cvar_defined(CLASS_OF(self), ID_enumerators) != Qtrue)
2689
+ if (rb_cvar_defined(CLASS_OF(self), rm_ID_enumerators) != Qtrue)
2690
2690
  {
2691
- RUBY18(rb_cvar_set(CLASS_OF(self), ID_enumerators, rb_ary_new(), 0));
2692
- RUBY16(rb_cvar_set(CLASS_OF(self), ID_enumerators, rb_ary_new()));
2691
+ RUBY18(rb_cvar_set(CLASS_OF(self), rm_ID_enumerators, rb_ary_new(), 0));
2692
+ RUBY16(rb_cvar_set(CLASS_OF(self), rm_ID_enumerators, rb_ary_new()));
2693
2693
  }
2694
2694
 
2695
- enumerators = rb_cvar_get(CLASS_OF(self), ID_enumerators);
2695
+ enumerators = rb_cvar_get(CLASS_OF(self), rm_ID_enumerators);
2696
2696
  (void) rb_ary_push(enumerators, self);
2697
2697
 
2698
2698
  return self;
@@ -2726,7 +2726,7 @@ static VALUE Enum_type_values(VALUE class)
2726
2726
  volatile VALUE rv;
2727
2727
  int x;
2728
2728
 
2729
- enumerators = rb_cvar_get(class, ID_enumerators);
2729
+ enumerators = rb_cvar_get(class, rm_ID_enumerators);
2730
2730
 
2731
2731
  if (rb_block_given_p())
2732
2732
  {
@@ -2811,30 +2811,30 @@ Statistics_new(ImageStatistics *stats)
2811
2811
  mean = rb_float_new(stats->red.mean);
2812
2812
  stddev = rb_float_new(stats->red.standard_deviation);
2813
2813
  var = rb_float_new(stats->red.variance);
2814
- red = rb_funcall(Class_StatisticsChannel, ID_new, 5, max, min, mean, stddev, var);
2814
+ red = rb_funcall(Class_StatisticsChannel, rm_ID_new, 5, max, min, mean, stddev, var);
2815
2815
 
2816
2816
  min = rb_float_new(stats->green.minimum);
2817
2817
  max = rb_float_new(stats->green.maximum);
2818
2818
  mean = rb_float_new(stats->green.mean);
2819
2819
  stddev = rb_float_new(stats->green.standard_deviation);
2820
2820
  var = rb_float_new(stats->green.variance);
2821
- green = rb_funcall(Class_StatisticsChannel, ID_new, 5, max, min, mean, stddev, var);
2821
+ green = rb_funcall(Class_StatisticsChannel, rm_ID_new, 5, max, min, mean, stddev, var);
2822
2822
 
2823
2823
  min = rb_float_new(stats->blue.minimum);
2824
2824
  max = rb_float_new(stats->blue.maximum);
2825
2825
  mean = rb_float_new(stats->blue.mean);
2826
2826
  stddev = rb_float_new(stats->blue.standard_deviation);
2827
2827
  var = rb_float_new(stats->blue.variance);
2828
- blue = rb_funcall(Class_StatisticsChannel, ID_new, 5, max, min, mean, stddev, var);
2828
+ blue = rb_funcall(Class_StatisticsChannel, rm_ID_new, 5, max, min, mean, stddev, var);
2829
2829
 
2830
2830
  min = rb_float_new(stats->opacity.minimum);
2831
2831
  max = rb_float_new(stats->opacity.maximum);
2832
2832
  mean = rb_float_new(stats->opacity.mean);
2833
2833
  stddev = rb_float_new(stats->opacity.standard_deviation);
2834
2834
  var = rb_float_new(stats->opacity.variance);
2835
- opacity = rb_funcall(Class_StatisticsChannel, ID_new, 5, max, min, mean, stddev, var);
2835
+ opacity = rb_funcall(Class_StatisticsChannel, rm_ID_new, 5, max, min, mean, stddev, var);
2836
2836
 
2837
- return rb_funcall(Class_Statistics, ID_new, 4, red, green, blue, opacity);
2837
+ return rb_funcall(Class_Statistics, rm_ID_new, 4, red, green, blue, opacity);
2838
2838
 
2839
2839
  }
2840
2840
  #endif // HAVE_GETIMAGESTATISTICS
@@ -2991,7 +2991,7 @@ rm_magick_error(const char *msg, const char *loc)
2991
2991
  mesg = rb_str_new2(msg);
2992
2992
  extra = loc ? rb_str_new2(loc) : Qnil;
2993
2993
 
2994
- exc = rb_funcall(Class_ImageMagickError, ID_new, 2, mesg, extra);
2994
+ exc = rb_funcall(Class_ImageMagickError, rm_ID_new, 2, mesg, extra);
2995
2995
  (void) rb_funcall(rb_cObject, rb_intern("raise"), 1, exc);
2996
2996
  }
2997
2997
 
@@ -3044,13 +3044,13 @@ rm_get_geometry(
3044
3044
  {
3045
3045
  VALUE v;
3046
3046
 
3047
- v = rb_funcall(geom, ID_x, 0);
3047
+ v = rb_funcall(geom, rm_ID_x, 0);
3048
3048
  *x = NUM2LONG(v);
3049
- v = rb_funcall(geom, ID_y, 0);
3049
+ v = rb_funcall(geom, rm_ID_y, 0);
3050
3050
  *y = NUM2LONG(v);
3051
- v = rb_funcall(geom, ID_width, 0);
3051
+ v = rb_funcall(geom, rm_ID_width, 0);
3052
3052
  *width = NUM2ULONG(v);
3053
- v = rb_funcall(geom, ID_height, 0);
3053
+ v = rb_funcall(geom, rm_ID_height, 0);
3054
3054
  *height = NUM2ULONG(v);
3055
3055
 
3056
3056
  // Getting the flag field is a bit more difficult since it's
@@ -3061,10 +3061,10 @@ rm_get_geometry(
3061
3061
  {
3062
3062
  MagickEnum *magick_enum;
3063
3063
 
3064
- v = rb_funcall(geom, ID_flag, 0);
3064
+ v = rb_funcall(geom, rm_ID_flag, 0);
3065
3065
  if (!Class_GeometryValue)
3066
3066
  {
3067
- Class_GeometryValue = rb_const_get(Module_Magick, ID_GeometryValue);
3067
+ Class_GeometryValue = rb_const_get(Module_Magick, rm_ID_GeometryValue);
3068
3068
  }
3069
3069
  if (CLASS_OF(v) != Class_GeometryValue)
3070
3070
  {
@@ -3125,7 +3125,7 @@ MagickBooleanType rm_progress_monitor(
3125
3125
 
3126
3126
  method = rb_str_new2(rb_id2name(rb_frame_last_func()));
3127
3127
 
3128
- rval = rb_funcall((VALUE)client_data, ID_call, 3, method, offset, span);
3128
+ rval = rb_funcall((VALUE)client_data, rm_ID_call, 3, method, offset, span);
3129
3129
 
3130
3130
  return RTEST(rval) ? MagickTrue : MagickFalse;
3131
3131
  }