projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
422d053
)
B::cchar can be implemented as an ALIAS of B::cstring.
author
Nicholas Clark
<nick@ccl4.org>
Sun, 24 Oct 2010 13:51:05 +0000
(15:51 +0200)
committer
Nicholas Clark
<nick@ccl4.org>
Sun, 24 Oct 2010 13:51:05 +0000
(15:51 +0200)
ext/B/B.xs
patch
|
blob
|
history
diff --git
a/ext/B/B.xs
b/ext/B/B.xs
index
5b1688a
..
138ec05
100644
(file)
--- a/
ext/B/B.xs
+++ b/
ext/B/B.xs
@@
-807,14
+807,9
@@
cstring(sv)
SV * sv
ALIAS:
perlstring = 1
+ cchar = 2
PPCODE:
- PUSHs(cstring(aTHX_ sv, ix));
-
-SV *
-cchar(sv)
- SV * sv
- PPCODE:
- PUSHs(cchar(aTHX_ sv));
+ PUSHs(ix == 2 ? cchar(aTHX_ sv) : cstring(aTHX_ sv, ix));
void
threadsv_names()