PB 5.50 : version of Scintilla and PCRE libs?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Tristano
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Nov 26, 2015 6:52 pm
Location: Italy
Contact:

PB 5.50 : version of Scintilla and PCRE libs?

Post 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
The PureBASIC Archives: FOSS Resources:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post 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)
User avatar
Tristano
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Nov 26, 2015 6:52 pm
Location: Italy
Contact:

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

Post by Tristano »

Thank you Fred!

it worked really nicely!

Can similar hacks be used for all other PB-included libs?
The PureBASIC Archives: FOSS Resources:
Post Reply