Displaying 4 results from an estimated 4 matches for "rhash".
Did you mean:
hash
2015 Oct 05
0
Re: [PATCH] Remove multiple hacks that only apply to RHEL 5.
...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")
in ruby/ext/guestfs/extconf.rb.in could be removed then.
Thanks,
--
Pino Toscano
2015 Oct 05
2
[PATCH] Remove multiple hacks that only apply to RHEL 5.
...enerator/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 handle */
static VALUE e_Error; /* used for all errors */
diff --git a/run.in b/run.in
index 42f8cc8.....
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...(match ret with
| RErr ->
- pr " _%s " name;
- generate_java_call_args ~handle:"g" style;
+ pr " _%s " f.name;
+ generate_java_call_args ~handle:"g" f.style;
pr ";\n"
| RHashtable _ ->
- pr " String[] r = _%s " name;
- generate_java_call_args ~handle:"g" style;
+ pr " String[] r = _%s " f.name;
+ generate_java_call_args ~handle:"g" f.style;
pr ";\n";...
2013 Mar 07
7
Fixes from the patch queue of the Debian package
Here are three patches that fix issues with out-of-tree building and
one that uses Ruby's own autoconf stuff for determining how Ruby
bindings should be built.
Cheers,
-Hilko