Annotation of gcl520h/_commlib.h, revision 1.1.1.1

1.1       root        1: #ifndef _COMMLIB_DOT_H
                      2: #define _COMMLIB_DOT_H
                      3: 
                      4: /*
                      5:  * COMMLIB.H          5.20A  June 8, 1995
                      6:  *
                      7:  * The Greenleaf Comm Library
                      8:  *
                      9:  * Copyright (C) 1984-1995 Greenleaf Software Inc.  All Rights Reserved.
                     10:  *
                     11:  * NOTES
                     12:  *
                     13:  *  This file contains all the private structures and definitions
                     14:  *  used for Level 2 support throughout the library.  This header
                     15:  *  file gets included in lots of source modules, but shouldn't
                     16:  *  ever need to be included in any end user modules.
                     17:  *
                     18:  * MODIFICATIONS
                     19:  *
                     20:  * December 12, 1992  4.00A : Initial release
                     21:  *
                     22:  */
                     23: 
                     24: #include "commlib.h"
                     25: 
                     26: #ifdef __cplusplus
                     27: extern "C" {
                     28: #endif
                     29: 
                     30: /*
                     31:  * Prototypes used internal to CommLib drivers only
                     32:  */
                     33: 
                     34: void GF_CONV _InitializeDriverFunctions( PORT *port );
                     35: void GF_CONV _FreePort( PORT *port );
                     36: PORT * GF_CONV _OutOfMemoryPort( void );
                     37: #if defined( GF_MICROSOFT_C ) || defined( GF_VISUAL_CPP ) || \
                     38:     defined( GF_SYMANTEC_CPP ) || \
                     39:     ( defined( GF_BORLAND_CPP) && (GF_COMPILER_VERSION >= 0x300 ))
                     40: void GF_CDECL _close_all_ports( void );
                     41: #elif defined( GF_WATCOM_C )
                     42: void _close_all_ports( void );
                     43: #else
                     44: void GF_CONV _close_all_ports( void );
                     45: #endif
                     46: 
                     47: extern int ( GF_CONV * _PortIdleFunctionPtr )( PORT *port );
                     48: 
                     49: #ifdef __cplusplus
                     50: }
                     51: #endif
                     52: 
                     53: /*
                     54:  * sprintf() and strings need to handled one way under Windows,
                     55:  * but differently under DOS.  Here are a couple of things that
                     56:  * help with this.  Some of the automatic variables used under
                     57:  * MS-DOS need to be static when in a DLL, so that they reside
                     58:  * in DS territory instead of SS (e.g. REGS args to int86).  The
                     59:  * GF_DLL_STATIC macro does this for us.
                     60:  */
                     61: 
                     62: #if defined( GF_WINDOWS ) || ( defined( GF_WIN32 ) && !defined( GF_X32 ) )
                     63:   #include <windows.h>
                     64:   #define GF_SPRINTF      wsprintf          /* Tag: Misc private */
                     65:   #define GF_VSPRINTF     wvsprintf         /* Tag: Misc private */
                     66:   #define GF_STRING       char GF_FAR *     /* Tag: Misc private */
                     67: 
                     68:   #if defined( VGFD_DLL ) || defined( GF_DLL )
                     69:     #define GF_STATIC
                     70: 
                     71: /*
                     72:  * We need to put the prototypes in here of the functions that
                     73:  * are set up for the DLL during initialization of the global
                     74:  * structure of instance data.
                     75:  */
                     76:     #include "xfer.h"
                     77: 
                     78: int GF_CONV _WindowsDefaultIdleFunction( PORT GF_DLL_FAR *port );
                     79: int GF_CONV _WindowsDefaultAbortModemFunction( PORT GF_DLL_FAR *port );
                     80: int GF_CONV _WindowsDefaultAbortXferFunction( struct xfer GF_DLL_FAR *xfer );
                     81: char GF_DLL_FAR *GF_CONV _DefaultUserErrorNameFunction( int error_code );
                     82: FILE GF_DLL_FAR * GF_CONV _DefaultXferFileOpenFunction(
                     83:                                            struct xfer GF_DLL_FAR *status,
                     84:                                            char GF_DLL_FAR *name,
                     85:                                            char GF_DLL_FAR *mode );
                     86:   #else  /* #if defined( VGFD_DLL ) || defined( GF_DLL ) */
                     87:     #define GF_STATIC       static
                     88:   #endif /* #if defined( VGFD_DLL ) ... #else */
                     89: #else /* #if defined( GF_WINDOWS ) || ( defined( GF_WIN32 ) ... */
                     90:   #define GF_SPRINTF      sprintf     /* Tag: Misc private */
                     91:   #define GF_VSPRINTF     vsprintf    /* Tag: Misc private */
                     92:   #define GF_STRING       char *
                     93:   #define GF_STATIC       static
                     94: #endif /* #if defined( GF_WINDOWS ) || ( defined( GF_WIN32 ) ... #else */
                     95: 
                     96: #if defined( GF_WINDOWS ) && !defined( GF_WIN32 )
                     97: long _far _pascal _CreateVBString( char _far *string,
                     98:                                    unsigned short int l );
                     99: #endif
                    100: #endif  /* #ifndef _COMMLIB_DOT_H */

unix.superglobalmegacorp.com

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