[macruby-changes] [4396] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 30 17:29:32 PDT 2010


Revision: 4396
          http://trac.macosforge.org/projects/ruby/changeset/4396
Author:   joshua.ballanco at apple.com
Date:     2010-07-30 17:29:32 -0700 (Fri, 30 Jul 2010)
Log Message:
-----------
Cast, don't get; would be good to export this too

Modified Paths:
--------------
    MacRuby/trunk/encoding.c
    MacRuby/trunk/include/ruby/encoding.h

Modified: MacRuby/trunk/encoding.c
===================================================================
--- MacRuby/trunk/encoding.c	2010-07-30 22:35:50 UTC (rev 4395)
+++ MacRuby/trunk/encoding.c	2010-07-31 00:29:32 UTC (rev 4396)
@@ -516,7 +516,7 @@
         return -1;
     }
     else {
-        int idx = index_of_encoding(rb_enc_get(enc));
+        int idx = index_of_encoding((rb_encoding_t *)enc);
         if (idx >= 0) {
             return idx;
         }

Modified: MacRuby/trunk/include/ruby/encoding.h
===================================================================
--- MacRuby/trunk/include/ruby/encoding.h	2010-07-30 22:35:50 UTC (rev 4395)
+++ MacRuby/trunk/include/ruby/encoding.h	2010-07-31 00:29:32 UTC (rev 4396)
@@ -123,6 +123,7 @@
 rb_encoding *rb_usascii_encoding(void);
 rb_encoding *rb_locale_encoding(void);
 rb_encoding *rb_default_external_encoding(void);
+rb_encoding *rb_default_internal_encoding(void);
 int rb_usascii_encindex(void);
 int rb_ascii8bit_encindex(void);
 VALUE rb_enc_default_external(void);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100730/522c0268/attachment.html>


More information about the macruby-changes mailing list