PSPP-Perl

 view release on metacpan or  search on metacpan

PSPP.xs  view on Meta::CPAN

 struct sysreader_info *reader;
CODE:
 RETVAL = reader->dict;
 OUTPUT:
RETVAL


void
get_next_case (sfr)
 struct sysreader_info *sfr;
PPCODE:
 struct ccase *c;

 if (c = casereader_read (sfr->reader))
 {
  int v;

  EXTEND (SP, dict_get_var_cnt (sfr->dict));
  for (v = 0; v < dict_get_var_cnt (sfr->dict); ++v )
    {
      const struct variable *var = dict_get_var (sfr->dict, v);

const-xs.inc  view on Meta::CPAN

	dTARGET;
#endif
	STRLEN		len;
        int		type;
	/* IV		iv;	Uncomment this if you need to return IVs */
	/* NV		nv;	Uncomment this if you need to return NVs */
	/* const char	*pv;	Uncomment this if you need to return PVs */
    INPUT:
	SV *		sv;
        const char *	s = SvPV(sv, len);
    PPCODE:
	type = constant(aTHX_ s, len);
      /* Return 1 or 2 items. First is error message, or undef if no error.
           Second, if present, is found value */
        switch (type) {
        case PERL_constant_NOTFOUND:
          sv =
	    sv_2mortal(newSVpvf("%s is not a valid PSPP macro", s));
          PUSHs(sv);
          break;
        case PERL_constant_NOTDEF:



( run in 0.637 second using v1.01-cache-2.11-cpan-5511b514fd6 )