/**************************************************************************** PROJECT: MusixTeX PreProcessor FILE : init.cc AUTHOR : J. C. Nieuwenhuizen copyright (c) FlowerSoft 1995 --*/ #ifdef __TURBOC__ // _stklen #include // _stklen unsigned _stklen = 8192; //unsigned _stklen = 16384; #endif #include #include "string.h" #include "init.h" #include "mpp.h" ofstream _log( "m.log" ); #ifdef __unix__ //ofstream _cnull( "/dev/null" ); ofstream _cnull( "null" ); #else ofstream _cnull( "nul" ); // msdos #endif #if 0 // take no risk // ndef __GNUC__ istream s_cin( 0 ); ostream s_cout( 1 ); #else // g++; gcc version 2.6.0 has no constuctors ... ifstream s_cin( 0 ); ofstream s_cout( 1 ); #endif istream& _cin = s_cin; ostream& _cout = s_cout; ostream& cnull = _cnull; //ostream& monitor = _cout; //ostream& monitor = _cnull; ostream& monitor = _log; #if 0 int doOption( char* opt ) { String option( opt ); ;// monitor << "doOption (" << (const char*)option << ')' << endl; if ( option.left( 2 ) == "-o" ) { opt += 2; while ( *opt == ' ' ) opt++; outName = opt; } else if ( option == "-silent" ) // _monitor = &_null; ; else if ( option == "-verbose" ) // _monitor = &_cout; ; else error( quoteString( "invalid option", (const char*)option ), __FILE__, __LINE__ ); return 0; } #endif