Re: [fpc-devel] Progress on reviewing x86_64 optimizer overhaul and node semantic pass

2019-10-28 Thread Ewald
better with TortoiseGit for me. > > Oh yeah, conflict resolution is the thing nobody really gets right, but TGit > is > a bit less wrong. > I've pretty much resigned myself to Ctrl-F ">>>>>"... Have you tried meld? Works for me in combination with

Re: [fpc-devel] Round function issue

2019-05-25 Thread Ewald
y FPC's and Delphi's rounding mechanism. So if you want normal mathematical rounding then you'll need to write your own function." Since you state that there is an ISO standard that demands regular rounding (not bankers rounding), and FPC has an ISO mode, I would suggest you fil

Re: [fpc-devel] FPC trunk build failed

2018-05-18 Thread Ewald
e revision which started failing by eg. going back a month or so and bisect from there on. Just my 2c... -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Dangerous optimization in CASE..OF

2017-07-14 Thread Ewald
of a managed type does > not seem to be initialized > 17 lines compiled, 0.1 sec, 34672 bytes code, 1316 bytes data IIRC that was exactly the example with which the original thread started (`Data flow analysis (dfa) and "case ... of"`). -- Ewald

Re: [fpc-devel] Ability to handle instance pointers as ordinal type.

2016-02-21 Thread Ewald
nt(C) of 0: ; 1: ; End; Case ptruint(C) of 0: ; 1: ; ptruint(D): ; End; End. === example end === The first case will compile, the second will not, failing with a "Constant Expression expected". So, if you would somehow know the instance pointers at compile time, you might get away with it ;-) -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] get/put in fpc

2015-10-09 Thread Ewald
ke precedence over the other. Judging from your other messages, you are interested in the iso mode, so try leaving out the -Mmacpas? Just a suggestion, I'm no expert on the compiler. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Future of FPCUP tool

2015-07-29 Thread Ewald
mAlf/Reiniero-fpcup/blob/master/bin/x86_64-linux/fpcup_linux_x64?raw=true --no-check-certificate -O fpcup Then chmod'ing fpcup and subsequently executing it works as expected. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org htt

Re: [fpc-devel] tuples

2015-07-19 Thread Ewald
pipermail/fpc-devel/2013-January/031142.html -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] bitwise shift oddity a << b

2015-05-19 Thread Ewald
sults are obtained (and that is the /same/ platform :-) ). -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Ewald
tional seperators are to be fetched from the system, just as keyboard layout, to make an analogy. Note that by stating the above I in no way mean to say that this `fetching` should be done automatically. -- Ewald ___ fpc-devel maillist - fpc-deve

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-22 Thread Ewald
nce, use object. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Suggestion: reference counted objects

2014-09-20 Thread Ewald
something that works for refcounting in the same way as $M does for RTTI). Just my 5 cents. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Newbie question: how does the compiler know the class type of an object ( the Is operator)

2014-08-23 Thread Ewald
n TA is allocated on the stack, whereas TB will be allocated on the heap once you call TB.Create; -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Newbie question: how does the compiler know the class type of an object ( the Is operator)

2014-08-22 Thread Ewald
n concerning TObject. It's the boilerplate of TObject that does the magic. (at least at runtime, I don't know about compile time optimizations concerning the `as` and `is` operators) Also, to get a better idea of the size of a TObject in memory, SizeOf(TVmt) will get you started? --

Re: [fpc-devel] Class property and virtual getter

2014-05-26 Thread Ewald
On 05/26/2014 01:04 PM, Michael Schnell wrote: > On 05/26/2014 12:52 PM, Ewald wrote: >> A `Class Procedure/Function XXX;` has a hidden parameter that points >> to the classtype. A `Class Procedure/Function XXX; static;` doesn't >> have this hidden parameter. >> &g

Re: [fpc-devel] Class property and virtual getter

