logo       

Re: add -prefix option to Ruby module: msg#00196

programming.swig

Subject: Re: add -prefix option to Ruby module

Hi,

Is it not good?

In <20040520.003519.82485676.kou@localhost>
"[Swig] add -prefix option to Ruby module" on Thu, 20 May 2004 00:35:19 +0900
(JST),
Kouhei Sutou <kou@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> I want to add prefix (like `sample::') to all module name
> when I use swig for Ruby and other languages. But I don't
> want to add prefix directory by %module.
>
> I made a patch for add -prefix option to Ruby module. The
> following two examples work similarly by applying the
> attached patch.
>
> i)
>
> a.i
> ----
> %module "x::a"
> ----
>
> b.i
> ----
> %module "x::b"
> %import a.i
> ----
>
> % swig -ruby b.i
>
> ii)
>
> a.i
> ----
> %module "a"
> ----
>
> b.i
> ----
> %module "b"
> %import a.i
> ----
>
> % swig -ruby -prefix x:: b.i

--
kou
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise