Annotation of mstools/h/conio.h, revision 1.1.1.4

1.1       root        1: /***
                      2: *conio.h - console and port I/O declarations
                      3: *
1.1.1.4 ! root        4: *      Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved.
1.1       root        5: *
                      6: *Purpose:
                      7: *      This include file contains the function declarations for
1.1.1.3   root        8: *      the MS C V2.03 compatible console I/O routines.
1.1       root        9: *
                     10: ****/
                     11: 
                     12: #ifndef _INC_CONIO
                     13: 
                     14: #ifdef __cplusplus
                     15: extern "C" {
                     16: #endif
                     17: 
                     18: 
1.1.1.3   root       19: /*
                     20:  * Conditional macro definition for function calling type and variable type
                     21:  * qualifiers.
                     22:  */
                     23: #if   ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
                     24: 
                     25: /*
                     26:  * Definitions for MS C8-32 (386/486) compiler
                     27:  */
                     28: #define _CRTAPI1 __cdecl
                     29: #define _CRTAPI2 __cdecl
                     30: 
                     31: #else
                     32: 
                     33: /*
                     34:  * Other compilers (e.g., MIPS)
                     35:  */
                     36: #define _CRTAPI1
                     37: #define _CRTAPI2
                     38: 
1.1.1.2   root       39: #endif
1.1       root       40: 
1.1.1.3   root       41: 
1.1       root       42: /* function prototypes */
                     43: 
1.1.1.3   root       44: char * _CRTAPI1 _cgets(char *);
                     45: int _CRTAPI2 _cprintf(const char *, ...);
                     46: int _CRTAPI1 _cputs(const char *);
                     47: int _CRTAPI2 _cscanf(const char *, ...);
                     48: int _CRTAPI1 _getch(void);
                     49: int _CRTAPI1 _getche(void);
                     50: int _CRTAPI1 _kbhit(void);
                     51: int _CRTAPI1 _putch(int);
                     52: int _CRTAPI1 _ungetch(int);
1.1       root       53: 
                     54: 
                     55: #if !__STDC__
                     56: /* Non-ANSI names for compatibility */
                     57: #define cgets  _cgets
                     58: #define cprintf _cprintf
                     59: #define cputs  _cputs
                     60: #define cscanf _cscanf
                     61: #define getch  _getch
                     62: #define getche _getche
                     63: #define kbhit  _kbhit
                     64: #define putch  _putch
                     65: #define ungetch _ungetch
                     66: #endif /* __STDC__ */
                     67: 
                     68: #ifdef __cplusplus
                     69: }
                     70: #endif
                     71: 
                     72: #define _INC_CONIO
                     73: #endif /* _INC_CONIO */

unix.superglobalmegacorp.com

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