in reply to Re^3: XS/Inline::C concat *any* two SVs.
in thread XS/Inline::C concat *any* two SVs.
Unfortunately not. If I substitute SvOK( sv ) for my more complex test, then I get this output from my testcases:
c:\test>test billfred Use of uninitialized value in subroutine entry at c:\test\test.pl line + 30. fred billfred fred fred1
Compare that with the output from the original
c:\test>test billfred fred billfred 1fred 1fred1
The problem is that it detects that (N|I|U)OK is true, but it doesn't cause the PV to be set to reflect their contents. So, when you call sv_catsv the value in the NV|IV|UV gets discarded. Or at least that's my best interpretation of what I am seeing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: XS/Inline::C concat *any* two SVs.
by creamygoodness (Curate) on May 30, 2006 at 16:00 UTC | |
by BrowserUk (Patriarch) on May 30, 2006 at 17:53 UTC | |
by tye (Sage) on May 30, 2006 at 18:15 UTC | |
by BrowserUk (Patriarch) on May 30, 2006 at 18:27 UTC | |
by creamygoodness (Curate) on May 31, 2006 at 05:59 UTC | |
by tye (Sage) on May 31, 2006 at 14:59 UTC | |
|