Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
43 user(s) are online (29 user(s) are browsing Forums)

Members: 0
Guests: 43

more...

Headlines

 
  Register To Post
« 1 2 3 4 (5)

Re: New verson of CLiB2 from Andrea (afxgroup)
Just popping in
Just popping in


See User information
@afxgroup

Having looked into this more closely, it appears GCC itself sets __CLIB2__, __THREAD_SAFE and __NEWLIB__, before any include files.

#if defined(__NEWLIB__)
#error crt=newlib
#elif defined(__CLIB2__) && defined(__THREAD_SAFE)
#error crt=clib2-ts
#elif defined(__CLIB2__)
#error crt=clib2
#else
#error unknown
#endif

With this in mind, would it not make more sense for your clib2 libs to belong in SDK:clib2/lib.threadsafe opposed to SDK:clib2/lib? And then -mcrt=clib-ts would be used to use your library and that also means __THREAD_SAFE will be defined by the compiler. I've checked and -mcrt=clib2-ts still works and links fine with GCC 11. I mean your library is technically replacement for the old clib2-ts (I still have it installed!), not clib2, IYSWIM.

Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
We can't add a new clib2 and try to maintain everything in parallel with old version. My version should be a replacement of new one. Otherwise it is better to change the name to the lib..
So i've already defined in a new branch __THREAD_SAFE and you will be sure that clib2 will have TS enabled if you need it

And also if you plan to compile something for tabor remember that clib2 doesn't support SPE and since I don't have any tabor I can't implement/test any change. So it is better to use newlib for this purpose

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
Just added libcrypt to clib2. Now crypt and crypt_r are supported. In the README.md all the informations. I've also added __THREAD_SAFE and some new functions
I'll release a new beta soon.
If someone wants to help me with pthreads there is a branch with pthread library that at moment works except if you use pthread_exit in the thread function..

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
New beta release

https://github.com/afxgroup/clib2/releases/tag/v1.0.0-beta-4

Please update to this version since it fix snprintf function

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Home away from home
Home away from home


See User information
@afxgroup

Thank you for the ongoing development

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
just fixed some problems in vfwprintf core functions and i've added some other wchar functions plus other misc functions (f.e. syslog).

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Quite a regular
Quite a regular


See User information
@afxgroup

AWESOME job man!!!!

Go to top

  Register To Post
« 1 2 3 4 (5)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project