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

Skip to content

Commit edea408

Browse files
committed
changed ifdefs and comments -- more modules are good
1 parent e6d9ccc commit edea408

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

Mac/Include/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define HAVE_FOPENRF
1414
#endif
1515

16-
#ifdef __SC__
16+
#ifdef __CFM68K__
1717
#define atof Py_AtoF
1818
#define strtod Py_StrToD
1919
#endif

Mac/Modules/config.c

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ struct {
309309
} inittab[] = {
310310

311311
{"array", initarray},
312-
#ifndef __SC__
313-
/* Do this one later... */
312+
#ifndef __CFM68K__
313+
/* The math library seems mostly broken... */
314314
{"math", initmath},
315315
#endif
316316
{"parser", initparser},
@@ -331,34 +331,28 @@ struct {
331331
{"new", initnew},
332332
{"gestalt", initgestalt},
333333
#ifdef THINK_C
334+
/* This is an interface to the Think runtime */
334335
{"macconsole", initmacconsole},
335336
#endif
336-
#ifndef __SC__
337+
#ifndef MPW
337338
/* Do this one later... */
338339
{"ctb", initctb},
339340
#endif
340341
{"macfs", initmacfs},
341342
#ifdef __MWERKS__
342-
/* This is really "Jack Jansen" specific for now :-) */
343+
/* This could probably be made to work on other compilers... */
343344
{"macspeech", initmacspeech},
344345
{"macdnr", initmacdnr},
345346
{"mactcp", initmactcp},
346347
#endif
347-
/* This is really "Guido van Rossum" specific... :-) */
348348
{"AE", initAE},
349-
#ifndef __MWERKS__
350349
{"Ctl", initCtl},
351350
{"Dlg", initDlg},
352-
#endif
353351
{"Evt", initEvt},
354352
{"Menu", initMenu},
355-
#ifdef THINK_C
356353
{"Qd", initQd},
357-
#endif
358-
#ifndef __MWERKS__
359354
{"Snd", initSnd},
360355
{"Win", initWin},
361-
#endif
362356
{"Res", initRes},
363357

364358
/* -- ADDMODULE MARKER 2 -- */

0 commit comments

Comments
 (0)