Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] build issues

Date2007-05-01 15:15
FromMichael Gogins
SubjectRe: [Cs-dev] build issues
Real programmers do not use macros. Replace FALSE with 0 or whatever it is that FALSE is supposed to be translated to.

Regards,
Mike

-----Original Message-----
>From: Jonathan Murphy 
>Sent: May 1, 2007 5:49 AM
>To: csound-devel@lists.sourceforge.net
>Subject: [Cs-dev] build issues
>
>I am currently unable to build. Three days ago no problems. I am
>trying to build with:
>
>scons usePortAudio=0 usePortMIDI=0 useFLTK=0 buildLoris=0 buildDSSI=0
>buildInterfaces=1
>
>The error is:
>
>Engine/envvar.c: In function `csoundFileOpen':
>Engine/envvar.c:1048: error: `FALSE' undeclared (first use in this function)
>Engine/envvar.c:1048: error: (Each undeclared identifier is reported only once
>Engine/envvar.c:1048: error: for each function it appears in.)
>scons: *** [Engine/envvar.o] Error 1
>scons: building terminated because of errors.
>
>Jonathan.
>
>
>-------------------------------------------------------------------------
>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
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
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-05-01 16:05
FromAnthony Kozar
SubjectRe: [Cs-dev] build issues
I am sorry, but that is a fairly silly assertion.  FALSE and TRUE make more
sense that 0 and 1.  They provide _semantic_ information that 0 and 1 do
not.  I use 0 and 1 to refer to quantities; FALSE and TRUE refer to Boolean
states.

I could define them as an enumeration if you prefer that to macros, but
there is really no harm in using macros to represent symbolic constants.

Anthony

Michael Gogins wrote on 5/1/07 10:15 AM:

> Real programmers do not use macros. Replace FALSE with 0 or whatever it is
> that FALSE is supposed to be translated to.


-------------------------------------------------------------------------
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