[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: yyleng declared as type size_t
From: |
John W. Millaway |
Subject: |
Bug: yyleng declared as type size_t |
Date: |
Mon, 17 Sep 2001 22:29:14 -0700 (PDT) |
Will,
Here's another possible bug. yyleng in a non-reentrant scanner is defined in
the skeleton as type 'size_t' instead of 'int'. I stumbled across it while
building the "lclint" utility, which declares yyleng in a header file as an
extern of type 'int'. This bug actually breaks the build, because gcc sees
"conflicting types" in the two declarations.
Can you think of any reason why 'size_t' would be preferred over 'int' for
yyleng?
-John
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
- Bug: yyleng declared as type size_t,
John W. Millaway <=