mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 12:04:38 +00:00
Add SIOUX initialization routine
This commit is contained in:
parent
a8d052c951
commit
b204f8ea3d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user