Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Dmitry Boyarintsev
On Fri, Oct 12, 2018 at 6:48 PM Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > Not quite: the Boolean16, Boolean32 and Boolean64 types were introduced > because the libraries provided by GTK required a 4-Byte boolean type that > worked like Object Pascal's Boolean. > That's

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Sven Barth via fpc-devel
Dmitry Boyarintsev schrieb am Fr., 12. Okt. 2018, 22:55: > On Fri, Oct 12, 2018 at 3:51 PM Sven Barth via fpc-devel < > fpc-devel@lists.freepascal.org> wrote: > >> All the Pascal Boolean types are not "Integer types". You can't assign >> any of them to a Integer or whatever without typecasting.

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Dmitry Boyarintsev
On Fri, Oct 12, 2018 at 3:51 PM Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > All the Pascal Boolean types are not "Integer types". You can't assign > any of them to a Integer or whatever without typecasting. They *all* > behave like Boolean, because that was the way they

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Michael Van Canneyt
On Fri, 12 Oct 2018, Jonas Maebe wrote: On 12/10/18 22:00, Michael Van Canneyt wrote: What exactly is wrong ? Boolean8/16/32/64 are ordinal and boolean types, but not integer types. OK. I will rephrase the wording. Thanks! Michael. ___

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Jonas Maebe
On 12/10/18 22:00, Michael Van Canneyt wrote: What exactly is wrong ? Boolean8/16/32/64 are ordinal and boolean types, but not integer types. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Michael Van Canneyt
On Fri, 12 Oct 2018, Sven Barth via fpc-devel wrote: On 10/12/18 7:21 PM, Dmitry Boyarintsev wrote: On Fri, Oct 12, 2018 at 1:07 PM Sven Barth via fpc-devel mailto:fpc-devel@lists.freepascal.org>> wrote: Dmitry Boyarintsev mailto:skalogryz.li...@gmail.com>> schrieb am Fr., 12. Okt.

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Sven Barth via fpc-devel
On 10/12/18 7:21 PM, Dmitry Boyarintsev wrote: > On Fri, Oct 12, 2018 at 1:07 PM Sven Barth via fpc-devel > mailto:fpc-devel@lists.freepascal.org>> > wrote: > > Dmitry Boyarintsev > schrieb am Fr., 12. Okt. 2018, > 17:26: > > Maybe

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Jonas Maebe
On 12/10/18 19:21, Dmitry Boyarintsev wrote: Boolean8 is not exactly an alias to Boolean, as it's expected to act as an integer, The documentation is wrong. rather than _Bool. (and would be expected? to be passed an Boolean8 is defined as an alias for Boolean in the RTL, so it won't

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Sven Barth via fpc-devel
Dmitry Boyarintsev schrieb am Fr., 12. Okt. 2018, 17:26: > > > On Fri, Oct 12, 2018 at 11:09 AM Dmitry Boyarintsev < > skalogryz.li...@gmail.com> wrote: > >> so, far the only reliable approach to fix the issue (for the current >> compiler version) is something like that: >> > > Maybe "Boolean8"

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Dmitry Boyarintsev
On Fri, Oct 12, 2018 at 11:09 AM Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > so, far the only reliable approach to fix the issue (for the current > compiler version) is something like that: > Maybe "Boolean8" type should help instead? David, could you please test with Boolean8

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread Dmitry Boyarintsev
On Fri, Oct 12, 2018 at 10:38 AM David Jenkins wrote: > The movsbl %dl, %edx is good. Unfortunately the value of %edx is > 0x not 0x0001. This is the same result I saw when I changed it > to LongBool. > I presume this is due to the definition of YES macro in objc, which is 1

Re: [fpc-devel] OSX: Setting up parameters to objc_msgSend()

2018-10-12 Thread David Jenkins
On 10/12/18 8:17 AM, Dmitry Boyarintsev wrote: So, I'm wondering if it's actually a compiler issue or headers issue. and can ByteBool be used as a substitute for signed char. thanks, Dmitry ___ fpc-devel maillist -