From 16efc9be2610ec4fb3180afc9c2a76b38a3a189a Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Tue, 31 Aug 2010 17:48:19 +0200 Subject: [PATCH] Fixed #1887 (internal error in GLee) --- lib/tokenize.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 4218ced85..a2d5283a6 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -1443,7 +1443,8 @@ void Tokenizer::simplifyTypedef() } // skip over variable name - tok2 = tok2->next(); + if (!inCast) + tok2 = tok2->next(); if (tok4 && functionPtrRetFuncPtr) { @@ -1950,9 +1951,6 @@ bool Tokenizer::tokenize(std::istream &code, const char FileName[], const std::s // typedef.. simplifyTypedef(); - // Fix #1887 - the links are invalid after simplifyTypedef - createLinks(); - // enum.. simplifyEnum();