[Cs-dev] (no subject)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Cs-dev] (no subject)

Victor Lazzarini
this  macro code in namedins.c does not compile on Windows (MSVC):

#define sCmp(x,y) ( {                                                       \
     register int tmp = 0;                                                   \
     while ((((unsigned char*) (x))[tmp] == ((unsigned char*) (y))[tmp]) &&  \
            (((unsigned char*) (x))[tmp] != (unsigned char) 0) &&            \
            (((unsigned char*) (y))[tmp] != (unsigned char) 0))              \
       tmp++;                                                                \
     (((unsigned char*) (x))[tmp] == ((unsigned char*) (y))[tmp] ? 0 : 1);   \
} )

D:csound5\Engine\namedins.c(912) : error C2059: syntax error : '{'
D:\csound5\Engine\namedins.c(912) : error C2065: 'tmp' : undeclared identifier
D:\csound5\Engine\namedins.c(912) : error C2059: syntax error : ')'
D:\csound5\Engine\namedins.c(917) : error C2059: syntax error : 'if'
D:\csound5\Engine\namedins.c(919) : error C2100: illegal indirection
D:\csound5\Engine\namedins.c(919) : error C2223: left of '->nxt' must point
to struct/union
D:\csound5\Engine\namedins.c(920) : error C2059: syntax error : '}'
D:\csound5\Engine\namedins.c(921) : error C2143: syntax error : missing '{'
before '->'
D:\csound5\Engine\namedins.c(921) : error C2059: syntax error : '->'
D:\csound5\Engine\namedins.c(923) : error C2059: syntax error : 'return'
D:\csound5\Engine\namedins.c(924) : error C2059: syntax error : '}'
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : '{'
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : ')'
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : '!='
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : ')'
D:\csound5\Engine\namedins.c(979) : error C2059: syntax error : 'return'
D:\csound5\Engine\namedins.c(980) : error C2059: syntax error : '}'


I am trying to build a MSVC project again, with the new csound5 sources.
Help much appreciated.


Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Cs-dev] (no subject)

istvan_v@mailbox.hu
Victor Lazzarini wrote:

> this  macro code in namedins.c does not compile on Windows (MSVC):

Fixed.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Cs-dev] (no subject)

Michael Gogins
In reply to this post by Victor Lazzarini
Macros are evil, just replace this with a function, inline if possible, that does the same thing.

Regards,
Mike

-----Original Message-----
From: Victor Lazzarini <[hidden email]>
Sent: May 11, 2005 12:16 PM
To: [hidden email]
Subject: [Cs-dev] (no subject)

this  macro code in namedins.c does not compile on Windows (MSVC):

#define sCmp(x,y) ( {                                                       \
     register int tmp = 0;                                                   \
     while ((((unsigned char*) (x))[tmp] == ((unsigned char*) (y))[tmp]) &&  \
            (((unsigned char*) (x))[tmp] != (unsigned char) 0) &&            \
            (((unsigned char*) (y))[tmp] != (unsigned char) 0))              \
       tmp++;                                                                \
     (((unsigned char*) (x))[tmp] == ((unsigned char*) (y))[tmp] ? 0 : 1);   \
} )

D:csound5\Engine\namedins.c(912) : error C2059: syntax error : '{'
D:\csound5\Engine\namedins.c(912) : error C2065: 'tmp' : undeclared identifier
D:\csound5\Engine\namedins.c(912) : error C2059: syntax error : ')'
D:\csound5\Engine\namedins.c(917) : error C2059: syntax error : 'if'
D:\csound5\Engine\namedins.c(919) : error C2100: illegal indirection
D:\csound5\Engine\namedins.c(919) : error C2223: left of '->nxt' must point
to struct/union
D:\csound5\Engine\namedins.c(920) : error C2059: syntax error : '}'
D:\csound5\Engine\namedins.c(921) : error C2143: syntax error : missing '{'
before '->'
D:\csound5\Engine\namedins.c(921) : error C2059: syntax error : '->'
D:\csound5\Engine\namedins.c(923) : error C2059: syntax error : 'return'
D:\csound5\Engine\namedins.c(924) : error C2059: syntax error : '}'
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : '{'
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : ')'
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : '!='
D:\csound5\Engine\namedins.c(977) : error C2059: syntax error : ')'
D:\csound5\Engine\namedins.c(979) : error C2059: syntax error : 'return'
D:\csound5\Engine\namedins.c(980) : error C2059: syntax error : '}'


I am trying to build a MSVC project again, with the new csound5 sources.
Help much appreciated.


Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Cs-dev] (no subject)

istvan_v@mailbox.hu
Michael Gogins wrote:

> Macros are evil, just replace this with a function,
 > inline if possible, that does the same thing.

Already done so.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Michael Gogins
Thanks!

Mike

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>
Sent: Friday, May 13, 2005 9:54 AM
Subject: Re: [Cs-dev] (no subject)


> Michael Gogins wrote:
>
>> Macros are evil, just replace this with a function,
> > inline if possible, that does the same thing.
>
> Already done so.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> Csound-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel