Billy Patton <[EMAIL PROTECTED]> writes:
>Here's my typemap :
>Laff T_PTROBJ
>Laff::Node T_PTROBJ
>Laff::Cell T_PTROBJ
>
>
>Here's my XS :
>/* at the top */
>typedef node_t * Laff__Node;
>typedef cell_t * Laff__Cell;
>typedef laff_db * Laff;
>
>
>
>MODULE = Laff PACKAGE=Laff::Cell PREFIX=Cell
>
>int
>CellCompare(Laff::Cell ci,Laff::Cell co,int ace=0,int attr=0,int
>text=0,int lib=0);
The ANSI-C style is new-ish - and is that line is wrapped at that point
in your .xs ?
Any warnings from xsubpp ?
>
>
>Here's my c :
>int CellCompare(cell_p cp1,cell_p cp2,int ace,int attr,int text,int lib)
>{
>....
>}
>
>
>Here's the perl :
> CUIverbose("$ace,$attr,$text,$lib");
> #unless ($cp1->Compare($cp2,$ace,$attr,$text,$lib)) <<<< FAILS
> #unless ($cp1->Compare($cp2)) <<<<<---- WORKS ******
> unless ($cp1->Compare($cp2,$ace)) <<<<< FAILS this is line 197
>
>Here's the result :
> LDC0000 INFO : 0,0,0,0 <<<<---- from the CUIverbose
> CUI0010 FATAL : Usage: Laff::Cell::Compare(ci, co) at
>../LaffDiffCell line
> 197.
What does the generated .c file look like?
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/