Ariel Scolnicov wrote:
> 
> "B. K. Oxley \(binkley\)" <[EMAIL PROTECTED]> writes:
> 
> > From: "Ned Konz" <[EMAIL PROTECTED]>
> >
> > > I don't think you can drop the argument names in the definition of a C
> > > subroutine. You can in C++, though. Or in the declaration of a
> > subroutine.
> > > But aren't we talking about a definition here?
> 
> No.  I was specifically talking about Inline building a wrapper given
> *only* a declaration (a la Swig, and yes, I am a heretic, but at least
> I'm trying to get better).

Believe it or not, I'm thinking about autogenerating wrappers from
headers. But not as the default behaviour. Patrick does an external
'STUDY' for Java classes. I'm thinking about generalizing it for C.
Here's a first cut syntax I proposed to Patrick yesterday:

    use Inline C => 'EXTERNAL',
               EXAMINE => [ 'foo.h', 'bar.h' ],
               BIND => [ 'foo_func2', qr{^bar_} ];

That way you're at least predeclaring what you want to bind to instead
of just going for the whole schmear.

Patrick and I are going to discuss this more at YAPC. I'll have to run
it by Neil.

Your thoughts?

Cheers, Brian

-- 
perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
("Just Another %s Hacker",x);}};print JAxH+Perl'

Reply via email to