[Bast-commits] r5069 - Devel-Declare/1.000/trunk
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Fri Nov 7 06:51:41 GMT 2008
Author: rafl
Date: 2008-11-07 06:51:40 +0000 (Fri, 07 Nov 2008)
New Revision: 5069
Modified:
Devel-Declare/1.000/trunk/Declare.xs
Log:
Expose scan_ident to perl space.
Modified: Devel-Declare/1.000/trunk/Declare.xs
===================================================================
--- Devel-Declare/1.000/trunk/Declare.xs 2008-11-07 06:51:34 UTC (rev 5068)
+++ Devel-Declare/1.000/trunk/Declare.xs 2008-11-07 06:51:40 UTC (rev 5069)
@@ -179,6 +179,14 @@
return s - base_s;
}
+int dd_toke_scan_ident(pTHX_ int offset) {
+ char tmpbuf[sizeof PL_tokenbuf];
+ char* base_s = SvPVX(PL_linestr) + offset;
+ STRLEN len;
+ char* s = scan_ident(base_s, PL_bufend, tmpbuf, sizeof tmpbuf, 0);
+ return s - base_s;
+}
+
int dd_toke_scan_str(pTHX_ int offset) {
char* base_s = SvPVX(PL_linestr) + offset;
char* s = scan_str(base_s, FALSE, FALSE);
@@ -406,6 +414,13 @@
RETVAL
int
+toke_scan_ident(int offset)
+ CODE:
+ RETVAL = dd_toke_scan_ident(aTHX_ offset);
+ OUTPUT:
+ RETVAL
+
+int
toke_skipspace(int offset)
CODE:
RETVAL = dd_toke_skipspace(aTHX_ offset);
More information about the Bast-commits
mailing list