comment improvements

This commit is contained in:
Dick Hollenbeck 2013-07-09 00:22:08 -05:00
parent e44fa93776
commit 8c2d3d12fc
2 changed files with 6 additions and 8 deletions

View File

@ -396,7 +396,7 @@ static bool isSpace( char cc )
// Treat negative as large positive to exclude rapidly.
if( (unsigned char) cc <= ' ' )
{
switch( cc )
switch( (unsigned char) cc )
{
case ' ':
case '\n':

View File

@ -136,15 +136,13 @@ protected:
/**
* Function findToken
* takes a string and looks up the string in the list of expected
* tokens.
* takes aToken string and looks up the string in the keywords table.
*
* @param tok A string holding the token text to lookup, in an
* unpredictable case: uppercase or lowercase
* @return int - DSN_T matching the keyword text, or DSN_SYMBOL if argument
* string is not a recognized token.
* @param aToken is a string to lookup in the keywords table.
* @return int - with a value from the enum DSN_T matching the keyword text,
* or DSN_SYMBOL if @a aToken is not in the kewords table.
*/
int findToken( const std::string& tok );
int findToken( const std::string& aToken );
bool isStringTerminator( char cc )
{