2014-05-26 Thread Ewald
dditional "static" is necessary. I was > of the op pinion that class procedures are static, anyway. > > Can somebody clarify ? > A `Class Procedure/Function XXX;` has a hidden parameter that points to the classtype. A `Class

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-03-04 Thread Ewald
On 03 Mar 2014, at 21:44, Hans-Peter Diettrich wrote: > Ewald schrieb: >> On 03 Mar 2014, at 12:49, Hans-Peter Diettrich wrote: > >>> How (which data type) does *your* parser store untyped numerical >>> constants? >> Roughly like this (syntax may

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-03-04 Thread Ewald
On Mon, 3 Mar 2014 18:02:35 +0100, Jonas Maebe wrote: > On 03 Mar 2014, at 17:43, Ewald wrote: >> >> Alright, that I did not know. Thanks for the info. I always assumed >> there was an instruction FULD, but it isn't there apparently. > > Nevertheless, Hans-Pet

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-03-03 Thread Ewald
On 03 Mar 2014, at 12:49, Hans-Peter Diettrich wrote: > Ewald schrieb: >> On 03 Mar 2014, at 00:29, Hans-Peter Diettrich wrote: > >>>> `-1` would then be $1 , whereas $ >>>> would be $0 . It really is q

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-03-02 Thread Ewald
On 03 Mar 2014, at 00:29, Hans-Peter Diettrich wrote: > Ewald schrieb: > >> It seems like sticking to one principle (signed integer as much as >> possible) actually breaks another principle (bitpattern). > > Wirth and his Pascal language are well designed with signed

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-03-02 Thread Ewald
On 01 Mar 2014, at 18:17, Jonas Maebe wrote: > > On 01 Mar 2014, at 01:19, Ewald wrote: >> >> That is perfectly true. But shouldn't the most basic behaviour of a language >> be at the very least intuitive? > > It should be well-defined and consistent.

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-03-01 Thread Ewald
bytes long whereas Extended is 10 bytes long on this machine. Then again it doesn't matter here. Replace `Extended` in the entire thread with `Double` and you still get the same bahaviour. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepa

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-02-28 Thread Ewald
On 28 Feb 2014, at 23:43, Jonas Maebe wrote: > > On 28 Feb 2014, at 21:07, Ewald wrote: > >> >> On 28 Feb 2014, at 20:39, Jonas Maebe wrote: >> >>> All hexadecimal constants are (conceptually) parsed as int64, so this is by >>> design. int6

Re: [fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-02-28 Thread Ewald
On 28 Feb 2014, at 20:39, Jonas Maebe wrote: > On 28 Feb 2014, at 20:21, Ewald wrote: > >> Since I was curious as to the intended-ness of this behaviour I wrote the >> second set of tests which show me that this is not true for longwords: both >> 3 & 4 give the

[fpc-devel] Extended($FFFFFFFFFFFFFFFF) = -1?

2014-02-28 Thread Ewald
& 4 give the same result. This lead me to the conclusion that this is a bug. Shall I file it? Some important note, I think: the first sizeof's of the example return 10, 8, 4 on this machine. -- Ewald ___ fpc-devel maillist -

Re: [fpc-devel] One fpc.cfg per fpc version

2014-02-17 Thread Ewald
On 17 Feb 2014, at 10:34, Mattias Gaertner wrote: > On Mon, 17 Feb 2014 00:02:11 +0100 > Ewald wrote: > >> [...] >> >> I'm not sure if that is really what you need, but I think this is the most >> flexible/straightforward method of `running one fpc.cfg

Re: [fpc-devel] One fpc.cfg per fpc version

2014-02-16 Thread Ewald
26651, obviously): = fpc-26651 = #!/bin/sh PATH="/compilers/fpc/26651/bin":$PATH" fpc -n @/compilers/fpc/26651/etc/fpc.cfg "$@" = = = I'm not sure if that is really what you need, but I think this is the most flexible/straightfo

Re: [fpc-devel] Compiling trunk on OS X

2014-02-01 Thread Ewald
On 02 Feb 2014, at 00:05, Jonas Maebe wrote: > > On 01 Feb 2014, at 23:15, Ewald wrote: > >> Anyway, if I can provide anything else, just ask. > > FWIW, until this is fixed you can still get a working x86-64 compiler by > building it like this: > > make

Re: [fpc-devel] Compiling trunk on OS X

