Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08c3be3

Browse files
committed
Changed the few old routine names still used to the new ones
Started working on MSL support
1 parent 85ae4a8 commit 08c3be3

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

Mac/Python/macgetcompiler.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,18 @@ PERFORMANCE OF THIS SOFTWARE.
4343
#else
4444
#define HASGUSI ""
4545
#endif
46+
#ifdef USE_MSL
47+
#define HASMSL " w/MSL"
48+
#else
49+
#define HASMSL ""
50+
#endif
4651
#ifdef __powerc
47-
#define COMPILER " [CW PPC" HASGUSI "]"
52+
#define COMPILER " [CW PPC" HASGUSI HASMSL "]"
4853
#else
4954
#ifdef __CFM68K__
50-
#define COMPILER " [CW CFM68K" HASGUSI "]"
55+
#define COMPILER " [CW CFM68K" HASGUSI HASMSL "]"
5156
#else
52-
#define COMPILER " [CW 68K" HASGUSI "]"
57+
#define COMPILER " [CW 68K" HASGUSI HASMSL "]"
5358
#endif
5459
#endif
5560
#endif

Mac/Python/macglue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ PyMac_FixGUSIcd()
173173
pb.ioNamePtr= "\p";
174174
pb.ioVRefNum= curdirfss.vRefNum;
175175
pb.ioWDDirID= curdirfss.parID;
176-
if (PBHSetVol(&pb, 0) != noErr)
176+
if (PBHSetVolSync(&pb) != noErr)
177177
return;
178178
}
179179

@@ -540,7 +540,7 @@ PyMac_InitMenuBar()
540540
MenuHandle applemenu;
541541

542542
if ( (bar=GetMenuBar()) == NULL ) return;
543-
if ( (applemenu=GetMHandle(SIOUX_APPLEID)) == NULL ) return;
543+
if ( (applemenu=GetMenuHandle(SIOUX_APPLEID)) == NULL ) return;
544544
SetMenuItemText(applemenu, 1, "\pAbout Python...");
545545
}
546546

Mac/Python/macmain.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
127127
/* Set default values */
128128
#define SET_OPT_ITEM(num, var) \
129129
GetDialogItem(dialog, (num), &type, (Handle *)&handle, &rect); \
130-
SetCtlValue(handle, (short)p->var);
130+
SetControlValue(handle, (short)p->var);
131131

132132
SET_OPT_ITEM(OPT_INSPECT, inspect);
133133
SET_OPT_ITEM(OPT_VERBOSE, verbose);
@@ -146,7 +146,7 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
146146
if ( item == OPT_OK )
147147
break;
148148
if ( item == OPT_CANCEL ) {
149-
DisposDialog(dialog);
149+
DisposeDialog(dialog);
150150
exit(0);
151151
}
152152
if ( item == OPT_CMDLINE ) {
@@ -171,7 +171,7 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
171171
if ( item == (num) ) { \
172172
p->var = !p->var; \
173173
GetDialogItem(dialog, (num), &type, (Handle *)&handle, &rect); \
174-
SetCtlValue(handle, (short)p->var); \
174+
SetControlValue(handle, (short)p->var); \
175175
}
176176

177177
OPT_ITEM(OPT_INSPECT, inspect);
@@ -184,7 +184,7 @@ PyMac_InteractiveOptions(PyMac_PrefRecord *p, int *argcp, char ***argvp)
184184

185185
#undef OPT_ITEM
186186
}
187-
DisposDialog(dialog);
187+
DisposeDialog(dialog);
188188
}
189189

190190
/*

0 commit comments

Comments
 (0)