Page 1 of 1

PB 5.50 : version of Scintilla and PCRE libs?

Posted: Tue Oct 04, 2016 3:50 pm
by Tristano
Hi everyone!

Can anyone tell me which version of the PCRE and Scintilla libraries come with PureBasic?

I'm not sure why this info is not included in PB Help file, but knowing the precise library version would make life much easier when studying the documentation of these libraries (any library, matter of factly).

Also, are they any `tricks` to interrogate these libs from withing code? or some constants that carry their versioning number?
I've peekd in PB's Structure Viewer but had no luck so far...

I've found a post in the forums which showed a code example on how to get PCRE lib info, but that was for PB 4 and no longer works:

http://www.forums.purebasic.com/english ... c5c15eec78

Code: Select all

ImportC "" 
  pcre_version(void);
EndImport 

regex = CreateRegularExpression(#PB_Any, "") 
pcre_version = pcre_version(0) 
Debug PeekS(pcre_version) 
Thanks!

PS: I've posted a feature request regarding having Libs info added to the documentation:

http://www.forums.purebasic.com/english ... febafa727a

Re: PB 5.50 : version of Scintilla and PCRE libs?

Posted: Wed Oct 05, 2016 6:57 am
by Fred
You can try this:

Code: Select all

ImportC ""
  pb_pcre_version(void);
EndImport

regex = CreateRegularExpression(#PB_Any, "")
pcre_version = pb_pcre_version(0)
Debug PeekS(pcre_version, -1, #PB_Ascii)

Re: PB 5.50 : version of Scintilla and PCRE libs?

Posted: Thu Oct 06, 2016 4:26 pm
by Tristano
Thank you Fred!

it worked really nicely!

Can similar hacks be used for all other PB-included libs?