Csound Csound-dev Csound-tekno Search About

RESET macro and re-entrant Csound

Date1998-07-15 06:02
FromMichael Gogins
SubjectRESET macro and re-entrant Csound
I am going to make at least one stab at building a re-entrant version of
Csound. In the sources I find stuff like this:

#ifdef RESET
void cscorereset(void)
{
  nxtfree = nxtevt   = nxtevtblk = infiles = NULL;
  warped  = warpout  = 0;
  evtmp   = evtmpblk = NULL;
}
#endif

It tooks as though this may be part of an effort to build a re-entrant
version of Csound (for Windows Csound).

Is this true?

If so, has anyone tried to create a dynamic link library version of Csound,
or succeeded in doing so?

The natural thought is to replace main(int argc, char *argc[]) with a
run(const char *commandLine) function, and where the program would normally
exit, call all these reset things.

Any comments?