summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9746966)
raw | patch | inline | side by side (parent: 9746966)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 31 Jul 2012 12:43:45 +0000 (12:43 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 31 Jul 2012 12:43:45 +0000 (12:43 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2296 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/perl-shared/RRDs.xs | patch | blob | history |
index 252018f53b2942d2f25583375fe7b086c54c310a..830a779d5f0f090c395cfeed3c0a445aa0b8b4f2 100644 (file)
switch (data->type) { \
case RD_I_VAL: \
if (isnan(data->value.u_val)) \
- hvs(&PL_sv_undef); \
+ hvs(newSV(0)); \
else \
hvs(newSVnv(data->value.u_val)); \
break; \
for (i = start+step; i <= end; i += step){
line = newAV();
for (ii = 0; ii < ds_cnt; ii++){
- av_push(line,(isnan(*datai) ? &PL_sv_undef : newSVnv(*datai)));
+ av_push(line,(isnan(*datai) ? newSV(0) : newSVnv(*datai)));
datai++;
}
av_push(retar,newRV_noinc((SV*)line));
for (i = start+step; i <= end; i += step){
line = newAV();
for (ii = 0; ii < col_cnt; ii++){
- av_push(line,(isnan(*ptr) ? &PL_sv_undef : newSVnv(*ptr)));
+ av_push(line,(isnan(*ptr) ? newSV(0) : newSVnv(*ptr)));
ptr++;
}
av_push(retar,newRV_noinc((SV*)line));