• R/O
  • SSH
  • HTTPS

gtaconfig: Commit


Commit MetaInfo

Revision36 (tree)
Time2019-06-23 20:30:13
Authorquiret

Log Message

- fixed a bug in CSyntax token parsing where some name tokens were parsed but the token type was never set

Change Summary

Incremental Difference

--- src/syntax.h (revision 35)
+++ src/syntax.h (revision 36)
@@ -335,6 +335,7 @@
335335
336336 if ( const encodingCharType *nameStr = this->ParseName(len) )
337337 {
338+ tokenType = eTokenType::NAME;
338339 return nameStr;
339340 }
340341 }
@@ -423,7 +424,7 @@
423424 {
424425 break;
425426 }
426- }
427+ }
427428
428429 hasVerifiedToken = true;
429430
@@ -582,7 +583,7 @@
582583 template <typename checkCharType>
583584 bool HasToken(const checkCharType *tokenStr, bool direct = false, bool caseSensitive = false, bool advanceAnyway = false)
584585 {
585- size_t begOff;
586+ size_t begOff = 0;
586587
587588 if ( !advanceAnyway )
588589 {
@@ -985,7 +986,7 @@
985986 ourData + ourSeek,
986987 charenv_charprov_tocplen <encodingCharType> ( ourData + ourSeek, left_cnt - string_len + 1 )
987988 );
988-
989+
989990 while ( true )
990991 {
991992 if ( our_iter.IsEnd() )
@@ -1001,7 +1002,7 @@
10011002 findOff = ( curDataPtr - ourData );
10021003
10031004 this->m_offset = ( our_iter.GetPointer() - ourData ) + string_len;
1004-
1005+
10051006 return true;
10061007 }
10071008
Show on old repository browser