Line 0
Link Here
|
|
|
1 |
--- ext/ming/ming/swfmovie.c.orig 2003-09-28 13:22:16.000000000 +0900 |
2 |
+++ ext/ming/ming/swfmovie.c 2014-01-29 17:11:21.000000000 +0900 |
3 |
@@ -108,7 +108,7 @@ |
4 |
int count; |
5 |
|
6 |
Data_Get_Struct(self, struct RSWFMovie, m); |
7 |
- count = SWFMovie_save(m->this, STR2CSTR(s)); |
8 |
+ count = SWFMovie_save(m->this, StringValuePtr(s)); |
9 |
|
10 |
return INT2NUM(count); |
11 |
} |
12 |
@@ -226,7 +226,7 @@ |
13 |
struct RSWFMovie *m; |
14 |
|
15 |
Data_Get_Struct(self, struct RSWFMovie, m); |
16 |
- SWFMovie_labelFrame(m->this, STR2CSTR(label)); |
17 |
+ SWFMovie_labelFrame(m->this, StringValuePtr(label)); |
18 |
|
19 |
return self; |
20 |
} |
21 |
@@ -248,7 +248,7 @@ |
22 |
VALUE self, n; |
23 |
{ |
24 |
struct RSWFMovie *m; |
25 |
- char *name = STR2CSTR(n); |
26 |
+ char *name = StringValuePtr(n); |
27 |
FILE *fp; |
28 |
VALUE path = rb_cv_get(rb_cSWFMovie, "@@mp3_path"); |
29 |
#ifdef SUPPORT_PCM |
30 |
@@ -286,7 +286,7 @@ |
31 |
Data_Get_Struct(block, struct RSWFBlock, b); |
32 |
|
33 |
regist_references(m->table, n); |
34 |
- SWFMovie_addExport(m->this, b->this, STR2CSTR(n)); |
35 |
+ SWFMovie_addExport(m->this, b->this, StringValuePtr(n)); |
36 |
|
37 |
return self; |
38 |
} |
39 |
@@ -331,7 +331,7 @@ |
40 |
{ |
41 |
struct RSWFMovie *m; |
42 |
struct RSWFDisplayItem *i; |
43 |
- char *name = STR2CSTR(n); |
44 |
+ char *name = StringValuePtr(n); |
45 |
FILE *fp; |
46 |
VALUE obj, path = rb_cv_get(rb_cSWFMovie, "@@mp3_path"); |
47 |
SWFSound sound; |