Displaying 2 results from an estimated 2 matches for "have_rb_hash_lookup".
2015 Oct 05
0
Re: [PATCH] Remove multiple hacks that only apply to RHEL 5.
...tor/ruby.ml b/generator/ruby.ml
> index 87bb34a..cb187b0 100644
> --- a/generator/ruby.ml
> +++ b/generator/ruby.ml
> @@ -84,20 +84,6 @@ let rec generate_ruby_c () =
> #define RSTRING_PTR(r) (RSTRING((r))->ptr)
> #endif
>
> -/* For RHEL 5 (Ruby 1.8.5) */
> -#ifndef HAVE_RB_HASH_LOOKUP
> -VALUE
> -rb_hash_lookup (VALUE hash, VALUE key)
> -{
> - volatile VALUE val;
> -
> - if (!st_lookup (RHASH(hash)->tbl, key, &val))
> - return Qnil;
> -
> - return val;
> -}
> -#endif /* !HAVE_RB_HASH_LOOKUP */
The
have_func("rb_hash_lookup&qu...
2015 Oct 05
2
[PATCH] Remove multiple hacks that only apply to RHEL 5.
...], "hello"), []
diff --git a/generator/ruby.ml b/generator/ruby.ml
index 87bb34a..cb187b0 100644
--- a/generator/ruby.ml
+++ b/generator/ruby.ml
@@ -84,20 +84,6 @@ let rec generate_ruby_c () =
#define RSTRING_PTR(r) (RSTRING((r))->ptr)
#endif
-/* For RHEL 5 (Ruby 1.8.5) */
-#ifndef HAVE_RB_HASH_LOOKUP
-VALUE
-rb_hash_lookup (VALUE hash, VALUE key)
-{
- volatile VALUE val;
-
- if (!st_lookup (RHASH(hash)->tbl, key, &val))
- return Qnil;
-
- return val;
-}
-#endif /* !HAVE_RB_HASH_LOOKUP */
-
static VALUE m_guestfs; /* guestfs module */
static VALUE c_guestfs; /* guestfs_h handl...