Rev 7142 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7142 | Rev 7185 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | #include |
- | |
2 | #ifdef MSDOS |
1 | #include |
- | 2 | ||
3 | #include |
3 | #ifdef MSDOS |
4 | #endif |
4 | #include |
5 | 5 | #endif |
|
Line -... | Line 6... | ||
- | 6 | ||
- | 7 | #ifdef WINDOWS |
|
- | 8 | #include |
|
- | 9 | #endif |
|
6 | #ifndef KOS32 |
10 | |
7 | #include |
11 | #ifndef KOS32 |
8 | #else |
12 | #include |
9 | #include |
13 | #else |
10 | #include |
14 | #include |
11 | #endif |
15 | #include |
Line 12... | Line 16... | ||
12 | 16 | #endif |
|
13 | #define INCLUDED // Define externs here |
17 | |
Line 433... | Line 437... | ||
433 | if (con_init_console_dll()) return 1; // init fail |
437 | #ifdef KOS32 |
434 | con_set_title("-SUPER- STAR TREK"); |
438 | if (con_init_console_dll()) return 1; // init fail |
435 | con_set_flags(CON_COLOR_GREEN); |
439 | con_set_title("-SUPER- STAR TREK"); |
436 | #endif |
440 | con_set_flags(CON_COLOR_GREEN); |
437 | 441 | #endif |
|
- | 442 | #ifdef WINDOWS |
|
- | 443 | HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); // Get handle to standard output |
|
- | 444 | SetConsoleTextAttribute(hConsole, FOREGROUND_GREEN); |
|
- | 445 | #endif |
|
- | 446 | ||
Line 438... | Line 447... | ||
438 | prelim(); |
447 | |
Line 439... | Line 448... | ||
439 | 448 | prelim(); |
|
440 | if (argc > 1) { // look for -f option |
449 | |
Line 583... | Line 592... | ||
583 | return IHEOL; |
592 | chew(); |
584 | } |
593 | return IHEOL; |
585 | #ifdef KOS32 |
594 | } |
586 | cp = gets(line); |
595 | #ifdef KOS32 |
587 | if (!cp) exit(); |
596 | cp = gets(line); |
588 | #else |
597 | if (!cp) exit(0); |
589 | // We should really be using fgets |
598 | #else |
590 | fgets(line,sizeof(line),stdin); |
599 | // We should really be using fgets |
591 | #endif |
600 | fgets(line,sizeof(line),stdin); |
592 | if (line[strlen(line)-1] == '\n') |
601 | #endif |
593 | line[strlen(line)-1] = '\0'; |
602 | if (line[strlen(line)-1] == '\n') |