Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

CodeSnippets code duplication?

(1/2) > >>

oBFusCATed:
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?

MortenMacFly:

--- Quote from: 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?


--- End quote ---
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.

oBFusCATed:
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"
}

--- End code ---

Pecan:

--- Quote from: 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"
}

--- End code ---

--- End quote ---

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.

oBFusCATed:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version