Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: oBFusCATed on September 29, 2011, 01:24:18 am

Title: CodeSnippets code duplication?
Post by: oBFusCATed on September 29, 2011, 01:24:18 am
Hello,

Can someone explain to me why there are many duplicate files in the CodeSnippet plugin?
Do I have to keep them in sync, when I change the original files?
Title: Re: CodeSnippets code duplication?
Post by: MortenMacFly on September 29, 2011, 07:23:28 am
Hello,

Can someone explain to me why there are many duplicate files in the CodeSnippet plugin?
Do I have to keep them in sync, when I change the original files?

This is because this plugin is actually also a stand-alone application. And yes, you should keep them in sync. It's the same with the ThreadSearch plugin btw. Not nice, but that's how it is ATM.
Title: Re: CodeSnippets code duplication?
Post by: oBFusCATed on September 29, 2011, 09:44:44 am
What is the purpose of this app? I've never used it.

Why don't we use something like:
Code
namespace snippets
{
#include "cbeditor.cpp"
}
Title: Re: CodeSnippets code duplication?
Post by: Pecan on September 29, 2011, 02:01:50 pm
What is the purpose of this app? I've never used it.

Why don't we use something like:
Code
namespace snippets
{
#include "cbeditor.cpp"
}

The cbEditor code used by CodeSnippets has to be heavily modified to avoid issuing events to the main cb code. Thus it cannot simply be included.
Title: Re: CodeSnippets code duplication?
Post by: oBFusCATed on October 03, 2011, 11:17:04 am
Can someone try to make the them in sync in trunk, because the ThreadSearch stuff is heavily out of sync?
When the sync is done, I'll try to sync the editor's code in the debugger's branch, too.
Because I suspect that it is out of sync, too.
Title: Re: CodeSnippets code duplication?
Post by: Pecan on October 05, 2011, 01:55:31 pm
Can someone try to make the them in sync in trunk, because the ThreadSearch stuff is heavily out of sync?
When the sync is done, I'll try to sync the editor's code in the debugger's branch, too.
Because I suspect that it is out of sync, too.


I'll get to it as soon as I can. Right now, I don't have a lot of free time.