Structure updates

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Structure updates

Post by netmaestro »

Now that we have a true unsigned byte type .a, quite a few structures that contain .b members would benefit from being changed to contain .a members instead. RGBQUAD would be one example, but there are surely many. Same would be true of .w -> .u then we don't have to use bitwise AND when reading them.

Not 100% sure I've thought this all the way through, but it makes sense to me right now anyway :mrgreen:
BERESHEIT
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Structure updates

Post by Fred »

Sure, you're right. Who is candidate to review all the WinAPI structures ? :)
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Structure updates

Post by srod »

Fred wrote:Sure, you're right. Who is candidate to review all the WinAPI structures ? :)
I nominate Fangbeast! :wink:
I may look like a mule, but I'm not a complete ass.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Structure updates

Post by Fred »

Ok, one vote for Fang. Anyone else ? :P
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Structure updates

Post by luis »

Whe could post them in a thread specifically created for that, Fred.

Like for the missing structures / constants... or use the same one.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Structure updates

Post by Fangbeast »

Fred wrote:Ok, one vote for Fang. Anyone else ? :P
That's it, you're not invited to the drunken Christmas party with a the shaved sheep and srod doing the dance of the 7 veils and *not* wearing his steaming g-string collection!!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply