Csound Csound-dev Csound-tekno Search About

perf source code

Date1999-01-06 22:44
Fromphilip@vcn.bc.ca
Subjectperf source code
Hello,

The 3.493PPCsources project for PPC compiled straight out of 
the box. Marvellous! Thanks to the many contributors for making 
this possible.

With a little extra work I also compiled the perf 68K and FAT 
projects.

However, in order to bring the code up to ANSI strict standards 
and avail myself of CodeWarrior's (minimal) error checking 
facilities, I've had to create several hundred prototypes and 
"fix" hundreds of errors (like unused arguments and variables).

I'm not aware of the compiler requirements of the other 
platforms that Csound is available on, but is there any 
compelling reason why the canonic sources couldn't be adapted 
to the ANSI standard? It seems to me that it has been more or 
less accepted for 10 years now.

Thanks for any comments.

Philip



Philip Aker
Composer, Pianist, Finale Plugins

Suite 13
1405 West 11 Avenue
Vancouver BC
Canada V6H 1K9

philip@vcn.bc.ca

Date1999-01-08 02:12
From"Matt J. Ingalls"
SubjectRe: perf source code
> With a little extra work I also compiled the perf 68K and FAT 

	very cool! send the changes/binaries!! 

> However, in order to bring the code up to ANSI strict standards 
> and avail myself of CodeWarrior's (minimal) error checking 
> facilities, I've had to create several hundred prototypes and 
> "fix" hundreds of errors (like unused arguments and variables).

yuck - a few months ago i made some changes to canonical sources
to remove some of the compiler warnings, but the unused arguments and
"several hundred" prtotypes was so much i just turned the options off
in the compiler prefs (i think i put that in the README)

im about to merge the 3.494 sources -- maybe its about time to remove
mills as ftp (since its currently messed up anyway) and get ALL the mac
stuff up on the bath site! 

matt


Date1999-01-08 15:56
Fromjpff@maths.bath.ac.uk
SubjectRe: perf source code
The Cspoudn sources are ANSI.  Thre are a few compilers who
misunderstand the Standard, and demand prototypes which are not
required.  The declaration of a function includes teh prototype, but
some dumb compilers, and they seem to be on Macs, seem to require

void foo(int);
void foo(int x) {
...
}

The system compiles with zero warnings on PCs, UNIX, gcc, etc etc