Grokbase Groups Perl xs April 2004

Search Discussions

17 discussions - 52 posts

  • I have an XSUB that returns a list of things like this: void foo() PPCODE: { EXTEND(SP, 2); PUSHs(sv_2mortal(newSViv(42))); PUSHs(sv_2mortal(newSVpvn("Forty-two", 9))); XSRETURN(2); } It works fine ...
    Steve HaySteve Hay
    Apr 26, 2004 at 8:44 am
    May 4, 2004 at 1:22 pm
  • I have a xsub that has a pointer to a c-structure, and a sv as the parameters, IV set_fld_name(fld, name) FLD * fld SV * name PREINIT: STRLEN len; CODE: if (name == (SV *)NULL) RETVAL = 0; else { ...
    Scott T. HildrethScott T. Hildreth
    Apr 19, 2004 at 5:08 pm
    Apr 26, 2004 at 8:33 am
  • Hi, I'm wanting to know the precise sets of conditions under which the IV, UV, and NV flags will be set. Is this documented somewhwere ? I've tried experimenting by assigning some values and reached ...
    Apr 23, 2004 at 4:10 am
    Apr 27, 2004 at 2:17 am
  • Hi. Can I use: * IVX, NVX fields in AV * NVX field in HV for own purposes without any conflicts in the future? (Like mg_private in struct magic and so on). -- Sergey Skvortsov mailto:
    Sergey SkvortsovSergey Skvortsov
    Apr 28, 2004 at 9:34 am
    May 10, 2004 at 3:09 pm
  • I am interfacing to an ancient 4(ish)GL library. It defines a number of tied (global) variables which are defined internally to the library but are not (necessarily) yet defined in perl. So we have ...
    Dirk KoopmanDirk Koopman
    Apr 16, 2004 at 2:38 pm
    Apr 19, 2004 at 4:52 pm
  • Hi. Situation: There is a class with no childs (class can't be inherited by design). Question: Is it safe to cache stash address in the static var? And using this var in consequent blesses? ...
    Sergey SkvortsovSergey Skvortsov
    Apr 26, 2004 at 1:06 pm
    May 19, 2004 at 3:55 pm
  • I'm trying to connect perl to OpenAccess c++ library. I've managed to get Makefile.PL to work and make to compile and create a blib Here's my nm on the .so 162 % nm ...
    Billy N. PattonBilly N. Patton
    Apr 23, 2004 at 6:24 pm
    May 12, 2005 at 10:45 pm
  • If I use the following compiler: $ gcc --version gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk) with these flags:- gcc -std=c99 -pedantic -Wall for this code: char *p; #line 73 if (SvTRUE(ERRSV)) { ...
    Dirk KoopmanDirk Koopman
    Apr 27, 2004 at 3:28 pm
    May 3, 2004 at 2:50 pm
  • I'm taking a look at putting an extention onto large c++ library. My first 2 minute attempt was to just run h2xs on the top .h file. I only got the std hoopla, but nothing from the .h Does h2xs ...
    Billy N. PattonBilly N. Patton
    Apr 12, 2004 at 6:39 pm
    Apr 13, 2004 at 11:47 am
  • Hi, I have what seemed like an easy problem a few hours ago, but I've been tring to figure out if an element of a hash table is defined or not. Essentially, I have a hash of arrays, and if the hash ...
    Brann Douglas B Capt AFRL/DEBEBrann Douglas B Capt AFRL/DEBE
    Apr 25, 2004 at 6:24 pm
    Apr 26, 2004 at 9:01 am
  • Hi All -- Here is a snippet of XS-ish code that I've put together to show a problem I'm having trouble with returning many items on the stack. When CRASH is defined, perl segfaults running the test ...
    Aren SandersenAren Sandersen
    Apr 2, 2004 at 8:08 pm
    Apr 3, 2004 at 4:45 am
  • Hi there, I'm not 100% sure I got on the list. I expected some kind of confirmation. I suppose I may have deleted it. So this is a test. Also, I want to make sure I'm in the right place. I've done a ...
    Paul MillerPaul Miller
    Apr 30, 2004 at 8:41 pm
    Apr 30, 2004 at 8:41 pm
  • I'm trying to build an extension to port an arbatrary complex data structure to Perl. Up till now, I'm converting booleans, numbers and strings as scallars, and entire arrays of the above. Now I'm ...
    Issac GoldstandIssac Goldstand
    Apr 30, 2004 at 12:57 pm
    Apr 30, 2004 at 12:57 pm
  • Hi folks, I'm wondering if anyone's ever written a typemap for UINT64 (unsigned long long) type. I have a following C function: UINT64 do_extract(int startpos, int endpos, UINT64 orig); Any ideas how ...
    Thantry, Hariharan LThantry, Hariharan L
    Apr 28, 2004 at 10:01 pm
    Apr 28, 2004 at 10:01 pm
  • Anders Sønderberg MortensenAnders Sønderberg Mortensen
    Apr 27, 2004 at 12:00 pm
    Apr 27, 2004 at 12:00 pm
  • Hi All, I'm a beginner at XS and need to interface with some MS specific code written in C/COM. I initially thought of trying out some example codes at ...
    Thantry, Hariharan LThantry, Hariharan L
    Apr 26, 2004 at 5:04 pm
    Apr 26, 2004 at 5:04 pm
  • I'm trying to connect a c++ library, of which I only have .so files, into perl . I've gotten it to compile and bind, but when I execute I get the following error 76 % ...
    Billy N. PattonBilly N. Patton
    Apr 20, 2004 at 4:21 pm
    Apr 20, 2004 at 4:21 pm
Group Navigation
period‹ prev | Apr 2004 | next ›
Group Overview
groupxs @