Click Here
home features news forums classifieds faqs links search
6155 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 95 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!

/  Forum Index
   /  Classic Amiga Software
      /  C support libraries
Register To Post

Goto page ( Previous Page 1 | 2 )
PosterThread
NutsAboutAmiga 
Re: C support libraries
Posted on 23-Jun-2026 14:01:15
#21 ]
Elite Member
Joined: 9-Jun-2004
Posts: 13049
From: Norway

@Code

A few things -1 or ~0 is true in the C standard, retuning -1 on false, is not correct for the C standard.
I suggest use “bool” inssted of “int” for true / false statement.

I think look better with for loop,

idcmp(l->void_data, search_data) != 0)?

strcmp is 0 is equal, or its smaller or greater, so != can be thats -1 or ~0 in thats case its not false?
Again it make more sense to use true or false.. we are now kept guessing if the code is correct or not..

If your coming from basic, that might extremely inefficient interpreter, you might need to worry about number chars on line, or number of tokens (depending on language).

But when we are talking about a compiled language, code you execute looks nothing like what you wrote.

Readability its fare more important, so using enums, defines, using the correct data type, this what you should do.

Last edited by NutsAboutAmiga on 23-Jun-2026 at 02:45 PM.
Last edited by NutsAboutAmiga on 23-Jun-2026 at 02:04 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
zara 
Re: C support libraries
Posted on 28-Jun-2026 14:51:33
#22 ]
Member
Joined: 26-Nov-2022
Posts: 33
From: Unknown

@NutsAboutAmiga

I'll see what I can do with your good explanation.

Still need to compile everything, but libactorc1 v0.1.6 is online now (http://sf.net/p/libactorc/) and should be usable.

I will start on Amiga versions using vbcc (windows 11) later on.

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle