[Issue 3604] extern(C) callable function with array parameters broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 26 10:36:20 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3604


Lars T. Kyllingstad <bugzilla at kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at kyllingen.net


--- Comment #8 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-02-26 10:36:17 PST ---
I ran into the problem with core.sys.posix.unistd.pipe() today.  The following
grep should have tracked down most of the problematic declarations:

$ grep -r '(.*\w\+[[][0-9]' core/*
core/sys/posix/sys/socket.d:int     socketpair(int, int, int, int[2]);
core/sys/posix/sys/socket.d:    int     socketpair(int, int, int, int[2]);
core/sys/posix/sys/socket.d:    int     socketpair(int, int, int, int[2]);
core/sys/posix/sys/socket.d:    int     socketpair(int, int, int, int[2]);
core/sys/posix/sys/time.d:int utimes(in char*, in timeval[2]); // LEGACY
core/sys/posix/sys/time.d:    int utimes(in char*, in timeval[2]); // LEGACY
core/sys/posix/sys/time.d:    int utimes(in char*, in timeval[2]);
core/sys/posix/sys/time.d:    int utimes(in char*, in timeval[2]);
core/sys/posix/stdlib.d:double erand48(ushort[3]);
core/sys/posix/stdlib.d:c_long jrand48(ushort[3]);
core/sys/posix/stdlib.d:void   lcong48(ushort[7]);
core/sys/posix/stdlib.d:c_long nrand48(ushort[3]);
core/sys/posix/stdlib.d:ushort seed48(ushort[3]);
core/sys/posix/stdlib.d:    double erand48(ushort[3]);
core/sys/posix/stdlib.d:    c_long jrand48(ushort[3]);
core/sys/posix/stdlib.d:    void   lcong48(ushort[7]);
core/sys/posix/stdlib.d:    c_long nrand48(ushort[3]);
core/sys/posix/stdlib.d:    ushort seed48(ushort[3]);
core/sys/posix/stdlib.d:    double erand48(ushort[3]);
core/sys/posix/stdlib.d:    c_long jrand48(ushort[3]);
core/sys/posix/stdlib.d:    void   lcong48(ushort[7]);
core/sys/posix/stdlib.d:    c_long nrand48(ushort[3]);
core/sys/posix/stdlib.d:    ushort seed48(ushort[3]);
core/sys/posix/stdlib.d:    double erand48(ushort[3]);
core/sys/posix/stdlib.d:    c_long jrand48(ushort[3]);
core/sys/posix/stdlib.d:    void   lcong48(ushort[7]);
core/sys/posix/stdlib.d:    c_long nrand48(ushort[3]);
core/sys/posix/stdlib.d:    ushort seed48(ushort[3]);
core/sys/posix/unistd.d:int     pipe(int[2]);
core/sys/posix/unistd.d:void       encrypt(char[64], int);
core/sys/posix/unistd.d:    void       encrypt(char[64], int);
core/sys/posix/unistd.d:    void       encrypt(char[64], int);

(I've removed a few false positives in the above.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list