Commit Graph

28 Commits

Author SHA1 Message Date
Daniel Marjamäki dd853f0d59 token : fixed so that TOKEN::_previous is updated when deleting tokens 2008-12-17 19:20:11 +00:00
Daniel Marjamäki e853f28912 token : minor refactoring to TOKEN::insertToken. Give the linenr and fileIndex the same values as this token. It's better than nothing 2008-12-16 17:05:43 +00:00
Nicolas Le Cam 661068bcd4 Formatting: uniformize end of lines. 2008-12-13 11:39:36 +00:00
Reijo Tomperi 4e8e35f666 TOKEN: Patterns like "if ; !!else" are now possible 2008-12-12 21:00:25 +00:00
Nicolas Le Cam 4f8ab7fa03 Fix a crash in eraseToken 2008-12-12 00:18:57 +00:00
Reijo Tomperi cf2262aaf0 Project file updated (testtoken.cpp was missing), added TOKEN::printOut() function to help with debugging. 2008-12-09 22:03:05 +00:00
Reijo Tomperi 2ef955eb65 Refactoring: Moved token creation and token deletion into TOKEN class. Added previous() (not tested yet) 2008-12-09 17:31:04 +00:00
Daniel Marjamäki f839b11c11 token : Updated the "Match" function so it can check the variable id 2008-12-09 07:25:44 +00:00
Nicolas Le Cam aaabacfe87 Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
Nicolas Le Cam eb80c9786f Revert revisions 627 and 628 2008-12-08 23:41:34 +00:00
Nicolas Le Cam e8d2c7cfb3 Formatting: uniformize end of lines (part 2) 2008-12-08 23:10:13 +00:00
Nicolas Le Cam 625b77ec33 Formatting: uniformize end of lines. 2008-12-08 23:06:19 +00:00
Nicolas Le Cam 19ef4f8b15 TOKEN::Match minor optimization 2008-12-08 22:49:11 +00:00
Reijo Tomperi 440203bd5c Refactoring: Rest of the public variables in TOKEN moved to private area. 2008-12-08 22:02:37 +00:00
Reijo Tomperi 51024235a3 Refactoring: TOKEN::next renamed to _next, getter and setter functions for it added next() and next(TOKEN*). 2008-12-08 21:49:05 +00:00
Reijo Tomperi 25847fdec4 Refactoring: TOKEN::varId was moved from public to private 2008-12-08 17:45:55 +00:00
Reijo Tomperi b2e55216ab Fixed bug in TOKEN::multiCompare. "abc" and "a" were matched. 2008-12-07 19:06:01 +00:00
Daniel Marjamäki 202c613e70 TODO: Added a todo for refactoring TOKEN::Match 2008-12-06 13:21:33 +00:00
Reijo Tomperi a669d020cf Token: Fixed bug in match function, simplified CheckBufferOverrun code 2008-12-05 20:37:05 +00:00
Reijo Tomperi a4d4305919 Bug fix: Minor bug in previous commit, test added to catch that bug also. 2008-12-04 21:52:40 +00:00
Reijo Tomperi c958482196 TOKEN: Match() function improved, %any% and const|volatile kind of patterns are now accepted. Simplified comparing on tokenize.cpp. 2008-12-04 21:48:15 +00:00
Daniel Marjamäki b179083788 token: refactoring the 'isStandardType' a little 2008-11-26 07:22:34 +00:00
Daniel Marjamäki bc267bbca5 TOKEN: Refactoring the 'str' member variable 2008-11-24 19:38:08 +00:00
Reijo Tomperi c022057c70 bug fix, didn't compile on Linux (3 utf characters on top of file again) 2008-11-24 08:59:10 +00:00
Daniel Marjamäki e0027bef66 Borland C++: Minor updates so cppcheck compiles with Borland C++ 2008-11-24 07:35:03 +00:00
Reijo Tomperi a6ad4045d4 Refactoring: IsName() and IsNumber() are no longer static and they don't take a parameter. 2008-11-23 12:21:40 +00:00
Reijo Tomperi 0b2e7a0ef3 Refactoring: at() changed to tokAt() and getstr() changed to strAt() 2008-11-23 10:09:16 +00:00
Reijo Tomperi 3ba83b6620 Refactoring: token.* files added, Some functions from Tokenizer moved under TOKEN. Renamed few functions, like gettok() -> at(), combineWithNext() and deleteNext() are also new
names for old functions. Usage was gettok( tok, 2 ), but now it is tok->at( 2 ).
2008-11-22 22:49:14 +00:00