| Anthony Kozar wrote:
> Csound nicely reverts back to ascii graphs now on the Mac since I haven't
> registered any callbacks yet. But those routines use putchar and write
> directly to stdout, bypassing the csoundMessage mechanism.
Not all code has been converted to use csoundMessage, and it takes a lot
of effort to hunt down all uses of printf(), putc(), fprintf(stderr, ...),
and others (not to mention that any function that uses csoundMessage needs
to take a csound instance pointer). However, winascii.c will be converted
eventually, too. Thanks for this report.
> I've also noticed that the first two messages about localization and time
> resolution do not seem to use csoundMessage either.
These messages are printed from global library initialization code that is
called only once, and an ENVIRON* pointer is not available there. Neither of
these two messages is particularly important, though, so losing them (due to
having a GUI that registers a message callback, and, having no console, stderr
is discarded by the OS) is not really an issue. If this causes problems on
MacOS, you can add #ifndef mac_classic to the fprintf(stderr, ...) statements
in Top/csound.c and Top/getstring.c.
Everywhere else, however, the API functions should (and eventually will) be used.
-------------------------------------------------------
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=7412&alloc_id=16344&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |