Skip to content

Commit

Permalink
"double" should be "NV"; standard typemap is missing entry
Browse files Browse the repository at this point in the history
for NV

p4raw-id: //depot/maint-5.6/perl@9544
  • Loading branch information
Gurusamy Sarathy committed Apr 4, 2001
1 parent 3da0943 commit 405f61b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ext/B/B.xs
Expand Up @@ -883,11 +883,11 @@ packiv(sv)

MODULE = B PACKAGE = B::NV PREFIX = Sv

double
NV
SvNV(sv)
B::NV sv

double
NV
SvNVX(sv)
B::NV sv

Expand Down
6 changes: 3 additions & 3 deletions ext/B/B/C.pm
Expand Up @@ -1048,15 +1048,15 @@ typedef struct {
STRLEN xpv_cur; /* length of xp_pv as a C string */
STRLEN xpv_len; /* allocated size */
IV xof_off; /* integer value */
double xnv_nv; /* numeric value, if any */
NV xnv_nv; /* numeric value, if any */
MAGIC* xmg_magic; /* magic for scalar array */
HV* xmg_stash; /* class package */
HV * xcv_stash;
OP * xcv_start;
OP * xcv_root;
void (*xcv_xsub) (CV*);
void * xcv_xsubany;
void (*xcv_xsub) (pTHXo_ CV*);
ANY xcv_xsubany;
GV * xcv_gv;
char * xcv_file;
long xcv_depth; /* >= 2 indicates recursive call */
Expand Down
1 change: 1 addition & 0 deletions lib/ExtUtils/typemap
Expand Up @@ -29,6 +29,7 @@ CV * T_CVREF

IV T_IV
UV T_UV
NV T_NV
I32 T_IV
I16 T_IV
I8 T_IV
Expand Down

0 comments on commit 405f61b

Please sign in to comment.