Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4425] Cscore changes

Date2004-03-31 05:16
FromAnthony Kozar
Subject[CSOUND-DEV:4425] Cscore changes
Here is a summary of the changes that I have had to make to the Cscore
source code so far.

Anthony Kozar
anthony.kozar@utoledo.edu

----------------------------------------------
+ cscormai.c
    + need to add GLOBALS cglob;
    + lots of additions to support Mac console I/O
    + prototype for die()
    + close open files
    + optional 2nd CL-argument for output file (else use stdout)
    + copied natlong() and die() functions from elsewhere
    + ifdef-ed out dribble_printf()  (multiply defined)
    - comments about how to build are no longer correct
        - cscoremain.c and cscorefns.c are now cscormai.c and cscorfns.c
          (this was more confusing when all 4 files were present).
        - now must also compile and link with getstring.c
        
+ cscore.c
    + #include "cs.h"  (all the samples need this unless added to cscore.h)
    + line 33:  a = lappstrev(a,"s");
    + before line 37:  if (a) lrelev(a);
    + line 37:  a = lcreat(1);
    + line 38:  a = lappstrev(a,"e");
    + after line 40:  return;

+ cscore.h
    - #include "cs.h"

+ cscorfns.c
    + in cscorinit(), after the line
        next = createv(PMAX);
      add the line
          next->op = '\0';        /* akozar -- 100503 */

+ getstring.c
    + comment out line 43 (Handle GETS128;) :
        /*Handle GETS128; /* decl. error -- not used? -- 092603, akozar */
    + change line 54 (PtoCString(buff);) to
        p2cstr(buff);
    
- cscofils/README
    - instructions on building standalones are out-of-date (similar
      to those in cscormai.c)

- cscofils/*.c
    - all sample programs require #include "cs.h" (see note above)
    - all cscore() function definitions should be "void cscore()"
      (implicit int is no longer ANSI)

Date2004-03-31 09:50
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:4426] Re: Cscore changes
Is this Csound 4.23 of csound5?  Just curious
==John ffitch

Date2004-03-31 16:16
FromAnthony Kozar
Subject[CSOUND-DEV:4428] Re: Cscore changes
Sorry, I should have mentioned that this is 4.23.  Although the bug fixes
should be necessary in Csound 5 unless some of them have already been made
(line numbers may then be different, of course).

The changes to cscormai.c are needed to compile on a Mac.  I'm not really
sure if some of these changes should be #ifdef macintosh or shouldn't be.
The changes to the other files should be relevant on all platforms.

Anthony Kozar
anthony.kozar@utoledo.edu


On 3/31/04 3:50 AM, jpff@codemist.co.uk etched in
stone:

> Is this Csound 4.23 of csound5?  Just curious
> ==John ffitch