Csound Csound-dev Csound-tekno Search About

[Cs-dev] Incompatible change made to CSOUND struct?

Date2007-04-28 18:23
FromAnthony Kozar
Subject[Cs-dev] Incompatible change made to CSOUND struct?
I just updated for the first time since 5.05 was released and looking over
the recent changes noticed this in the CSOUND struct:

was:

    void (*SetInternalYieldCallback)(CSOUND *,
                       int (*yieldCallback)(CSOUND *));
 /* SUBR dummyfn_1; */
    SUBR dummyfn_2[98];


now is:

    void (*SetInternalYieldCallback)(CSOUND *,
                       int (*yieldCallback)(CSOUND *));
    void *(*CreateBarrier)(unsigned int max);
    int (*DestroyBarrier)(void *);
    int (*WaitBarrier)(void *);
 /* SUBR dummyfn_1; */
    SUBR dummyfn_2[98];


The public members of the CSOUND struct come after these function pointers,
so I believe that their locations have been shifted by this change.  I think
the size of dummyfn_2[98] needs to be reduced to [95].

Does this sound correct?

Thanks

Anthony


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-04-28 19:22
From"Steven Yi"
SubjectRe: [Cs-dev] Incompatible change made to CSOUND struct?
AttachmentsNone  

Date2007-04-28 19:51
Fromroot
SubjectRe: [Cs-dev] Incompatible change made to CSOUND struct?
Yes; the addition of those functions should cause the number of dummies to 
reduce.
==John



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-04-28 20:09
FromAnthony Kozar
SubjectRe: [Cs-dev] Incompatible change made to CSOUND struct?
Thanks Steven, 

BTW, it appeared that the number of NULL function pointer initializations in
csound.c had already been reduced.  I assume they were not changed again ...
(have not looked).

Anthony

Anthony Kozar wrote on 4/28/07 1:23 PM:

> The public members of the CSOUND struct come after these function pointers, so
> I believe that their locations have been shifted by this change.  I think the
> size of dummyfn_2[98] needs to be reduced to [95].


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-04-28 20:28
From"Steven Yi"
SubjectRe: [Cs-dev] Incompatible change made to CSOUND struct?
AttachmentsNone