Small patch about compilation and method name

Discussion about CodeLite development process and patches
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Small patch about compilation and method name

Post by jfouche »

Hi

Here is my first patch :
- fixed : VolumeLocatorThread compilation problem
- updated : IManager::AddFilesToVirtualFolder instead of IManager::AddFilesToVirtualFodler

The second one is maybe not a good idea, because it's changing a usefull header file interface, but I prefere to have a correct method name... As you want.
Thanks
You do not have the required permissions to view the files attached to this post.
Jérémie
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small patch about compilation and method name

Post by eranif »

jfouche wrote:The second one is maybe not a good idea, because it's changing a usefull header file interface, but I prefere to have a correct method name... As you want.
This is why I have plugin_version.h file.
Whenever an interface is modified, this file should be incremented by 1 - so at runtime, codelite can query the plugin about its interface version

Code: Select all

// Increment this number whenever any of the files in the interface project is modified
#define PLUGIN_INTERFACE_VERSION 131
Eran
Make sure you have read the HOW TO POST thread
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Small patch about compilation and method name

Post by jfouche »

Understood
Jérémie
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Small patch about compilation and method name

Post by eranif »

If you have wxUSE_FSVOLUME defined in your source code, this patch will break the compilation.

The reason for this:
You should test for wxUSE_FSVOLUME *after* the include files, since this define is defined in a header file (wx/setup.h)
If you place it ontop of the file, it will be tested before it had the chance to be defined, so it will be handled like #if 0

However, in FileExplorer, you test it after the include statements, so it is not defined as 1 -> which leads to link error.

Anyways, I fixed it and committed the patch.
Eran
Make sure you have read the HOW TO POST thread
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Small patch about compilation and method name

Post by jfouche »

I agree
I have to say that I do not have wxUSE_FSVOLUME = 1, compiling wxWidgets 2.8.9 with mingw32-make. I'm a little bit surprised !
Jérémie
Post Reply