2014-02-01 Thread Ewald
On 01 Feb 2014, at 23:25, Florian Klämpfl wrote: > > Just to be sure: your working copy is clean? It is clean. To be shure I first removed the entire svn tree and then checked out r26221. -- Ewald ___ fpc-devel maillist - fpc

Re: [fpc-devel] Compiling trunk on OS X

2014-02-01 Thread Ewald
On 01 Feb 2014, at 23:11, Jonas Maebe wrote: > > On 01 Feb 2014, at 23:01, Ewald wrote: > >> Here you go: r26221 with the changes from r26223 compiles and runs fine. >> >> So it appears that r26222 is the culprit. > > The code changed in that revision only ge

Re: [fpc-devel] Compiling trunk on OS X

2014-02-01 Thread Ewald
On 01 Feb 2014, at 22:47, Sven Barth wrote: > On 01.02.2014 22:37, Ewald wrote: >>> >>>> It indeed looks unproblematic. That is basically the reason I ask. >>> >>> The only recent problem I know of with darwin/x86-64 was introduced in >>> r

Re: [fpc-devel] Compiling trunk on OS X

2014-02-01 Thread Ewald
26519 > and was fixed in 26618. Hmmm. Then the possibilities are: - Something wrong with certain utilities? (like ar, ?) - Wrong starting compiler? (although unlikely, since the makefile would complain. I use 2.6.2) -- Ewald

Re: [fpc-devel] Compiling trunk on OS X

2014-02-01 Thread Ewald
On 01 Feb 2014, at 22:18, Florian Klämpfl wrote: > Am 01.02.2014 21:55, schrieb Ewald: >> [snip] >> This only happens for revisions >= 26223 (revisions 26220 -> 26222 don't >> compile). > > Do you really mean 26223? It looks quiet unproblematic? That is

[fpc-devel] Compiling trunk on OS X

2014-02-01 Thread Ewald
to make? Some way to track the issue down to something concrete? -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] fpc_popaddrstack ()

2013-09-08 Thread Ewald
for exception handling etc is not yet initialized. I suggest that you have a look at http://wiki.freepascal.org/Multithreaded_Application_Tutorial#External_threads Hope it helps... -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org h

Re: [fpc-devel] StrToInt -- Strange behaviour

