rmagick 5.3.0 → 5.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * Changes since Nov. 2009 copyright © by Benjamin Thomas and Omer Bar-or
7
7
  *
8
- * @file rminfo.c
9
- * @version $Id: rminfo.c,v 1.79 2009/12/20 02:33:33 baror Exp $
8
+ * @file rminfo.cpp
9
+ * @version $Id: rminfo.cpp,v 1.79 2009/12/20 02:33:33 baror Exp $
10
10
  * @author Tim Hunter
11
11
  ******************************************************************************/
12
12
 
@@ -255,7 +255,7 @@ Info_aref(int argc, VALUE *argv, VALUE self)
255
255
  {
256
256
  Info *info;
257
257
  char *format_p, *key_p;
258
- long format_l, key_l;
258
+ size_t format_l, key_l;
259
259
  const char *value;
260
260
  char fkey[MaxTextExtent];
261
261
 
@@ -318,7 +318,7 @@ Info_aset(int argc, VALUE *argv, VALUE self)
318
318
  Info *info;
319
319
  VALUE value;
320
320
  char *format_p, *key_p, *value_p = NULL;
321
- long format_l, key_l;
321
+ size_t format_l, key_l;
322
322
  char ckey[MaxTextExtent];
323
323
 
324
324
  TypedData_Get_Struct(self, Info, &rm_info_data_type, info);
@@ -686,7 +686,7 @@ Info_define(int argc, VALUE *argv, VALUE self)
686
686
  Info *info;
687
687
  char *format, *key;
688
688
  const char *value = "";
689
- long format_l, key_l;
689
+ size_t format_l, key_l;
690
690
  char ckey[100];
691
691
  unsigned int okay;
692
692
  VALUE fmt_arg;
@@ -1835,7 +1835,7 @@ Info_sampling_factor_eq(VALUE self, VALUE sampling_factor)
1835
1835
  {
1836
1836
  Info *info;
1837
1837
  char *sampling_factor_p = NULL;
1838
- long sampling_factor_len = 0;
1838
+ size_t sampling_factor_len = 0;
1839
1839
 
1840
1840
  TypedData_Get_Struct(self, Info, &rm_info_data_type, info);
1841
1841
 
@@ -1888,7 +1888,7 @@ Info_scene_eq(VALUE self, VALUE scene)
1888
1888
  TypedData_Get_Struct(self, Info, &rm_info_data_type, info);
1889
1889
  info->scene = NUM2ULONG(scene);
1890
1890
 
1891
- snprintf(buf, sizeof(buf), "%"RMIuSIZE"", info->scene);
1891
+ snprintf(buf, sizeof(buf), "%" RMIuSIZE "", info->scene);
1892
1892
  SetImageOption(info, "scene", buf);
1893
1893
 
1894
1894
  return scene;
@@ -2175,7 +2175,7 @@ Info_undefine(VALUE self, VALUE format, VALUE key)
2175
2175
  {
2176
2176
  Info *info;
2177
2177
  char *format_p, *key_p;
2178
- long format_l, key_l;
2178
+ size_t format_l, key_l;
2179
2179
  char fkey[MaxTextExtent];
2180
2180
 
2181
2181
  format_p = rm_str2cstr(format, &format_l);
@@ -2350,11 +2350,11 @@ Info_memsize(const void *infoptr)
2350
2350
  *
2351
2351
  * No Ruby usage (internal function)
2352
2352
  *
2353
- * @param class the Ruby class to use
2353
+ * @param klass the Ruby class to use
2354
2354
  * @return a new ImageInfo object
2355
2355
  */
2356
2356
  VALUE
2357
- Info_alloc(VALUE class)
2357
+ Info_alloc(VALUE klass)
2358
2358
  {
2359
2359
  Info *info;
2360
2360
  VALUE info_obj;
@@ -2364,7 +2364,7 @@ Info_alloc(VALUE class)
2364
2364
  {
2365
2365
  rb_raise(rb_eNoMemError, "not enough memory to initialize Info object");
2366
2366
  }
2367
- info_obj = TypedData_Wrap_Struct(class, &rm_info_data_type, info);
2367
+ info_obj = TypedData_Wrap_Struct(klass, &rm_info_data_type, info);
2368
2368
 
2369
2369
  RB_GC_GUARD(info_obj);
2370
2370
 
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Copyright © RMagick Project
5
5
  *
6
- * @file rmkinfo.c
7
- * @version $Id: rmkinfo.c,v 1.0 2011/11/29 15:33:14 naquad Exp $
6
+ * @file rmkinfo.cpp
7
+ * @version $Id: rmkinfo.cpp,v 1.0 2011/11/29 15:33:14 naquad Exp $
8
8
  * @author Naquad
9
9
  ****************************************************************************/
10
10
 
@@ -20,11 +20,6 @@ const rb_data_type_t rm_kernel_info_data_type = {
20
20
  RUBY_TYPED_FROZEN_SHAREABLE,
21
21
  };
22
22
 
23
- /* UnityAddKernelInfo() was private function until IM 6.9 */
24
- MagickExport void UnityAddKernelInfo(KernelInfo *kernel, const double scale);
25
- /* ScaleKernelInfo() was private function until IM 6.9 */
26
- MagickExport void ScaleKernelInfo(KernelInfo *kernel, const double scaling_factor, const GeometryFlags normalize_flags);
27
-
28
23
  DEFINE_GVL_VOID_STUB2(UnityAddKernelInfo, KernelInfo *, const double);
29
24
  DEFINE_GVL_VOID_STUB3(ScaleKernelInfo, KernelInfo *, const double, const GeometryFlags);
30
25
  DEFINE_GVL_VOID_STUB2(ScaleGeometryKernelInfo, KernelInfo *, const char *);
@@ -64,9 +59,9 @@ rm_kernel_info_memsize(const void *ptr)
64
59
  * @return [Magick::KernelInfo] a new KernelInfo object
65
60
  */
66
61
  VALUE
67
- KernelInfo_alloc(VALUE class)
62
+ KernelInfo_alloc(VALUE klass)
68
63
  {
69
- return TypedData_Wrap_Struct(class, &rm_kernel_info_data_type, NULL);
64
+ return TypedData_Wrap_Struct(klass, &rm_kernel_info_data_type, NULL);
70
65
  }
71
66
 
72
67
  /**