News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

ParserBase class refactoring, better sharing code between CC and CCTest projects

Started by ollydbg, September 20, 2014, 04:27:22 PM

Previous topic - Next topic

ollydbg

I try to remove the parserdummy.cpp, and create parser_base.h/cpp files, those files can be shared between codecompletion plugin and cctest project. I attach the patch file for both SVN and GIT. (SVN style patch was created by this command under msysgit: git-svn-diff

Now, cctest can use ParserBase NativeParserBase classes, CC can use Parser(derived from ParserBase) and NativeParser(derived from NativeParserBase) classes.

This patch only contains patches for windows cbp files against wx28. I'm not familiar with the Linux build system, also I don't know a quick way to synchronize other cbp files (such as cbp files against wx30, or 64bit Windows cbp files)

Leave here for your testing for days, If no objections, I will commit. BTW: I still need some devs' help to fix other cbp or system's build files if the patch is in trunk.  ;) Thanks.



[attachment deleted by admin]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.