]> git.pld-linux.org Git - packages/libcaca.git/blob - libcaca-format.patch
- added monodir patch (fix mono binding install on lib64 systems)
[packages/libcaca.git] / libcaca-format.patch
1 --- libcaca-0.99.beta18/ruby/caca-display.c.orig        2012-04-06 22:36:17.000000000 +0200
2 +++ libcaca-0.99.beta18/ruby/caca-display.c     2012-12-04 20:28:37.435444821 +0100
3 @@ -84,7 +84,7 @@
4  
5      if(display == NULL)
6      {
7 -        rb_raise(rb_eRuntimeError, strerror(errno));
8 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
9      }
10  
11      _SELF = display;
12 @@ -131,7 +131,7 @@
13  {
14      if(caca_set_display_title(_SELF, StringValuePtr(t))<0)
15      {
16 -        rb_raise(rb_eRuntimeError, strerror(errno));
17 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
18      }
19      return t;
20  }
21 @@ -252,7 +252,7 @@
22  {
23      if(caca_set_display_driver(_SELF, StringValuePtr(driver))<0)
24      {
25 -        rb_raise(rb_eRuntimeError, strerror(errno));
26 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
27      }
28      return driver;
29  }
30 @@ -267,7 +267,7 @@
31  {
32      if(caca_set_cursor(_SELF, flag)<0)
33      {
34 -        rb_raise(rb_eRuntimeError, strerror(errno));
35 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
36      }
37      return flag;
38  }
39 --- libcaca-0.99.beta18/ruby/caca-canvas.c.orig 2012-12-04 19:55:24.012153037 +0100
40 +++ libcaca-0.99.beta18/ruby/caca-canvas.c      2012-12-04 21:28:19.848703487 +0100
41 @@ -22,7 +22,7 @@
42  static VALUE x (VALUE self)                             \
43  {                                                       \
44      if( caca_##x (_SELF) <0)                            \
45 -        rb_raise(rb_eRuntimeError, strerror(errno));    \
46 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));    \
47                                                          \
48      return self;                                        \
49  }
50 @@ -58,7 +58,7 @@
51  
52      if(canvas == NULL)
53      {
54 -        rb_raise(rb_eRuntimeError, strerror(errno));
55 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
56      }
57  
58      _SELF = canvas;
59 @@ -104,7 +104,7 @@
60  static VALUE gotoxy(VALUE self, VALUE x, VALUE y)
61  {
62      if( caca_gotoxy(_SELF, NUM2INT(x), NUM2INT(y)) <0) {
63 -        rb_raise(rb_eRuntimeError, strerror(errno));
64 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
65      }
66      return self;
67  }
68 @@ -150,7 +150,7 @@
69  static VALUE set_attr(VALUE self, VALUE attr)
70  {
71      if(caca_set_attr(_SELF, NUM2ULONG(attr)) <0)
72 -        rb_raise(rb_eRuntimeError, strerror(errno));
73 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
74  
75      return self;
76  }
77 @@ -164,7 +164,7 @@
78  static VALUE put_attr(VALUE self, VALUE x, VALUE y, VALUE attr)
79  {
80      if(caca_put_attr(_SELF, NUM2INT(x), NUM2INT(y), NUM2ULONG(attr)) <0)
81 -        rb_raise(rb_eRuntimeError, strerror(errno));
82 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
83  
84      return self;
85  }
86 @@ -172,7 +172,7 @@
87  static VALUE set_color_ansi(VALUE self, VALUE fg, VALUE bg)
88  {
89      if(caca_set_color_ansi(_SELF, NUM2INT(fg), NUM2INT(bg)) <0)
90 -        rb_raise(rb_eRuntimeError, strerror(errno));
91 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
92  
93      return self;
94  }
95 @@ -180,7 +180,7 @@
96  static VALUE set_color_argb(VALUE self, VALUE fg, VALUE bg)
97  {
98      if(caca_set_color_argb(_SELF, NUM2UINT(fg), NUM2UINT(bg)) <0) {
99 -        rb_raise(rb_eRuntimeError, strerror(errno));
100 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
101      }
102      return self;
103  }
104 @@ -234,7 +234,7 @@
105          cmask = NULL;
106  
107      if(caca_blit(_SELF, NUM2INT(x), NUM2INT(y), csrc, cmask)<0)
108 -        rb_raise(rb_eRuntimeError, strerror(errno));
109 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
110  
111      return self;
112  }
113 @@ -243,7 +243,7 @@
114  {
115      if(caca_set_canvas_boundaries(_SELF, NUM2INT(x), NUM2INT(y), NUM2UINT(w), NUM2UINT(h))<0)
116      {
117 -        rb_raise(rb_eRuntimeError, strerror(errno));
118 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
119      }
120      return self;
121  }
122 @@ -524,7 +524,7 @@
123  static VALUE set_frame(VALUE self, VALUE id)
124  {
125      if(caca_set_frame(_SELF, NUM2INT(id))<0)
126 -        rb_raise(rb_eArgError, strerror(errno));
127 +        rb_raise(rb_eArgError, "%s", strerror(errno));
128  
129      return self;
130  }
131 @@ -543,7 +543,7 @@
132  static VALUE set_frame_name(VALUE self, VALUE name)
133  {
134      if(caca_set_frame_name(_SELF, StringValuePtr(name))<0)
135 -        rb_raise(rb_eRuntimeError, strerror(errno));
136 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
137  
138      return self;
139  }
140 @@ -557,7 +557,7 @@
141  static VALUE create_frame(VALUE self, VALUE id)
142  {
143      if(caca_create_frame(_SELF, NUM2INT(id))<0) {
144 -        rb_raise(rb_eRuntimeError, strerror(errno));
145 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
146      }
147      return self;
148  }
149 @@ -565,7 +565,7 @@
150  static VALUE free_frame(VALUE self, VALUE id)
151  {
152      if(caca_free_frame(_SELF, NUM2INT(id))<0) {
153 -        rb_raise(rb_eArgError, strerror(errno));
154 +        rb_raise(rb_eArgError, "%s", strerror(errno));
155      }
156      return self;
157  }
158 @@ -602,7 +602,7 @@
159      long int bytes;
160      bytes = caca_import_canvas_from_memory (_SELF, StringValuePtr(data), RSTRING_LEN(StringValue(data)), StringValuePtr(format));
161      if(bytes <= 0)
162 -        rb_raise(rb_eRuntimeError, strerror(errno));
163 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
164  
165      return self;
166  }
167 @@ -612,7 +612,7 @@
168      long int bytes;
169      bytes = caca_import_area_from_memory (_SELF, NUM2INT(x), NUM2INT(y), StringValuePtr(data), RSTRING_LEN(StringValue(data)), StringValuePtr(format));
170      if(bytes <= 0)
171 -        rb_raise(rb_eRuntimeError, strerror(errno));
172 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
173  
174      return self;
175  }
176 @@ -622,7 +622,7 @@
177      long int bytes;
178      bytes = caca_import_canvas_from_file (_SELF, StringValuePtr(filename), StringValuePtr(format));
179      if(bytes <= 0)
180 -        rb_raise(rb_eRuntimeError, strerror(errno));
181 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
182  
183      return self;
184  }
185 @@ -632,7 +632,7 @@
186      long int bytes;
187      bytes = caca_import_area_from_file (_SELF, NUM2INT(x), NUM2INT(y), StringValuePtr(filename), StringValuePtr(format));
188      if(bytes <= 0)
189 -        rb_raise(rb_eRuntimeError, strerror(errno));
190 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
191  
192      return self;
193  }
194 --- libcaca-0.99.beta18/ruby/caca-dither.c.orig 2012-12-04 19:55:24.012153037 +0100
195 +++ libcaca-0.99.beta18/ruby/caca-dither.c      2012-12-04 21:29:14.038702358 +0100
196 @@ -35,7 +35,7 @@
197      dither = caca_create_dither(NUM2UINT(bpp), NUM2UINT(w), NUM2UINT(h), NUM2UINT(pitch), NUM2ULONG(rmask), NUM2ULONG(gmask), NUM2ULONG(bmask), NUM2ULONG(amask));
198      if(dither == NULL)
199      {
200 -        rb_raise(rb_eRuntimeError, strerror(errno));
201 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
202      }
203      _SELF = dither;
204      return self;
205 @@ -121,7 +121,7 @@
206          free(green);
207          free(blue);
208          free(alpha);
209 -        rb_raise(rb_eRuntimeError, strerror(errno));
210 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
211      }
212  
213      free(red);
214 @@ -142,7 +142,7 @@
215  static VALUE set_##x(VALUE self, VALUE x)               \
216  {                                                       \
217      if(caca_set_dither_##x(_SELF, (float)NUM2DBL(x))<0) \
218 -        rb_raise(rb_eRuntimeError, strerror(errno));    \
219 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));    \
220                                                          \
221      return x;                                           \
222  }                                                       \
223 @@ -163,7 +163,7 @@
224  {                                                        \
225      if(caca_set_dither_##x(_SELF, StringValuePtr(x))<0)  \
226      {                                                    \
227 -        rb_raise(rb_eRuntimeError, strerror(errno));     \
228 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));     \
229      }                                                    \
230      return x;                                            \
231  }                                                        \
232 --- libcaca-0.99.beta18/ruby/caca-font.c.orig   2010-02-16 00:49:54.000000000 +0100
233 +++ libcaca-0.99.beta18/ruby/caca-font.c        2012-12-04 21:33:34.698696928 +0100
234 @@ -35,7 +35,7 @@
235      font = caca_load_font(StringValuePtr(name), 0);
236      if(font == NULL)
237      {
238 -        rb_raise(rb_eRuntimeError, strerror(errno));
239 +        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
240      }
241      _SELF = font;
242      return self;
This page took 0.085101 seconds and 3 git commands to generate.