Csound Csound-dev Csound-tekno Search About

[Csnd-dev] int/int32_t?

Date2019-03-15 21:57
FromPete Goodeve
Subject[Csnd-dev] int/int32_t?
AttachmentsNone  

Date2019-03-15 22:05
FromJohn ff
SubjectRe: [Csnd-dev] int/int32_t?
No good reason.  Recently tried to rationalise short introduction long..

Sent from TypeApp
On 15 Mar 2019, at 21:57, Pete Goodeve <pete.goodeve@computer.org> wrote:
Hi,
I'm working on bringing up Csound 6.13 in Haiku, and
have been fixing mismatches fairly eaasily, but I've hit
a compile error that seems to me to expose a basic
source error.

The compiler complains:

/boot/home/WORK/CSOUND_DEV/csound/OOps/pvfileio.c:406:10: error: conflicting types for 'pvoc_createfile'
int32_t pvoc_createfile(CSOUND *csound, const char *filename,
^
In file included from /boot/home/WORK/CSOUND_DEV/csound/OOps/pvfileio.c:59:0:
/boot/home/WORK/CSOUND_DEV/csound/./include/pvfileio.h:149:9: note: previous declaration of 'pvoc_createfile' was here
int pvoc_createfile(CSOUND *, const char *,

which is indeed a mismatch! I assume it shows up because Haiku
goes through a different path to define the things.

Is there any good r3ason for the difference between the code
and the header, or can I just match things up? (Preferrably
I guess to use int32_t throughout.)

Thanks,

-- Pete --

Date2019-03-15 23:12
FromPete Goodeve
SubjectRe: [Csnd-dev] int/int32_t?
AttachmentsNone