2013-02-21 Thread Ewald
Once upon a time, Marco van de Voort said: > In our previous episode, Ewald said: >> Apparently the StrToInt function interprets strings starting with an `x` >> as hexadecimal numbers? This behaviour seems rather strange to me >> (strings starting with 0x would be a bit mor

Re: [fpc-devel] StrToInt -- Strange behaviour

2013-02-21 Thread Ewald
Once upon a time, Sven Barth said: > On 21.02.2013 21:01, Ewald wrote: >> >> Apparently the StrToInt function interprets strings starting with an `x` >> as hexadecimal numbers? This behaviour seems rather strange to me >> (strings starting with 0x would be a bit mo

[fpc-devel] StrToInt -- Strange behaviour

2013-02-21 Thread Ewald
A- File a bug concerning incomplete documentation? B- File a bug concerning incorrect behaviour of StrToInt()? C- Do nothing and live with it. D- ? Additional information Compiler Version: 2.6.0 -- Ewald ___ fpc-devel maillist -

Re: [fpc-devel] Why FreeBSD sem_init() works different to Linux?

2013-02-08 Thread Ewald
Once upon a time, on 02/08/2013 04:02 PM to be precise, Jonas Maebe said: > > On 07 Feb 2013, at 16:52, Ewald wrote: > >> Altough I still >> don't see how you can make these calls atomic then (without the >> barrier)? > > On x86, it is impossible to perform

Re: [fpc-devel] Why FreeBSD sem_init() works different to Linux?

2013-02-07 Thread Ewald
ory barrier.`). Altough I still don't see how you can make these calls atomic then (without the barrier)? I guess I'll have to take a peek at the source code for these calls on different platforms/architectures... -- Ewald ___

Re: [fpc-devel] Why FreeBSD sem_init() works different to Linux?

2013-02-07 Thread Ewald
Once upon a time, on 02/07/2013 01:46 PM to be precise, Jonas Maebe said: > > On 07 Feb 2013, at 13:39, Ewald wrote: > >> Well, I always thought that the InterLoackedCompareExchange boiles down >> to [**] >> .Lock CMPXCHG >> >> Or something quite like that.

Re: [fpc-devel] Why FreeBSD sem_init() works different to Linux?

2013-02-07 Thread Ewald
Once upon a time, on 02/07/2013 11:57 AM to be precise, Jonas Maebe said: > > On 06 Feb 2013, at 23:16, Ewald wrote: > >> Concerning the locking mechanism, you can uses mutex(en/es/ii) or you >> can do this by a busy waiting loop with an integer (of course there are >&g

Re: [fpc-devel] Why FreeBSD sem_init() works different to Linux?

2013-02-06 Thread Ewald
code - saving > me some time in developing, unit testing and debugging my own Object > Pascal based semaphore. > -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Weird output from fpGetErrNo

2013-01-31 Thread Ewald
it come from" was what I was wondering about, but as you and Marco say, I shouldn't worry too much about it. And, since the program works flawlessly, it would be useless to go out on a witchhunt chasing errors which most probably aren't errors at all. Anyway, thanks for the explan

Re: [fpc-devel] Weird output from fpGetErrNo

2013-01-31 Thread Ewald
such cases it is impossible to tell what of these cases happened from > the result of somelibccall and errno. I understand, so there probably is no issue in preceding code then, which means that I can hereby cross out this issue on my todo-list :-) Thanks for the help! -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Weird output from fpGetErrNo

2013-01-30 Thread Ewald
On 30 Jan 2013, at 21:52, Marco van de Voort wrote: > In our previous episode, Ewald said: >> fpgetcerrno from initc gives me the correct results as well; and by >> looking at the code I see it implements it by using `__errno_location` >> under linux, so no surprise

Re: [fpc-devel] Weird output from fpGetErrNo

2013-01-30 Thread Ewald
Once upon a time, on 01/30/2013 08:17 PM to be precise, Marco van de Voort said: > In our previous episode, Ewald said: >> I was just writing a little mmapped (that's two `m`'s -- no typo ;-) ) >> file stream and thought to do it properly just in case I might fork(). >

[fpc-devel] Weird output from fpGetErrNo

2013-01-30 Thread Ewald
the expected results (Out of memory, Success, ...). So, did I discover a bug or do I miss something? Just for the record: `daBuffer` is just mmapped in the line preceding this one, there is no error there, it contains the right data, `Filesize` is obtained through stat(),

Re: [fpc-devel] String handling in trunk (was utf8 in 2.6.0)

2013-01-07 Thread Ewald
in the 16-bit integer. Fixed. Same goes for our strings: if you know one is UTF-8 and you want to convert it to UTF-16 it can be done without error, but without this extra knowledge it can't give you decisive results. Just a few points I think bear some potential to contemplate o

Re: [fpc-devel] String handling in trunk (was utf8 in 2.6.0)

2013-01-07 Thread Ewald
as there is no ambiguity with this interpretation. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] String handling in trunk (was utf8 in 2.6.0)

2013-01-07 Thread Ewald
by a character that matches $BE in the lookuptable of the encoding of the terminal. Look at it this way: the byte sequence ($C7, $BE) has got no meaning to the compiler whatsoever, it is a byte sequence. That's what matters to the compiler, what is in this sequence is

Re: [fpc-devel] AMD & Intel CPUCount

2012-12-28 Thread Ewald
for. For giving the program(mer) an idea? As a default value for use in configfiles (e.g. `-1 cores` = autodetect)? -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] AMD & Intel CPUCount

2012-12-28 Thread Ewald
Once upon a time, on 12/28/2012 08:27 PM to be precise, Ludo Brands said: > On 28/12/2012 20:01, Ewald wrote: >> Well, it is as you say, the `max cores per packge` just doesn't make any >> sense at all. How can a processor hav e a maximum of one core per >> physical pa

Re: [fpc-devel] Feature announcement: Extension of TThread's interface

2012-12-28 Thread Ewald
Once upon a time, on 12/28/2012 05:59 PM to be precise, Marco van de Voort said: > In our previous episode, Ewald said: >>> cores' (no hyperthreading), and 0.5 if 'siblings' = 2 x 'cpu cores' >>> (hyperthreading enabled). >> Yeah, that could wo

Re: [fpc-devel] Feature announcement: Extension of TThread's interface

2012-12-28 Thread Ewald
Once upon a time, on 12/28/2012 04:46 PM to be precise, patspiper said: > Try lscpu -p At first sights that would be a worthy alternative to /proc/cpuinfo indeed. Thanks for the hint. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.

Re: [fpc-devel] AMD & Intel CPUCount

2012-12-28 Thread Ewald
Once upon a time, on 12/28/2012 04:25 PM to be precise, Ludo Brands said: > On 28/12/2012 15:46, Ewald wrote: >> Hmmm, that's weird. The results of the Xeon are what I was expecting. >> >> Quite frankly I don't know how to fix it. Maybe getting the maximum >>

Re: [fpc-devel] Feature announcement: Extension of TThread's interface

2012-12-28 Thread Ewald
just break your application. > True. A better bet would be to look for the code that produces the > cpuinfo, and use that code directly. Agreed. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Feature announcement: Extension of TThread's interface

2012-12-28 Thread Ewald
Once upon a time, on 12/28/2012 06:46 AM to be precise, microc...@zoho.com said: > On Thu, Dec 27, 2012 at 07:01:08PM +, Mark Morgan Lloyd wrote: >> Ewald wrote: >> >>> Now, for the implementation of ProcessorCount I've got code here that >>> reads the

Re: [fpc-devel] Feature announcement: Extension of TThread's interface

2012-12-28 Thread Ewald
Once upon a time, on 12/28/2012 11:01 AM to be precise, patspiper said: > On 27/12/12 22:38, Ewald wrote: >> Hmmm, that;s indeed quite some different output you've got there. >> Mine looks like this: >> >> processor : 0 >> vendor_id : G

Re: [fpc-devel] AMD & Intel CPUCount

2012-12-28 Thread Ewald
Once upon a time, on 12/28/2012 09:29 AM to be precise, Mark Morgan Lloyd said: > Ludo Brands wrote: >> On 27/12/2012 23:06, Ewald wrote: >>> Oh, and the important part: The function has been tested on a Core 2 >>> Duo >>> and an Intel i7, and works corre

Re: [fpc-devel] AMD & Intel CPUCount

2012-12-28 Thread Ewald
t; stepping: 2 > cpu MHz: 1599.570 > cache size: 512 KB > physical id: 0 > siblings: 2 > core id: 0 > cpu cores: 1 > > > > AMD Athlon X2 5600+ reports #CPU cores: 2. /proc/cpuinfo reports 2 > processors and 2 cores. &g

[fpc-devel] AMD & Intel CPUCount (was: Feature announcement: Extension of TThread's interface)

2012-12-27 Thread Ewald
//Return #logical CPU's MOV $1, %eax MOV $0, %ecx CPUID SHR $16, %ebx AND $0xFF, %ebx MOV %ebx, __RESULT .LReturn: End ['eax', 'ebx', 'ecx', 'edx&#

Re: [fpc-devel] Feature announcement: Extension of TThread's interface

2012-12-27 Thread Ewald
e upon a time, on 12/27/2012 08:01 PM to be precise, Mark Morgan Lloyd said: > Ewald wrote: > >> Now, for the implementation of ProcessorCount I've got code here that >> reads the amount of processor cores from `/proc/cpuinfo` (linux only I >> think) and some assembl

Re: [fpc-devel] Feature announcement: Extension of TThread's interface

2012-12-27 Thread Ewald
nce upon a time, on 12/27/2012 05:23 PM to be precise, Sven Barth said: > Hello Free Pascal community! > > I'm pleased to announce the extension of TThread's interface to bring > it more on par with current Delphi versions. > > [snip] -- Ewald _

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-29 Thread Ewald
re that uses this, >> and this is an incompatible change. > 1) The change in code can be tedious but is simple. from Attach(MyObj) > to Attach(MyObj as IFPObserver) To fix incompatibility wouldn't a simple operator overload do the trick? Operator := (a: TObject): I

Re: [fpc-devel] CThreads.pp

2012-11-19 Thread Ewald
Once upon a time, on 11/19/2012 02:51 PM to be precise, Jonas Maebe said: > > On 18 Nov 2012, at 23:46, Jonas Maebe wrote: > >> >> On 18 Nov 2012, at 14:24, Ewald wrote: >> >>> Right, I fixed this issue by adding a very simple type declaration at >

Re: [fpc-devel] CThreads.pp

2012-11-18 Thread Ewald
Once upon a time, on 11/18/2012 01:23 PM to be precise, Ewald said: > Once upon a time, on 11/18/2012 11:43 AM to be precise, Jonas Maebe said: >> On 16 Nov 2012, at 19:42, Ewald wrote: >> >>> {$mode ObjFPC}, which is the same as cthreads.pp. Removal of the `@` >>&g

Re: [fpc-devel] CThreads.pp

2012-11-18 Thread Ewald
Once upon a time, on 11/18/2012 11:43 AM to be precise, Jonas Maebe said: > On 16 Nov 2012, at 19:42, Ewald wrote: > >> {$mode ObjFPC}, which is the same as cthreads.pp. Removal of the `@` >> doesn't solve the problem. The thing that is weird about this is that >> the

Re: [fpc-devel] CThreads.pp

2012-11-16 Thread Ewald
Once upon a time, on 11/16/2012 07:21 PM to be precise, Jonas Maebe said: > On 16 Nov 2012, at 19:15, Ewald wrote: > >> Well, the compiler gives this error: >> `Incompatible types: got >> "> Pointer):^untyped;Register>" expected >> "&g

Re: [fpc-devel] CThreads.pp

2012-11-16 Thread Ewald
ng for it? Or are you perhaps > confusing it with sem_init, which indeed does not exist on Mac OS X? > No, it's definetly sem_open, the litteral error is: `Error: Identifier not found "sem_open"` My uses list contains the exact same units as in CThreads.pp, in the same order, so I don't see why the symbol isn't found. Also, the entire load of $idfdef's are also copied into my source code. Undeffing `has_sem_open` makes the code compile. Same goes for `SEM_FAILED`, but this is related to the very same issue I believe. -- Ewald ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] CThreads.pp

2012-11-15 Thread Ewald
with the same problem? Congratulations and thank you for reading this far ;-) If anyone could grant me some insights on one of these points it would be greatly appreciated. Long days and pleasant nights to you all. BTW: I only program unix OS'es nowadays, so don't shoot me if I missed

