projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7e0e683
)
Use new macro CvGV_set() (see perl5133delta)
gfx [Tue, 20 Jul 2010 11:09:10 +0000 (20:09 +0900)]
mouse.h
patch
|
blob
|
blame
|
history
xs-src/MouseUtil.xs
patch
|
blob
|
blame
|
history
diff --git
a/mouse.h
b/mouse.h
index
20415de
..
2c57da0
100644
(file)
--- a/
mouse.h
+++ b/
mouse.h
@@
-25,6
+25,10
@@
#define GvNAMELEN_get GvNAMELEN
#endif
+#ifndef CvGV_set
+#define CvGV_set(cv, gv) (CvGV(cv) = (gv))
+#endif
+
#ifndef mro_get_linear_isa
#define no_mro_get_linear_isa
#define mro_get_linear_isa(stash) mouse_mro_get_linear_isa(aTHX_ stash)
diff --git
a/xs-src/MouseUtil.xs
b/xs-src/MouseUtil.xs
index
ae5fb39
..
2d557a6
100644
(file)
--- a/
xs-src/MouseUtil.xs
+++ b/
xs-src/MouseUtil.xs
@@
-348,7
+348,7
@@
mouse_install_sub(pTHX_ GV* const gv, SV* const code_ref) {
}
}
- CvGV(cv) = gv;
+ CvGV_set(cv, gv);
CvANON_off(cv);
}
}