News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CodeSnippets code duplication?

Started by oBFusCATed, September 29, 2011, 01:24:18 AM

Previous topic - Next topic

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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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?

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

What is the purpose of this app? I've never used it.

Why don't we use something like:

namespace snippets
{
#include "cbeditor.cpp"
}
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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:

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.

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Pecan

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


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