Search found 284 matches

by Juergen Kuehlwein
Jan 29, 2019 17:14
Forum: Beginners
Topic: Unicode and files
Replies: 10
Views: 1717

Re: Unicode and files

Thanks for the info!

JK
by Juergen Kuehlwein
Jan 28, 2019 17:56
Forum: Beginners
Topic: Unicode and files
Replies: 10
Views: 1717

Unicode and files

Reading the docs, it seems i cannot have unicode file names , but i can read and write unicode data . And this is independent of the file encoding, i can read and write WSTRINGs from and to an ASCII encoded file, so basically unicode strings work with files, but real unicode file names fail. If you ...
by Juergen Kuehlwein
Jan 20, 2019 16:03
Forum: Beginners
Topic: Array pointer
Replies: 5
Views: 586

Re: Array pointer

I need this for a generic array sort macro


JK
by Juergen Kuehlwein
Jan 19, 2019 15:27
Forum: Beginners
Topic: Array pointer
Replies: 5
Views: 586

Re: Array pointer

Wow, quite tricky to get a pointer to the array descriptor, but it works - thanks for sharing!

JK
by Juergen Kuehlwein
Jan 19, 2019 13:36
Forum: Beginners
Topic: Array pointer
Replies: 5
Views: 586

Array pointer

Is there a method of retrieving a pointer to an array´s data (the first data element to be exact) without knowing the number of dimensions of this array ? Consider the following code: dim a(1 to 5) as long dim b(1 to 5, 1 to 6) as short dim s as long s = sizeof(typeof((a))) print "sizeof(a) &qu...
by Juergen Kuehlwein
Jan 15, 2019 17:01
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 1527

Re: Compiler tests

Jeff, St_W,


i can run the tests now without getting errors, thanks for your help!


JK
by Juergen Kuehlwein
Jan 10, 2019 21:28
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 1527

Re: Compiler tests

Jeff,


thanks for your help! As per your recommendation i use MSYS2 for a command shell, which comes with it´s own version of gcc. So a different gcc and different a codepage make the difference :-)


JK
by Juergen Kuehlwein
Jan 09, 2019 22:47
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 1527

Re: Compiler tests

Jeff,

Running "make unit-tests" i see 10 fails in wstring\utf_conv.bas - is this correct ?

JK
by Juergen Kuehlwein
Jan 09, 2019 16:33
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 1527

Re: Compiler tests

Thanks Jeff, so the point is, it cannot be run from a Windows command prompt at all. I must use a different shell, which has to be installed first on Windows. for "make unit-tests DIRLIST=pretest" i get: make -f unit-tests.mk make[1]: Verzeichnis „/d/freebasic/jk-fork/tests“ wird betreten ...
by Juergen Kuehlwein
Jan 08, 2019 20:49
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 1527

Re: Compiler tests

I provided a "latter" part of my answer. IOW printf doesn't match _printf. forgive me my ignorance - i have absolutely no experience with make or makefiles. Printf is a C function for formatted output. I really don´t get the point. Please explain more or tell me where to get useful info. ...
by Juergen Kuehlwein
Jan 08, 2019 19:42
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 1527

Re: Compiler tests

marcov,

you as a Dutch shouldn´t have much of a problem translating the German sentence, maybe others might have had.

The "C" runtime is present and according to dependency walker nothing "mission critical" is missing. What to try next ?


Thanks


JK
by Juergen Kuehlwein
Jan 08, 2019 18:16
Forum: Beginners
Topic: Compiler tests
Replies: 15
Views: 1527

Compiler tests

I want to run the compiler test suite in the "\tests" folder of the source code package under Windows (Win 7 home 64 bit, to be specific) I downloaded GNU make and put the binaries (make.exe, lidiconv2.dll and libintl3.dll) into the \tests folder. Now i open a command prompt in this folder...
by Juergen Kuehlwein
Jan 08, 2019 15:36
Forum: Beginners
Topic: Array as overlay
Replies: 14
Views: 873

Re: Array as overlay

Now you opt for the reverse Well, sorry - sometimes everyone of us tends to approach a problem with a specific solution in mind (just because this kind of solution worked elsewhere). This mind set prevents you from taking a step back. The solution here is so easy, if you just do it the other way ro...
by Juergen Kuehlwein
Jan 08, 2019 13:49
Forum: Beginners
Topic: Array as overlay
Replies: 14
Views: 873

Re: Array as overlay

Your question was the opposite that I thought (and therefore simpler): How to overlay a zstring buffer on an array 1D? Indeed my initial question was how to overlay an array on a (z)string buffer. But in this case the order is meaningless for the result. If it´s easier to overlay a zstring on an ar...
by Juergen Kuehlwein
Jan 08, 2019 10:23
Forum: Beginners
Topic: Array as overlay
Replies: 14
Views: 873

Re: Array as overlay

grindstone,

we cross posted - thanks!

Code: Select all

*Cast(ZString Ptr, @a(1)) = g


does essentially the same, but is more compact, i like it!

JK

Go to advanced search