summaryrefslogtreecommitdiff
path: root/scan.l
diff options
context:
space:
mode:
authorvern <vern>1993-12-11 17:06:24 +0000
committervern <vern>1993-12-11 17:06:24 +0000
commit949824f0998295078b38b58b09859c5383572568 (patch)
tree9c26aba7d9b4db2febb4cca4d8d0d6ba4cf14a26 /scan.l
parent366aea3f2f62ef45f47b29c21b9461617d798784 (diff)
downloadflex-949824f0998295078b38b58b09859c5383572568.tar.gz
yy_str*() -> str*()
Diffstat (limited to 'scan.l')
-rw-r--r--scan.l18
1 files changed, 9 insertions, 9 deletions
diff --git a/scan.l b/scan.l
index 69a7cd5..d44e9d8 100644
--- a/scan.l
+++ b/scan.l
@@ -27,7 +27,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* $Header: /cvsroot/flex/flex/scan.l,v 2.28 1993/12/11 14:40:54 vern Exp $ */
+/* $Header: /cvsroot/flex/flex/scan.l,v 2.29 1993/12/11 17:06:43 vern Exp $ */
#include "flexdef.h"
#include "parse.h"
@@ -43,11 +43,11 @@
return CHAR;
#define RETURNNAME \
- yy_strcpy( nmstr, yytext ); \
+ strcpy( nmstr, yytext ); \
return NAME;
#define PUT_BACK_STRING(str, start) \
- for ( i = yy_strlen( str ) - 1; i >= start; --i ) \
+ for ( i = strlen( str ) - 1; i >= start; --i ) \
unput((str)[i])
#define CHECK_REJECT(str) \
@@ -139,7 +139,7 @@ CCL_CHAR ([^\\\n\]]|{ESCSEQ})
^"%"[^sxanpekotcru{}].* synerr( "unrecognized '%' directive" );
^{NAME} {
- yy_strcpy( nmstr, yytext );
+ strcpy( nmstr, yytext );
didadef = false;
BEGIN(PICKUPDEF);
}
@@ -171,10 +171,10 @@ CCL_CHAR ([^\\\n\]]|{ESCSEQ})
<PICKUPDEF>{WS} /* separates name and definition */
<PICKUPDEF>{NOT_WS}.* {
- yy_strcpy( (char *) nmdef, yytext );
+ strcpy( (char *) nmdef, yytext );
/* Skip trailing whitespace. */
- for ( i = yy_strlen( (char *) nmdef ) - 1;
+ for ( i = strlen( (char *) nmdef ) - 1;
i >= 0 && (nmdef[i] == ' ' || nmdef[i] == '\t');
--i )
;
@@ -296,7 +296,7 @@ CCL_CHAR ([^\\\n\]]|{ESCSEQ})
<SECT2>"["{FIRST_CCL_CHAR}{CCL_CHAR}* {
int cclval;
- yy_strcpy( nmstr, yytext );
+ strcpy( nmstr, yytext );
/* Check to see if we've already encountered this
* ccl.
@@ -331,7 +331,7 @@ CCL_CHAR ([^\\\n\]]|{ESCSEQ})
register Char *nmdefptr;
Char *ndlookup();
- yy_strcpy( nmstr, yytext + 1 );
+ strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */
if ( ! (nmdefptr = ndlookup( nmstr )) )
@@ -340,7 +340,7 @@ CCL_CHAR ([^\\\n\]]|{ESCSEQ})
else
{ /* push back name surrounded by ()'s */
- int len = yy_strlen( (char *) nmdefptr );
+ int len = strlen( (char *) nmdefptr );
if ( lex_compat || nmdefptr[0] == '^' ||
(len > 0 && nmdefptr[len - 1] == '$') )