Search found 47 matches

by Iczer
May 14, 2019 21:27
Forum: Community Discussion
Topic: New array features
Replies: 83
Views: 3868

Re: New array features

Maybe Associative array would be great addition and also, to make array-functions list more complete, i think would be interesting to have (mostly for 1d arrays): Array Search (any good algorithms) Array FindAll (Find the indices of all occurrences of a search query between two points in a 1D or 2D ...
by Iczer
Apr 24, 2019 12:38
Forum: Beginners
Topic: Threading questions/problems
Replies: 80
Views: 8775

Re: Threading questions/problems

i'm with XP64
by Iczer
Apr 23, 2019 16:15
Forum: Beginners
Topic: Threading questions/problems
Replies: 80
Views: 8775

Re: Threading questions/problems

Thanks, I'm completely forgot about pointer going out of scope...
by Iczer
Apr 23, 2019 15:17
Forum: General
Topic: imp____acrt_iob_func, undefined
Replies: 9
Views: 1603

Re: imp____acrt_iob_func, undefined

I successfully get around issue by creating: #Include Once "crt.bi" Extern "C" Declare Function __acrt_iob_func (ByVal index As ULong) As FILE Ptr Function __acrt_iob_func(ByVal index As ULong) As FILE Ptr Return @(__iob_func()[index]) End Function Declare Function __imp___acrt_i...
by Iczer
Apr 23, 2019 15:11
Forum: Beginners
Topic: Threading questions/problems
Replies: 80
Views: 8775

Re: Threading questions/problems

I had some problems passing data to thread started by ThreadCreate() - if I quit calling function right after creating thread, data passed to this thread go bad. So question - is ThreadCreate() returning only after starting thread and safely passing data inside it, or before it? Example - if i remov...
by Iczer
Apr 18, 2019 22:57
Forum: General
Topic: imp____acrt_iob_func, undefined
Replies: 9
Views: 1603

Re: imp____acrt_iob_func, undefined

__iob_func() function it seems provided by msvcr120.dll, but including #inclib "msvcr120" not resolve issue. I tried to declare __iob_func() like this: Declare function __acrt_iob_func(ByVal index As UInteger) as FILE ptr #Define stdin __acrt_iob_func(STDIN_FILENO) #Define stdout __acrt_io...
by Iczer
Apr 18, 2019 15:22
Forum: General
Topic: imp____acrt_iob_func, undefined
Replies: 9
Views: 1603

Re: imp____acrt_iob_func, undefined

I'm run into same problem with undefined __imp___acrt_iob_func ***\FreeBASIC-1.06.0-win64\lib\win64/libcurl.a(mprintf.o):(.text+0x1b58): undefined reference to `__imp___acrt_iob_func' ***\FreeBASIC-1.06.0-win64\lib\win64/libcurl.a(mprintf.o):(.text+0x1bf3): undefined reference to `__imp___acrt_iob_f...
by Iczer
Jan 18, 2019 15:56
Forum: Windows
Topic: Can't we use SHELL32 dll like USER32?
Replies: 10
Views: 546

Re: Can't we use SHELL32 dll like USER32?

Its already in standard includes, see:

Code: Select all

#Include "win\shellapi.bi"
by Iczer
Jan 08, 2019 23:03
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 9226

Re: fbfrog header translator

Thanks!
by Iczer
Jan 07, 2019 23:02
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 9226

Re: fbfrog header translator

i'm trying to make bindings for Mecab https://github.com/ikegami-yukino/mecab/releases/tag/v0.996 but they turn out not complete - come declarations are missing... so = mecab.h file: /* MeCab -- Yet Another Part-of-Speech and Morphological Analyzer Copyright(C) 2001-2011 Taku Kudo <taku@chasen.org> ...
by Iczer
Apr 13, 2018 16:00
Forum: Projects
Topic: PCRE1 RegExp - String functions & Regular Expressions
Replies: 7
Views: 884

Re: PCRE1 RegExp - String functions & Regular Expressions

it shows that pcre library you using was compiled without jit support CMake config should like that: /* config.h for CMake builds */ #define HAVE_DIRENT_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define HAVE_WINDOWS_H 1 #define HAVE_STDINT_H 1 #define HAVE_INTT...
by Iczer
Apr 13, 2018 14:29
Forum: Projects
Topic: PCRE1 RegExp - String functions & Regular Expressions
Replies: 7
Views: 884

Re: PCRE1 RegExp - String functions & Regular Expressions

errors in preg_class.bas - in it replace function it could not handle replacement patterns where groups closely following on another, like "$1$2" so: sSubject = "aaa *** bbb ### ccc" sPattern = "(\w+)\W+(\w+)\W+(\w+)" sPeplacementPattern = "$1$2$3" wont work a...
by Iczer
Apr 10, 2018 12:39
Forum: Beginners
Topic: Faster string copying/building
Replies: 12
Views: 851

Re: Faster string copying/building

Thanks, indeed, culprit was string concatenation, with only memcpy() speed become good
i'm posted RegExp class here https://www.freebasic.net/forum/viewtopic.php?f=8&t=26591&sid=f604f81164ed787f86896c9206e63280 so you can see rezults
by Iczer
Apr 10, 2018 12:34
Forum: Projects
Topic: PCRE1 RegExp - String functions & Regular Expressions
Replies: 7
Views: 884

Re: PCRE1 RegExp - String functions & Regular Expressions

My test times: ################################################################ StringRegExpReplaceXMLSpecials : ................................................................ Original Time........................ = 10,516700 milli seconds Original iReplacementCount........... = 22528/0,466828 mi...
by Iczer
Apr 10, 2018 12:27
Forum: Projects
Topic: PCRE1 RegExp - String functions & Regular Expressions
Replies: 7
Views: 884

PCRE1 RegExp - String functions & Regular Expressions

I was not satisfied with functionality and some GPF errors of preg_class.bi, so looked in to PCRE1 to make good RegExp library/functions for my needs. Result - is PCRE1_RegExpClass and examples with speed test. Hope it would be useful for others also... Project uses pcre1 library built with : SUPPOR...

Go to advanced search