1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/syck.c, lib/syck.h, lib/token.c, lib/gram.c: count line numbers

only if line pointer has increased.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
why 2003-05-19 16:37:20 +00:00
parent 6f55b68681
commit f5b2e6b149
5 changed files with 77 additions and 69 deletions

View file

@ -155,7 +155,7 @@ struct _syck_parser {
// Custom buffer size
size_t bufsize;
// Buffer pointers
char *buffer, *lineptr, *toktmp, *token, *cursor, *marker, *limit;
char *buffer, *linectptr, *lineptr, *toktmp, *token, *cursor, *marker, *limit;
// Line counter
int linect;
// Last token from yylex()