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

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: #define MAXLANG 6
        !           100: 
        !           101: 
        !           102: 
        !           103: struct yn_message {
        !           104: 
        !           105:        const char *message;    /* message to print */
        !           106: 
        !           107:        char    yes_let;        /* letter to hit for yes */
        !           108: 
        !           109:        char    no_let;         /* letter to hit for no */
        !           110: 
        !           111: } boot_it[MAXLANG] = {
        !           112: 
        !           113: { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },
        !           114: 
        !           115: { "MultiTOS laden?   (j)a (n)ein ", 'j', 'n' },
        !           116: 
        !           117: { "Charger MultiTOS?   (o)ui (n)on ", 'o', 'n' },
        !           118: 
        !           119: { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },          /* reserved */
        !           120: 
        !           121: { "�Cargar MultiTOS?   (s)i (n)o ", 's', 'n' },        /* upside down ? is 168 dec. */
        !           122: 
        !           123: { "Carica MultiTOS?   (s)i (n)o ", 's', 'n' }
        !           124: 
        !           125: };
        !           126: 
        !           127: 
        !           128: 
        !           129: 
        !           130: 
        !           131: /*
        !           132: 
        !           133:  * ask the user whether s/he wants to boot MultiTOS; returns 1 if
        !           134: 
        !           135:  * yes, 0 if no
        !           136: 
        !           137:  */
        !           138: 
        !           139: 
        !           140: 
        !           141: int
        !           142: 
        !           143: boot_kernel_p()
        !           144: 
        !           145: {
        !           146: 
        !           147:        extern int gl_lang;
        !           148: 
        !           149:        struct yn_message *msg;
        !           150: 
        !           151:        int y;
        !           152: 
        !           153: 
        !           154: 
        !           155:        if (gl_lang >= MAXLANG || gl_lang < 0)
        !           156: 
        !           157:                gl_lang = 0;
        !           158: 
        !           159:        msg = &boot_it[gl_lang];
        !           160: 
        !           161:        Cconws(msg->message);
        !           162: 
        !           163:        y = (int) Cconin();
        !           164: 
        !           165:        if (tolower(y) == msg->yes_let)
        !           166: 
        !           167:                return 1;
        !           168: 
        !           169:        else
        !           170: 
        !           171:                return 0;
        !           172: 
        !           173: }
        !           174: 
        !           175: 
        !           176: 
        !           177: #endif /* MULTITOS */
        !           178: 

unix.superglobalmegacorp.com

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