Grokbase Groups Perl xs January 2002
FAQ

Search Discussions

14 discussions - 33 posts

  • Hi all, I have looked everywhere on the web and I cannot find an example of returning an error string in $! in my XS extention. Does somebody know how to do this? Thanks in advance! Daniel Shane
    Daniel ShaneDaniel Shane
    Jan 18, 2002 at 6:51 pm
    Jan 23, 2002 at 5:19 pm
  • Thanks for the reply, I am writing some perl bindings for Libnet (should make it to CPAN soon). However, there are two routines libnet_init_packet and libnet_destroy_packet. init_packet takes a char ...
    Daniel ShaneDaniel Shane
    Jan 21, 2002 at 7:38 pm
    Jan 21, 2002 at 8:17 pm
  • Hi all, I have a data structure that is a linked list. In my XSUB, I'd like to traverse that linked list and return the list as an array of objects. Here's some of my code so far: void tracks( self ) ...
    Mike WongMike Wong
    Jan 31, 2002 at 7:53 pm
    Feb 1, 2002 at 4:03 pm
  • I'm trying to create a multi level hash of hashes/arrays Here's my code: HV* PortInfo(cp,profile=NULL) Laff::Cell cp char* profile CODE: { node_p names,np; HV *top,*hv; name_p name; top = newHV(); ...
    Billy PattonBilly Patton
    Jan 28, 2002 at 11:40 pm
    Jan 29, 2002 at 12:16 am
  • But since we dont know for sure the size of the string (I dont think it's possible in C to know the size of an allocated pointer), it wont work. Daniel
    Daniel ShaneDaniel Shane
    Jan 21, 2002 at 8:14 pm
    Jan 22, 2002 at 2:27 pm
  • I've been writing my XS on the sun with version 5.005 This line is ok on the sun, but fails on my PC runniing perl 5.6.1 name = (char*) SvPV(*av_fetch(a,i,0),na); perlguts tell me I can use ...
    Billy PattonBilly Patton
    Jan 11, 2002 at 12:05 pm
    Jan 11, 2002 at 5:45 pm
  • Hi, With the help of this group I got $! to work, now here is another problem... I would like to make this work in perl XS: void init(str) char * &str void fill(str, str2) char * str char * str2 void ...
    Daniel ShaneDaniel Shane
    Jan 21, 2002 at 3:42 pm
    Jan 21, 2002 at 6:31 pm
  • I am using croak in my XS when a value passed in or something else is wrong to exit my XS. But his presents a problem with the .t files I'm writing for testing. If I pass a bad value to my xs routine ...
    Billy PattonBilly Patton
    Jan 10, 2002 at 7:48 pm
    Jan 10, 2002 at 8:04 pm
  • I've been rebuilding my c library. I've ran it through Purify on the sun and BoundsChecker on my PC. I have no memory problems according to those 2 programs. How do I determine the same for my XS? ...
    Billy PattonBilly Patton
    Jan 10, 2002 at 6:59 pm
    Jan 10, 2002 at 7:09 pm
  • I have compiled a version of perl5.005 with the pureperl options. Long story short, I'm now getting a log file out with some good information. If I run my individual test: pureperl -Mblib ...
    Billy PattonBilly Patton
    Jan 29, 2002 at 1:26 pm
    Jan 29, 2002 at 1:26 pm
  • I need to check my xs for leakage. I have my c code purify'd. No leaks there. I pulled in 5.005 and compiled with the make pureperl It shows to be doing the purify instrumenting but when I execute ...
    Billy PattonBilly Patton
    Jan 21, 2002 at 3:51 pm
    Jan 21, 2002 at 3:51 pm
  • Dear friends, I am getting the following problem while converting perl programs in to executables with perlcc on redhat linux7.1 test.pl syntax OK Compiling C(test) for test.pl! /usr/bin/perl ...
    kondreddy Rama koti Reddykondreddy Rama koti Reddy
    Jan 17, 2002 at 2:43 pm
    Jan 17, 2002 at 2:43 pm
  • How do i put in blocks of comments to seperate my XS into logical sections ex: MODULE = A .... MODULE = B .... MODULE = C #ifdef DONT_USE_FROM HERE DOWN BLAHBLAHBLAH I've tried /* */ inside the ifdef ...
    Billy PattonBilly Patton
    Jan 14, 2002 at 7:41 pm
    Jan 14, 2002 at 7:41 pm
  • In my last message I ask about memory leakage. Now I need to know about test coverage. I've seen some modules that work for perl. I can put CFLAGS = -g3 -Wall -fprofile-arcs -ftest-coverage in my ...
    Billy PattonBilly Patton
    Jan 10, 2002 at 7:24 pm
    Jan 10, 2002 at 7:24 pm
Group Navigation
period‹ prev | Jan 2002 | next ›
Group Overview
groupxs @
categoriesperl
discussions14
posts33
users14
websiteperl.org
Archives