projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 83/08/05 13:34:56 by sam
[unix-history]
/
usr
/
src
/
old
/
lex
/
libln
/
yyless.c
/* @(#)yyless.c 4.1 %G% */
yyless
(
x
)
{
extern
char
yytext
[];
register
char
*
lastch
, *
ptr
;
extern
int
yyleng
;
extern
int
yyprevious
;
lastch
=
yytext
+
yyleng
;
if
(
x
>=
0
&&
x
<=
yyleng
)
ptr
=
x
+
yytext
;
else
ptr
=
x
;
while
(
lastch
>
ptr
)
yyunput
(*--
lastch
);
*
lastch
=
0
;
if
(
ptr
>
yytext
)
yyprevious
= *--
lastch
;
yyleng
=
ptr
-
yytext
;
}