[AD] [ alleg-Bugs-2830708 ] avoid long in public interfaces

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #2830708, was opened at 2009-07-31 23:08
Message generated for change (Comment added) made by strangemoose
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2830708&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 4.9
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Peter Wang (tjaden)
Assigned to: Nobody/Anonymous (nobody)
Summary: avoid long in public interfaces

Initial Comment:
Due to differing widths of 'long' by different compilers on 64-bit versions of Windows we need to avoid using 'long' in the public interfaces. Mostly plain int will suffice. The main culprit here is kcm_audio.

----------------------------------------------------------------------

>Comment By: Thomas Fjellstrom (strangemoose)
Date: 2009-08-25 12:20

Message:
Nah. The entire point to using size_t and off_t is that they change size
depending on if the system is 32bit or 64bit. they WON'T change size based
on compiler, which is what the bug is about.

----------------------------------------------------------------------

Comment By: Elias Pschernig (elias)
Date: 2009-08-25 06:56

Message:
For the same reason, we should avoid size_t and off_t I'd say. Mostly file
routines seem to be using those at places.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2830708&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/