Permalink
Switch branches/tags
Commits on May 21, 2012
  1. Fix libffi build issue with Clang

    ryoqun committed May 20, 2012
    This cherry-picks a commit by hand to fix a libffi build failure with clang.
    In particular, I applied the following patch from the official libffi
    repository:
      https://github.com/atgreen/libffi/blob/master/patches/x86_pcrel_test
    
    References:
      http://bugs.python.org/issue12812
      https://bugzilla.mozilla.org/show_bug.cgi?id=631928
      http://sourceware.org/ml/libffi-discuss/2011/msg00024.html
Commits on May 20, 2012
  1. Fix IO#popen tags.

    ileitch committed May 20, 2012
  2. Update to libffi 3.0.11

    dbussink committed May 20, 2012
  3. Don't use unions for cmsghdr

    ryoqun committed May 20, 2012
    Work around build issues on mac instroduced this commmit:
      e2e7b25 Use union instead of struct for cmsghdr
    
    Reference:
      http://alas.matf.bg.ac.rs/manuals/lspe/snode=153.html
  4. Use union instead of struct for cmsghdr

    ryoqun committed May 20, 2012
    Use of struct with cmsghdr and pad is a GNU extension. When built with
    Clang, warnings are issued as such. So take the union approach instead.
    
    To fix this, I used an example at:
      http://www.rootr.net/man/man/CMSG_SPACE
    
    This is a second try to fix clang warnings in io.cpp. The reverted first try
    was:
      a9648cf Ignore all GNU-extension warnings
    
    As an alternative approach to it, I fixed the code itself.
Commits on May 19, 2012
  1. Revert "fixed Rake deprecation warning"

    nazgob committed May 19, 2012
    This reverts commit 95bb2fe.
  2. Revert "Ignore all GNU-extension warnings"

    dbussink committed May 19, 2012
    This reverts commit a9648cf.
  3. Regenerated Rapa

    ryoqun committed May 19, 2012
  4. Ignore all GNU-extension warnings

    ryoqun committed May 19, 2012
    This commit suppresses following warnings from Clang:
      vm/builtin/io.cpp:1101:22: error: field 'hdr' with variable sized type
        'struct cmsghdr' not at the end of a struct or class is a GNU extension
        [-Werror,-Wgnu]
            struct cmsghdr hdr;
                           ^
      vm/builtin/io.cpp:1146:22: error: field 'hdr' with variable sized type
        'struct cmsghdr' not at the end of a struct or class is a GNU extension
        [-Werror,-Wgnu]
            struct cmsghdr hdr;
                           ^
      2 errors generated.
  5. fixed Rake deprecation warning

    nazgob committed May 18, 2012
  6. Define the prototype of rb_cvar_set_internal

    ryoqun committed May 19, 2012
    This suppresses a following warning by running specs with Rubinius built by
    clang:
    
      spec/ruby/optional/capi/ext/class_spec.c:108:2: warning:
        implicit declaration of function 'rb_cvar_set_internal' is invalid in C99
          [-Wimplicit-function-declaration]
            rb_cvar_set(klass, rb_intern(StringValuePtr(name)), val);
            ^
      vm/capi/19/include/ruby/ruby.h:1096:23: note: expanded from:
        #define rb_cvar_set   rb_cvar_set_internal
                              ^
      1 warning generated.
  7. Make some Zlib::ZStream methods private

    IPGlider committed May 19, 2012
    These methods should't be public, there are more methods that shouldn't
    be public but they need more work or is not currently possible.
  8. Remove Zlib::ZStream#detach_input & #detach_output

    IPGlider committed May 19, 2012
    These methods where called directly by #flush_next_in and #flush_next_out
    and are not in MRI so let's remove them for the sake of consistency.
Commits on May 18, 2012
  1. Fix indent..

    ryoqun committed May 18, 2012
Commits on May 17, 2012
  1. Wrap condition in curlies.

    ileitch committed May 17, 2012
  2. Merge pull request #1732 from antekpiechnik/specs_typo_fix

    nazgob committed May 17, 2012
    Corrected a typo in Float#to_s spec description
  3. Fixed invalid spec descriptions for Float#to_s

    antekpiechnik committed May 17, 2012
    Instead of *decimal places* we should use *significant figures* to describe
    the number of digits that carry meaning contributing to precision of those numbers.
    
    http://en.wikipedia.org/wiki/Significant_figures
    
    I think :)