Didn't take long...

SW_RESULTS is T_OBJECT typemap

SW_RESULTS
SwishExecute( search, query )
    SW_SEARCH search
    char *query

    PREINIT:
        char * CLASS = "SWISH::API::Results";

So on the perl side I'd like  'query' to be optional, and to pass in NULL
if it doesn't exist (and to not croak if items != 2).  Seems like a common
situation, but the only think that seems likely is using T_ARRAY typemap
and ellipsis.

SW_RESULTS
SwishExecute( search, query, ... )

Is there a clean way to do this?

-- 
Bill Moseley
mailto:[EMAIL PROTECTED]

Reply via email to