Author Topic: New wxScintilla 1.66 works with current head  (Read 5309 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
New wxScintilla 1.66 works with current head
« 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline heromyth

  • Multiple posting newcomer
  • *
  • Posts: 98
    • http://
Re: New wxScintilla 1.66 works with current head
« Reply #1 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)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: New wxScintilla 1.66 works with current head
« Reply #2 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  ;)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

  • Guest
Re: New wxScintilla 1.66 works with current head
« Reply #3 on: November 13, 2005, 10:42:34 am »
Changelog:

  • Bug fixed with text display on GTK+ with Pango 1.8.
  • Caret painting avoided when not focused.

The rest, more or less are changes to SciTE rather than Scintilla
« Last Edit: November 13, 2005, 10:46:10 am by Takeshi Miya »

Offline heromyth

  • Multiple posting newcomer
  • *
  • Posts: 98
    • http://
Re: New wxScintilla 1.66 works with current head
« Reply #4 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!

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: New wxScintilla 1.66 works with current head
« Reply #5 on: November 26, 2005, 07:40:37 am »
AFAIK the wxScintilla is still present under the sdk.