This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: non-standard: array[0]
Type: Stage:
Components: None Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: jabt, nnorwitz, theller
Priority: high Keywords:

Created on 2007-01-31 18:25 by jabt, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg31151 - (view) Author: Johannes Abt (jabt) Date: 2007-01-31 18:25
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
msg31152 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2007-02-25 22:24
Thomas, could you take a look?
msg31153 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-02-28 20:43
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.
msg31154 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-07-13 17:48
Fixed in release25-maint branch (SVN rev. 56354) and trunk (SVN rev. 56355).
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44532
2007-01-31 18:25:27jabtcreate