Reijo Tomperi
|
21eaadbe31
|
Fixed several bugs from previous commits and added check code that will print errors if varid is 0 when %varid% is given in Match().
|
2009-01-04 20:33:12 +00:00 |
Reijo Tomperi
|
3dd3bad0ec
|
Refactoring: findMatch() that supports varId added. %var1% -> %varid% changed
|
2009-01-04 19:55:12 +00:00 |
Reijo Tomperi
|
1594f453cc
|
Refactoring: Changed order of parameters in Match() and findMatch() (deprecated parameter moved to last)
|
2009-01-03 21:05:47 +00:00 |
Reijo Tomperi
|
5d1d267624
|
Refactoring: Rename class "TOKEN" to "Token"
|
2009-01-03 20:29:20 +00:00 |
Reijo Tomperi
|
f099796a10
|
Copyright 2007-2008 -> 2007-2009
|
2009-01-02 19:02:35 +00:00 |
Reijo Tomperi
|
8f55e38ea6
|
Refactoring: Constructor of TOKEN changed to use initialization list
instead of assignment.
|
2009-01-02 18:36:03 +00:00 |
Reijo Tomperi
|
94923cca1a
|
Refactoring: Prefer ++i; over i++;
|
2009-01-01 22:22:28 +00:00 |
Daniel Marjamäki
|
9a3696cb6f
|
TOKEN: Renamed TOKEN::setstr to TOKEN::str
|
2009-01-01 09:37:07 +00:00 |
Daniel Marjamäki
|
709e2a4277
|
TOKEN::Match : Removed the parameter varnames2 because it's unused and deprecated
|
2008-12-25 18:27:49 +00:00 |
Daniel Marjamäki
|
8c08c4d66b
|
uniformize files
|
2008-12-25 18:24:57 +00:00 |
Nicolas Le Cam
|
14e89fa887
|
Formatting: demux simpleMatch for readability
|
2008-12-23 21:45:47 +00:00 |
Reijo Tomperi
|
a303cf278d
|
Optimization: isNotPattern() removed
|
2008-12-23 21:20:54 +00:00 |
Reijo Tomperi
|
c4ecdf06f0
|
Optimization, improved Match(). The str[0] == '%' improvement
|
2008-12-23 20:17:05 +00:00 |
Nicolas Le Cam
|
b32663324e
|
Fix comparison between signed and unsigned integer expressions warning
|
2008-12-23 19:54:22 +00:00 |
Nicolas Le Cam
|
ad73e517a4
|
Fix simpleMatch when pattern only contain one word
|
2008-12-22 08:20:25 +00:00 |
Nicolas Le Cam
|
3234322758
|
Implement simpleMatch that should be use when pattern contains no flags
|
2008-12-21 23:28:09 +00:00 |
Nicolas Le Cam
|
1f68dfa57e
|
Refactoring: strdup also exists in MSVS
|
2008-12-21 17:45:05 +00:00 |
Nicolas Le Cam
|
1f141e4dc0
|
Opimization: Remove combineWithNext Member, use an array instead
|
2008-12-21 17:35:33 +00:00 |
Reijo Tomperi
|
b7db651ee2
|
Improving simplifyKnownVariables() to simplify bool variables used inside if() like int values are simplified.
|
2008-12-21 13:58:56 +00:00 |
Daniel Marjamäki
|
0a73591c5c
|
Refactoring : Removed the function 'findtoken'
|
2008-12-20 16:33:14 +00:00 |
Reijo Tomperi
|
e272630604
|
Copyright and app name changed in each file
|
2008-12-19 21:15:06 +00:00 |
Nicolas Le Cam
|
a5fa323a0b
|
Formatting: uniformize end of lines.
|
2008-12-18 21:28:57 +00:00 |
Daniel Marjamäki
|
744c4928c4
|
token : if setstr is used clear the variable id
|
2008-12-18 07:21:06 +00:00 |
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 |