mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
wrap launch-68K option in compile-time flag off by default
This commit is contained in:
parent
febc56c9c5
commit
5122a003b6
5 changed files with 14 additions and 1 deletions
|
@ -93,6 +93,9 @@ MYDEFS_68K = -DPLATFORM_PALM -D__BIG_ENDIAN $(MYDEFS_COMMON) -DAPPNAME=\"$(APPNA
|
||||||
ifneq (x$(BUILD_AS_PNOLET)x, xx)
|
ifneq (x$(BUILD_AS_PNOLET)x, xx)
|
||||||
# comment out for ARM-only build
|
# comment out for ARM-only build
|
||||||
FEATURE_PNOAND68K = -DFEATURE_PNOAND68K
|
FEATURE_PNOAND68K = -DFEATURE_PNOAND68K
|
||||||
|
# Turn this on for a menu that lets you relaunch as 68K or ARM. Good
|
||||||
|
# for testing but not the way to ship to users
|
||||||
|
# FEATURE_PNOAND68K += -DFEATURE_DUALCHOOSE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -180,12 +180,14 @@ shouldRunPnolet()
|
||||||
if ( ( err == errNone ) && sysFtrNumProcessorIsARM( value ) ) {
|
if ( ( err == errNone ) && sysFtrNumProcessorIsARM( value ) ) {
|
||||||
runArm = true;
|
runArm = true;
|
||||||
}
|
}
|
||||||
|
#ifdef FEATURE_DUALCHOOSE
|
||||||
if ( runArm ) {
|
if ( runArm ) {
|
||||||
err = FtrGet( APPID, FEATURE_WANTS_68K, &value );
|
err = FtrGet( APPID, FEATURE_WANTS_68K, &value );
|
||||||
if ( (err == errNone) && (value == WANTS_68K) ) {
|
if ( (err == errNone) && (value == WANTS_68K) ) {
|
||||||
runArm = false;
|
runArm = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return runArm;
|
return runArm;
|
||||||
} /* shouldRunPnolet */
|
} /* shouldRunPnolet */
|
||||||
|
|
||||||
|
|
|
@ -395,15 +395,19 @@ palm_dictionary_destroy( DictionaryCtxt* dict )
|
||||||
|
|
||||||
XP_FREE( dict->mpool, ctxt->super.faces16 );
|
XP_FREE( dict->mpool, ctxt->super.faces16 );
|
||||||
|
|
||||||
|
#ifdef XWFEATURE_COMBINEDAWG
|
||||||
/* Try first to delete the feature. */
|
/* Try first to delete the feature. */
|
||||||
if ( FtrPtrFree( APPID, DAWG_STORE_FEATURE ) == ftrErrNoSuchFeature ) {
|
if ( FtrPtrFree( APPID, DAWG_STORE_FEATURE ) == ftrErrNoSuchFeature ) {
|
||||||
|
#endif
|
||||||
for ( i = 0; i < ctxt->nRecords; ++i ) {
|
for ( i = 0; i < ctxt->nRecords; ++i ) {
|
||||||
XP_ASSERT( !!ctxt->dictStarts[i].array );
|
XP_ASSERT( !!ctxt->dictStarts[i].array );
|
||||||
MemPtrUnlock( ctxt->dictStarts[i].array );
|
MemPtrUnlock( ctxt->dictStarts[i].array );
|
||||||
}
|
}
|
||||||
|
#ifdef XWFEATURE_COMBINEDAWG
|
||||||
} else {
|
} else {
|
||||||
XP_ASSERT( ctxt->dictStarts[0].array == NULL );
|
XP_ASSERT( ctxt->dictStarts[0].array == NULL );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
MemPtrUnlock( headerRecP );
|
MemPtrUnlock( headerRecP );
|
||||||
|
|
||||||
|
|
|
@ -2313,7 +2313,7 @@ mainViewHandleEvent( EventPtr event )
|
||||||
beamBoard( globals );
|
beamBoard( globals );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef FEATURE_PNOAND68K
|
#ifdef FEATURE_DUALCHOOSE
|
||||||
/* This probably goes away at ship.... */
|
/* This probably goes away at ship.... */
|
||||||
case XW_RUN68K_PULLDOWN_ID:
|
case XW_RUN68K_PULLDOWN_ID:
|
||||||
case XW_RUNARM_PULLDOWN_ID: {
|
case XW_RUNARM_PULLDOWN_ID: {
|
||||||
|
|
|
@ -331,9 +331,13 @@ enum { dictSelectedEvent = firstUserEvent /* 0x6000 */
|
||||||
enum {
|
enum {
|
||||||
PNOLET_STORE_FEATURE = 1 /* where FtrPtr to pnolet code lives */
|
PNOLET_STORE_FEATURE = 1 /* where FtrPtr to pnolet code lives */
|
||||||
, GLOBALS_FEATURE /* for passing globals to form handlers */
|
, GLOBALS_FEATURE /* for passing globals to form handlers */
|
||||||
|
#ifdef FEATURE_DUALCHOOSE
|
||||||
, FEATURE_WANTS_68K /* support for (pre-ship) ability to choose
|
, FEATURE_WANTS_68K /* support for (pre-ship) ability to choose
|
||||||
armlet or 68K */
|
armlet or 68K */
|
||||||
|
#endif
|
||||||
|
#ifdef XWFEATURE_COMBINEDAWG
|
||||||
, DAWG_STORE_FEATURE
|
, DAWG_STORE_FEATURE
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
enum { WANTS_68K, WANTS_ARM };
|
enum { WANTS_68K, WANTS_ARM };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue