home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / conio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  3.2 KB  |  98 lines

  1. #if (defined(__IBMC__) || defined(__IBMCPP__))
  2. #pragma info( none )
  3. #ifndef __CHKHDR__
  4.    #pragma info( none )
  5. #endif
  6. #pragma info( restore )
  7. #endif
  8.  
  9. #ifndef __conio_h
  10.    #define __conio_h
  11.  
  12.    #ifdef __cplusplus
  13.       extern "C" {
  14.    #endif
  15.  
  16.    #ifndef  _LNK_CONV
  17.       #ifdef _M_I386
  18.          #define _LNK_CONV   _Optlink
  19.       #else
  20.          #define _LNK_CONV
  21.       #endif
  22.    #endif
  23.  
  24.    #ifndef _IMPORT
  25.       #ifdef __IMPORTLIB__
  26.          #define _IMPORT _Import
  27.       #else
  28.          #define _IMPORT
  29.       #endif
  30.    #endif
  31.  
  32.    /********************************************************************/
  33.    /*  <conio.h> header file                                           */
  34.    /*                                                                  */
  35.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  36.    /*    Licensed Material - Property of IBM                           */
  37.    /*                                                                  */
  38.    /*  5801-ARR and Other Materials                                    */
  39.    /*                                                                  */
  40.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  41.    /*                                                                  */
  42.    /********************************************************************/
  43.  
  44.    #if defined(__EXTENDED__)
  45.  
  46.       extern char * _IMPORT _LNK_CONV _cgets( char * );
  47.       extern int    _IMPORT _LNK_CONV _cprintf( const char *, ... );
  48.       extern int    _IMPORT _LNK_CONV _cputs( const char * );
  49.       extern int    _IMPORT _LNK_CONV _cscanf( const char *, ... );
  50.       extern int    _IMPORT _LNK_CONV _getch( void );
  51.       extern int    _IMPORT _LNK_CONV _getche( void );
  52.       extern int    _IMPORT _LNK_CONV _kbhit( void );
  53.       extern int    _IMPORT _LNK_CONV _putch( int );
  54.       extern int    _IMPORT _LNK_CONV _ungetch( int );
  55.  
  56.     #ifdef _M_I386
  57.       int            _Builtin __inpb( const unsigned int );
  58.       unsigned short _Builtin __inpw( const unsigned int );
  59.       unsigned long  _Builtin __inpd( const unsigned int );
  60.       int            _Builtin __outpb( const unsigned int, const int );
  61.       unsigned short _Builtin __outpw( const unsigned int, const unsigned short );
  62.       unsigned long  _Builtin __outpd( const unsigned int, const unsigned long );
  63.  
  64.       #define _inp( x )       __inpb( x )
  65.       #define _inpw( x )      __inpw( x )
  66.       #define _inpd( x )      __inpd( x )
  67.       #define _outp( x, y )   __outpb( (x), (y) )
  68.       #define _outpw( x, y )  __outpw( (x), (y) )
  69.       #define _outpd( x, y )  __outpd( (x), (y) )
  70.     #endif
  71.  
  72.       #define cgets( a )       _cgets( a )
  73.       #define cprintf          _cprintf
  74.       #define cputs( a )       _cputs( a )
  75.       #define cscanf           _cscanf
  76.       #define getch            _getch
  77.       #define getche           _getche
  78.       #define kbhit            _kbhit
  79.       #define putch( a )       _putch( a )
  80.       #define ungetch( a )     _ungetch( a )
  81.  
  82.    #endif
  83.  
  84.    #ifdef __cplusplus
  85.       }
  86.    #endif
  87.  
  88. #endif
  89.  
  90. #if (defined(__IBMC__) || defined(__IBMCPP__))
  91. #pragma info( none )
  92. #ifndef __CHKHDR__
  93.    #pragma info( restore )
  94. #endif
  95. #pragma info( restore )
  96. #endif
  97.  
  98.