Annotation of MiNT/src/welcome.c, revision 1.1.1.2

1.1       root        1: /* welcome.c - MiNT welcome message
                      2: 
                      3:  * Copyright 1992 Atari Corp.  All Rights Reserved.
                      4: 
                      5:  *=======================================================================
                      6: 
                      7:  * 920625 kbad
                      8: 
                      9:  */
                     10: 
                     11: #include "mint.h"
                     12: 
                     13: #include "version.h"
                     14: 
                     15: 
                     16: 
                     17: const char *memprot_notice = "\
                     18: 
                     19: You have used -m to turn off memory\r\n\
                     20: 
                     21: protection.  On a 68000, you don't\r\n\
                     22: 
                     23: need to do this because MiNT will\r\n\
                     24: 
                     25: do it for you automagically.\r\n";
                     26: 
                     27: 
                     28: 
                     29: const char *memprot_warning = "\033p\
                     30: 
                     31:             *** WARNING ***            \033q\r\n\
                     32: 
                     33: You have turned off memory protection.\r\n\
                     34: 
                     35: This is not recommended, and may not be\r\n\
                     36: 
                     37: supported in the future.\r\n";
                     38: 
                     39: 
                     40: 
                     41: const char *insuff_mem_warning = "\033p\
                     42: 
                     43:             *** WARNING ***            \033q\r\n\
                     44: 
                     45: Your system's memory is not large enough\r\n\
                     46: 
                     47: to permit memory protection to be enabled.\r\n";
                     48: 
                     49: 
                     50: 
                     51: const char *greet1 = "\r\n\033p\033f\
                     52: 
                     53:  MiNT is Now TOS (" __DATE__ ")         \033q\r\n\
                     54: 
                     55:  MiNT v"; /*x.xx prelim version PL xx*/
                     56: 
                     57: 
                     58: 
                     59: #if defined(BETA) || !defined(MULTITOS)
                     60: 
                     61: const char *greet2 = "\r\n\
                     62: 
                     63:  \xbd 1990,1991,1992 Eric R. Smith\r\n\
                     64: 
                     65:  MultiTOS kernel\r\n\
                     66: 
                     67:  \xbd 1992,1993 Atari Corporation\r\n\
                     68: 
                     69:  All Rights Reserved.\r\n\033p\
                     70: 
                     71:  Use this program at your own risk!    \033q\r\n\r\n";
                     72: 
                     73: #else
                     74: 
                     75: const char *greet2 = "\r\n\
                     76: 
                     77:  \xbd 1990,1991,1992 Eric R. Smith\r\n\
                     78: 
                     79:  MultiTOS kernel\r\n\
                     80: 
                     81:  \xbd 1992,1993 Atari Corporation\r\n\033p\
                     82: 
                     83:  All Rights Reserved.                  \033q\r\n\r\n";
                     84: 
                     85: #endif
                     86: 
                     87: 
                     88: 
                     89: #ifdef MULTITOS
                     90: 
                     91: /*
                     92: 
                     93:  * "boot MultiTOS?" messages, in various langauges:
                     94: 
                     95:  */
                     96: 
                     97: 
                     98: 
                     99: 
                    100: 
                    101: struct yn_message {
                    102: 
                    103:        const char *message;    /* message to print */
                    104: 
                    105:        char    yes_let;        /* letter to hit for yes */
                    106: 
                    107:        char    no_let;         /* letter to hit for no */
                    108: 
                    109: } boot_it[MAXLANG] = {
                    110: 
                    111: { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },
                    112: 
                    113: { "MultiTOS laden?   (j)a (n)ein ", 'j', 'n' },
                    114: 
                    115: { "Charger MultiTOS?   (o)ui (n)on ", 'o', 'n' },
                    116: 
                    117: { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },          /* reserved */
                    118: 
                    119: { "�Cargar MultiTOS?   (s)i (n)o ", 's', 'n' },        /* upside down ? is 168 dec. */
                    120: 
                    121: { "Carica MultiTOS?   (s)i (n)o ", 's', 'n' }
                    122: 
                    123: };
                    124: 
                    125: 
                    126: 
                    127: 
                    128: 
                    129: /*
                    130: 
                    131:  * ask the user whether s/he wants to boot MultiTOS; returns 1 if
                    132: 
                    133:  * yes, 0 if no
                    134: 
                    135:  */
                    136: 
                    137: 
                    138: 
                    139: int
                    140: 
                    141: boot_kernel_p()
                    142: 
                    143: {
                    144: 
                    145:        extern int gl_lang;
                    146: 
                    147:        struct yn_message *msg;
                    148: 
                    149:        int y;
                    150: 
                    151: 
                    152: 
                    153:        msg = &boot_it[gl_lang];
                    154: 
                    155:        Cconws(msg->message);
                    156: 
                    157:        y = (int) Cconin();
                    158: 
                    159:        if (tolower(y) == msg->yes_let)
                    160: 
                    161:                return 1;
                    162: 
                    163:        else
                    164: 
                    165:                return 0;
                    166: 
                    167: }
                    168: 
                    169: 
                    170: 
                    171: #endif /* MULTITOS */
                    172: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.