Re: [fpc-pascal] Initializing constant (translate from C)

2017-10-16 Thread Sven Barth via fpc-pascal
Am 16.10.2017 21:36 schrieb "Darius Blaszyk" : > > Here's an interesting one. In C I have this code: > > #define ID1 MAKE_ID('A', 'B') > > Where MAKE_ID is a macro that depending on the endianness of the target will create either AB or BA. > > How would I be able to translate this into Pascal? ID1

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-16 Thread Luiz Americo Pereira Camara
2017-10-15 8:25 GMT-02:00 Michael Van Canneyt : > > > Hello, > > If you want the latest preview and demos to play with: > > https://www.freepascal.org/~michael/pas2js-demo-0.8.28.zip Thanks, but i'm getting 404 error Luiz ___ fpc-pascal maillist - f

Re: [fpc-pascal] Initializing constant (translate from C)

2017-10-16 Thread Dmitry Boyarintsev
On Mon, Oct 16, 2017 at 3:36 PM, Darius Blaszyk wrote: > Here's an interesting one. In C I have this code: > > #define ID1 MAKE_ID('A', 'B') > > Where MAKE_ID is a macro that depending on the endianness of the target > will create either AB or BA. > > The only issue with the following approach co

[fpc-pascal] Initializing constant (translate from C)

2017-10-16 Thread Darius Blaszyk
Here's an interesting one. In C I have this code: #define ID1 MAKE_ID('A', 'B') Where MAKE_ID is a macro that depending on the endianness of the target will create either AB or BA. How would I be able to translate this into Pascal? ID1 preferably would need to remain a constant. I tried using an

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-16 Thread Mr Bee via fpc-pascal
2017-10-16 19:03 GMT+07:00 James Richters : > > > I’m curious how the CRT unit handles the Extended ASCII codes on Mac and > Linux… All versions should be the same for cross platform compatibility. > I don't know the underlayer library being used by CRT unit on Mac and Linux. Perhaps because CRT

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-16 Thread pascalX
On 16/10/17 13:03, James Richters wrote: >Long story short: CRT unit doesn't work at all on Windows, but it works with unicode on Mac/Linux. I’m curious how the CRT unit handles the Extended ASCII codes on Mac and Linux…  All versions should be the same for cross platform compatibility. I a

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-16 Thread James Richters
>Long story short: CRT unit doesn't work at all on Windows, but it works with >unicode on Mac/Linux. I’m curious how the CRT unit handles the Extended ASCII codes on Mac and Linux… All versions should be the same for cross platform compatibility. I also noticed that email broke my links