mail[Wesnoth-commits] r44260 - /trunk/src/serialization/tokenizer.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 17, 2010 - 20:48:
Author: silene
Date: Sat Jul 17 20:48:11 2010
New Revision: 44260

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44260&view=rev
Log:
Ensured that comments that went through don't confuse the tokenizer.

Modified:
    trunk/src/serialization/tokenizer.cpp

Modified: trunk/src/serialization/tokenizer.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/tokenizer.cpp?rev=44260&r1=44259&r2=44260&view=diff
==============================================================================
--- trunk/src/serialization/tokenizer.cpp (original)
+++ trunk/src/serialization/tokenizer.cpp Sat Jul 17 20:48:11 2010
@@ -195,16 +195,18 @@
                next_char_fast();
                dst = &file_;
        }
+       else
+       {
+               fail:
+               while (current_ != '\n' && current_ != EOF) {
+                       next_char_fast();
+               }
+               return;
+       }
 
        dst->clear();
        while (current_ != '\n' && current_ != EOF) {
                *dst += current_;
                next_char_fast();
        }
-       return;
-
-fail:
-       while (current_ != '\n' && current_ != EOF) {
-               next_char_fast();
-       }
-}
+}




Related Messages


Powered by MHonArc, Updated Sat Jul 17 21:40:10 2010