[ python-Bugs-1649098 ] non-standard: array[0]

SourceForge.net noreply at sourceforge.net
Fri Jul 13 19:48:58 CEST 2007


Bugs item #1649098, was opened at 2007-01-31 19:25
Message generated for change (Comment added) made by theller
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1649098&group_id=5470

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: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 6
Private: No
Submitted By: Johannes Abt (jabt)
Assigned to: Thomas Heller (theller)
Summary: non-standard: array[0]

Initial Comment:
in Modules/_ctypes/ctypes.h:

typedef struct {
[..]
        ffi_type *atypes[0];
} ffi_info;

AFAIK, arrays must be of size > 0.
_Most_ compilers accepts this, but not all
(especially my HP-UX compiler).

Please change *atypes[0] to *atypes[1]!

Bye,
Johannes


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

>Comment By: Thomas Heller (theller)
Date: 2007-07-13 19:48

Message:
Logged In: YES 
user_id=11105
Originator: NO

Fixed in release25-maint branch (SVN rev. 56354) and trunk (SVN rev.
56355).

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

Comment By: Thomas Heller (theller)
Date: 2007-02-28 21:43

Message:
Logged In: YES 
user_id=11105
Originator: NO

I can, and probably will, change this in Modules/_ctypes/ctypes.h. 
However, I'm afraid it will not help the OP too much because it seems he
cannot sucessfully compile the libffi sources with this HP-UX compiler
anyway because of at least *some* other problems.

I have the impression that libffi is GCC-specific, and unless someone
provides a complete patch for the HP-UX (or other) compilers it will
probably stay this way.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-02-25 23:24

Message:
Logged In: YES 
user_id=33168
Originator: NO

Thomas, could you take a look?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1649098&group_id=5470


More information about the Python-bugs-list mailing list