Add SIOUX initialization routine

This commit is contained in:
sfraser%netscape.com 1999-01-08 03:27:22 +00:00
parent a8d052c951
commit b204f8ea3d
2 changed files with 51 additions and 0 deletions

View File

@ -20,8 +20,21 @@
Definitions for all routines normally found in string.h, but not there in the Metrowerks
ANSII headers.
*/
#ifdef __cplusplus
extern "C" {
#endif
extern char *strdup(const char *source);
extern int strcasecmp(const char*, const char*);
extern int strncasecmp(const char*, const char*, int length);
#if DEBUG
extern void InitializeSIOUX(unsigned char isStandAlone);
#endif /* DEBUG */
#ifdef __cplusplus
}
#endif

View File

@ -128,3 +128,41 @@ char *strdup(const char *source)
BlockMoveData(source, newAllocation, stringLength);
return newAllocation;
}
#pragma mark -
#if DEBUG
#include <SIOUX.h>
void InitializeSIOUX(unsigned char isStandAlone)
{
SIOUXSettings.initializeTB = isStandAlone;
SIOUXSettings.standalone = isStandAlone;
SIOUXSettings.setupmenus = isStandAlone;
SIOUXSettings.autocloseonquit = true;
SIOUXSettings.asktosaveonclose = isStandAlone;
SIOUXSettings.showstatusline = true;
if (isStandAlone)
{
SIOUXSettings.toppixel = 42;
SIOUXSettings.leftpixel = 6;
SIOUXSettings.rows = 40;
SIOUXSettings.columns = 82;
}
else
{
SIOUXSettings.toppixel = 480;
SIOUXSettings.leftpixel = 4;
SIOUXSettings.rows = 20;
SIOUXSettings.columns = 100;
}
//InstallConsole();
}
#endif