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

Skip to content

Commit 2cfd356

Browse files
committed
Removed Think C 3.0 stuff and wish list.
1 parent a1ab7fa commit 2cfd356

1 file changed

Lines changed: 1 addition & 34 deletions

File tree

Python/pythonmain.c

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -368,16 +368,8 @@ goaway(sts)
368368
fprintf(stderr, "[%ld refs]\n", ref_total);
369369
#endif
370370

371-
#ifdef THINK_C_3_0
372-
if (sts == 0)
373-
Click_On(0);
374-
#endif
375-
376371
#ifdef TRACE_REFS
377372
if (askyesno("Print left references?")) {
378-
#ifdef THINK_C_3_0
379-
Click_On(1);
380-
#endif
381373
printrefs(stderr);
382374
}
383375
#endif /* TRACE_REFS */
@@ -392,9 +384,6 @@ finaloutput()
392384
#ifdef TRACE_REFS
393385
if (!askyesno("Print left references?"))
394386
return;
395-
#ifdef THINK_C_3_0
396-
Click_On(1);
397-
#endif
398387
printrefs(stderr);
399388
#endif /* TRACE_REFS */
400389
}
@@ -413,7 +402,7 @@ askyesno(prompt)
413402
return buf[0] == 'y' || buf[0] == 'Y';
414403
}
415404

416-
#ifdef THINK_C_3_0
405+
#ifdef applec /* MPW (also usable for Think C 3.0) */
417406

418407
/* Check for file descriptor connected to interactive device.
419408
Pretend that stdin is always interactive, other files never. */
@@ -425,26 +414,4 @@ isatty(fd)
425414
return fd == fileno(stdin);
426415
}
427416

428-
#ifdef macintosh
429-
/* same */
430-
int
431-
isatty(fd)
432-
int fd;
433-
{
434-
return fd == fileno(stdin);
435-
}
436-
#endif
437-
438417
#endif
439-
440-
/* XXX WISH LIST
441-
442-
- possible new types:
443-
- iterator (for range, keys, ...)
444-
- improve interpreter error handling, e.g., true tracebacks
445-
- save precompiled modules on file?
446-
- fork threads, locking
447-
- allow syntax extensions
448-
*/
449-
450-
/* "Floccinaucinihilipilification" */

0 commit comments

Comments
 (0)