Re: [fpc-devel] fp IDE and gdbint on Debian Wheezy/testing

2012-10-26 Thread Ewald
There were 1 errors compiling module, stopping > Fatal: Compilation aborted > make[4]: *** [gdbver] Error 1 > make[4]: Leaving directory > `/usr/local/src/fpc/fpcbuild-2.6.0/fpcsrc/packages/gdbint' > make[3]: *** [fpc_smart] Error 2 > make[2]: *** [gdbint_smart] Error 2 >

Re: [fpc-devel] cmem Size Field

2012-10-19 Thread Ewald
Thanks, I just filed the bug: id 23165. -- Ewald On 10/19/12 16:11, Jonas Maebe wrote: >> I see... On the other hand, documentation >> (http://www.freepascal.org/docs-html/prog/progsu160.html) says that >> MemSize() should return the total amount of memory available for >

Re: [fpc-devel] cmem Size Field

2012-10-19 Thread Ewald
() should return the size of a previous allocated memory chunk. Which is what I always thought that MemSize() did. This functionality is however not mentioned in the documentation on the memory manager (see the above link)... Am I missing something here? Thanks in advance, Ewald On Fri, 19 Oct

[fpc-devel] cmem Size Field

2012-10-19 Thread Ewald
other debugging functionality), I do not see why this extra memory is needed always since the calls in the C library (malloc, free, realloc, calloc) do not need this kind of information. Am I missing something here is this a bit of left-over code? -- Ewald