[#4654] signleton_methods / methods / public_methods - weirdness? — Johan Holmberg <holmberg@...>
[#4666] Getting a hex representation for a Numeric — "Zev Blut" <rubyzbibd@...>
Hello,
[#4670] ruby 1.8.3 preview1 plan — Yukihiro Matsumoto <matz@...>
Hi,
[#4690] test failures for stable-snapshot 09/04/2005 — noreply@...
Bugs item #1762, was opened at 10-04-2005 20:46
Hello.
[#4709] BNF-like grammar specified DIRECTLY in Ruby — Eric Mahurin <eric_mahurin@...>
Hello everybody,
[#4712] Segfault in zlib? — Nathaniel Talbott <ntalbott@...>
I'm using rubyzip (latest gem version) and zlib (1.2.2) to do a bunch
[#4736] Trivial speedup in Array#zip — Mauricio Fern疣dez <batsman.geo@...>
[#4745] Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...>
Having taken upon me the task to provide a Windows build for
On 4/20/05, Erik Huelsmann <ehuels@gmail.com> wrote:
Hi Austin,
Hi,
On 4/24/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
Hi,
> > > Ruby is just using AC_TYPE_UID_T. So, using typedef for them,
Hi,
On 4/26/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
As promised, I attached a patch to eliminate the compile problems
Hi,
Thanks for the quick response!
Hi,
On 5/14/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
[#4751] Illegal regexp causes segfault — Andrew Walrond <andrew@...>
irb(main):058:0> a = /\[([^]]*)\]/
Andrew Walrond, April 22:
In article <200504221210.38231.andrew@walrond.org>,
>>>>> "T" == Tanaka Akira <akr@m17n.org> writes:
[#4774] enhanced $0 modification — Evan Webb <evanwebb@...>
The attached patch allows for ruby to use more of the available stack
Hi,
[#4775] profiler.rb Schroedinbug — C Erler <erlercw@...>
A ruby program with the single instruction "require 'profile'"
>A ruby program with the single instruction "require 'profile'"
[#4807] Re: -Wall — Vincent Isambart <vincent.isambart@...>
> Why does ruby build without -Wall in CFLAGS by default? -Wall can help to
[#4815] Re: -Wall — nobu.nokada@...
Hi,
Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings
On 4/22/05, Kouhei Sutou <kou@cozmixng.org> wrote:
> Hi,
>
> In <aea328ab0504200722376b8b94@mail.gmail.com>
> "Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings" on Wed, 20 Apr 2005 23:23:14 +0900,
> Erik Huelsmann <ehuels@gmail.com> wrote:
>
> > Having taken upon me the task to provide a Windows build for
> > Subversion, I run into a problem with the Ruby SWIG bindings. The
> > problem is with APR and Ruby Win32 header files though.
> >
> > Windows does not define pid_t, gid_t or uid_t in any of the system
> > headers. Both APR and Ruby *do* define these 3 types:
>
> Does this patch solve the problem?
No, because gid_t an uid_t are defined (conditionally on WIN32) in
config.h instead of in win32/win32.h.
But I think that although it would be nice to fix the bindings
compilation in the short term, this patch does not resolve any of the
problems introduced by defining or redefining POSIX standard types.
The correct solution would be to define rb_pid_t and friend, then on
POSIX systems:
typedef pid_t rb_pid_t
and on windows (and possibly other non-posix systems)
typedef int rb_pid_t
But I don't know who to submit a patch to in order to achieve that....
bye,
Erik.
>
> --
> kou
>
>
> Index: subversion/bindings/swig/core.i
> ===================================================================
> --- subversion/bindings/swig/core.i (revision 14394)
> +++ subversion/bindings/swig/core.i (working copy)
> @@ -27,6 +27,11 @@
> %include typemaps.i
>
> %{
> +#ifdef RUBY_WIN32_H
> +#undef UIDTYPE
> +#undef GIDTYPE
> +#undef pid_t
> +#endif
> #include <apr.h>
> #include <apr_general.h>
>
> Index: subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h
> ===================================================================
> --- subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h (revision 14394)
> +++ subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h (working copy)
> @@ -1,15 +1,15 @@
> #ifndef SVN_SWIG_SWIGUTIL_RB_H
> #define SVN_SWIG_SWIGUTIL_RB_H
>
> -#include <ruby.h>
> -#include <regex.h>
> -
> #include <apr.h>
> #include <apr_pools.h>
> #include <apr_hash.h>
> #include <apr_portable.h>
> #include <apr_file_io.h>
>
> +#include <ruby.h>
> +#include <regex.h>
> +
> #include "svn_types.h"
> #include "svn_string.h"
> #include "svn_delta.h"
> Index: subversion/bindings/swig/svn_client.i
> ===================================================================
> --- subversion/bindings/swig/svn_client.i (revision 14394)
> +++ subversion/bindings/swig/svn_client.i (working copy)
> @@ -312,6 +312,12 @@
>
> #ifdef SWIGRUBY
> %runtime %{
> + #ifdef RUBY_WIN32_H
> + #undef UIDTYPE
> + #undef GIDTYPE
> + #undef pid_t
> + #endif
> +
> #include <apr.h>
> #include <apr_pools.h>
>