Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
439 B

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. yyless(x)
  3. {
  4. extern char yytext[];
  5. register char *lastch, *ptr;
  6. extern int yyleng;
  7. extern int yyprevious;
  8. lastch = yytext+yyleng;
  9. if (x>=0 && x <= yyleng)
  10. ptr = x + yytext;
  11. else
  12. ptr = x;
  13. while (lastch > ptr)
  14. yyunput(*--lastch);
  15. *lastch = 0;
  16. if (ptr >yytext)
  17. yyprevious = *--lastch;
  18. yyleng = ptr-yytext;
  19. }