Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: MortenMacFly on October 26, 2005, 07:49:58 am

Title: New wxScintilla 1.66 works with current head
Post by: MortenMacFly on October 26, 2005, 07:49:58 am
Dear devs,

a new version of wxScintilla (1.66) is out. I realised that Code::Blocks is using this library. Within my current CVS version of Code::Blocks I have switched to this version nearly without any problems. I thought I share this experience with you.

The only thing I had to do (to get rid of a compiler error) was the following change in Platform.h:
Code
#elif defined(__WX__)
#undef PLAT_WX
#define PLAT_WX  1
...i had to change into:
Code
#elif defined(__WX__)
#undef PLAT_WX
#define PLAT_WX  1
#undef PLAT_WIN
#define PLAT_WIN 1

it's working quite well and stable for a while now, maybe it's worth switching to the new version.

With regards,

Morten.
Title: Re: New wxScintilla 1.66 works with current head
Post by: heromyth on November 12, 2005, 03:43:03 pm
I have also made some changes like this

Code
diff -ruN wxscintilla/src/scintilla/src/ExternalLexer.h wxscintilla-new/src/scintilla/src/ExternalLexer.h
--- wxscintilla/src/scintilla/src/ExternalLexer.h Fri Nov 12 19:49:42 2004
+++ wxscintilla-new/src/scintilla/src/ExternalLexer.h Sat Nov 12 14:52:58 2005
@@ -8,17 +8,15 @@
 #ifndef EXTERNALLEXER_H
 #define EXTERNALLEXER_H
 
-#if PLAT_WIN
+#if PLAT_WIN || PLAT_WX
 #define EXT_LEXER_DECL __stdcall
 #elif PLAT_GTK
-#define EXT_LEXER_DECL
+#define EXT_LEXER_DECL
 #endif
 

for compiling wxScintilla (1.66)
Title: Re: New wxScintilla 1.66 works with current head
Post by: thomas on November 13, 2005, 02:05:32 am
Thanks for pointing out :)
I tried today, and it actually compiles fine even without those last modifications.

Do you have any idea what is actually different between this version and the last one? I was unable to find any useful information on that subject.
If there are notable improvements, it may of course be worth using the new version. On the other hand, the current version has the advantage that it  works - we tested that  ;)
Title: Re: New wxScintilla 1.66 works with current head
Post by: takeshimiya on November 13, 2005, 10:42:34 am
Changelog:


The rest, more or less are changes to SciTE rather than Scintilla (http://scintilla.sourceforge.net/ScintillaHistory.html)
Title: Re: New wxScintilla 1.66 works with current head
Post by: heromyth on November 26, 2005, 07:14:07 am
It seems that the wxScintilla has been moved away from the CVS respository of CB. Today, I update my CB cvs copy. The wxScintilla disappeared.:shock:
Can someone tell me what happened to CB?
Recently, CB has changed greatly, added many usefully things!
Title: Re: New wxScintilla 1.66 works with current head
Post by: rickg22 on November 26, 2005, 07:40:37 am
AFAIK the wxScintilla is still present under the sdk.