Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
97 user(s) are online (85 user(s) are browsing Forums)

Members: 0
Guests: 97

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 4 (5) 6 7 8 9 »
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

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)
Just can't stay away
Just can't stay away


See User information
@afxgroup

AWESOME job man!!!!

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


See User information
https://github.com/afxgroup/clib2/releases/tag/v1.0.0-beta-5

New beta available with (REALLY) a lot of changes and fixes

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


See User information
@afxgroup
Great stuff. Thank you so much for all this continuous work of yours.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
Fresh beta released..

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

Now it is possible to handle ncurses better (and with colors too) :)

Resized Image

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


See User information
@afxgroup
That's awesome my friend. Great work there.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Home away from home
Home away from home


See User information
@Afxgroup
Ncurses support sounds cool !

I tried to port back in past few ncurses based prods, like for example NCurses based hexviewer and GDB frontend, but they all have bugs and crashes because when i use opensource ncurse implementations.

On which one your support based on ? Your custom ones or something opensource in the wild?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
They are the official nurses library. No third parties or strange stuff. I've added the port on my github.com

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


See User information
Nice, now no front end needed for Cscope.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Not too shy to talk
Not too shy to talk


See User information
@afxgroup

Is it possible to add functions like

strlwr
strupr (I know toupper and tolower is same)
strrev ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Just popping in
Just popping in


See User information
@afxgroup

Nice! I really was beginning to wonder why NCurses (or
OpenNCurses) hadn't been ported, what I also wonder over is the
name of clib2, why not change it to clib3? then you could have
old clib2 and new better clib both installed at the same time,
that is if gcc can be changed to allow crt=clib3? (not a huge
thing you might disregard it altogether). But great work on
getting NCurses over to the AmigaOS4, I was looking at it just a
couple of weeks ago, good timing!!!

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


See User information
@trgswe

This would require the compiler suites to be changed. IMHO, it makes more sense to keep the original clib2 and name this new one clib2-ts instead, replacing the old clib2-ts which probably not many people use or have installed. The bonus being that the compilers (even going back to GCC 4), support -mcrt=clib2-ts already. That said, there may be an issue in that clib2 and clib2-ts share the same headers (but have different link libs).

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


See User information
@SinanSam460

They aren't standard function in any C library. We can't implement any function just because is used by some ports..

@Futaura
There is no need to have two different clib2 installed. They share most of the code. Creating a new mcrt will be a solution if was simply to create a new gcc spec and add this library. And at moment it isn't..
So I'll stay with clib2 now. In a future we'll see

Edit:
even the include files would be different and cause problems on normal clib2 library


Edited by afxgroup on 2022/8/20 15:18:40
i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Just popping in
Just popping in


See User information
@afxgroup

IIRC, the whole reason clib2 and clib2-ts co-existed in the first place was so that single threaded applications did not have all the extra overhead (both in terms of speed and size) imposed on them unnecessarily.

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


See User information
yes but the include files was the same since they are shared by both libraries. My include files are totally different than original clib2. So you will have functions present in include files that are not present in clib2 lib (or contrary)

i'm really tired...
Go to top

  Register To Post
« 1 2 3 4 (5) 6 7 8 9 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project