example.h

来自「sybase数据库ct library的开发,使用了所以有函数」· C头文件 代码 · 共 65 行

H
65
字号

/*
** example.h
**
** This is the header file that goes with the Sybase 
** Client-Library example programs.  
**
**
*/

/* Sccsid %Z% %M% %I% %G% */

/*
** Define symbolic names, constants, and macros
*/
#define	EX_MAXSTRINGLEN		255
#define	EX_BUFSIZE		1024
#define	EX_CTLIB_VERSION	CS_VERSION_125
#define	EX_BLK_VERSION		BLK_VERSION_125
#define	EX_ERROR_OUT		stderr

/*
** exit status values
*/
#ifdef vms
#include <stsdef.h>
#define EX_EXIT_SUCCEED		(STS$M_INHIB_MSG | STS$K_SUCCESS)
#define EX_EXIT_FAIL		(STS$M_INHIB_MSG | STS$K_ERROR)
#else
#define EX_EXIT_SUCCEED		0
#define EX_EXIT_FAIL		1
#endif /* vms */

/*
** Define global variables used in all sample programs
*/
#define EX_SERVER 	NULL		/* use DSQUERY env var */
#define EX_USERNAME	"sa"
#define EX_PASSWORD 	""

/*
** Uncomment the following line to test the HA Failover feature.
*/
/* #define HAFAILOVER 1 */

/*
** For some platforms (e.g. windows 3.1), additional work needs to be done
** to insure that the output of some of the example programs can be displayed.
** This macro will insure that any setup is done for the platform.
**
** For windows, _wsetscreenbuf(_fileno(stdout), _WINBUFINT) will set 
** QuickWin's standard output screen buffer to unlimited size.  
*/

#if QWIN

#define EX_SCREEN_INIT() _wsetscreenbuf(_fileno(stdout), _WINBUFINF)

#else /* QWIN */

#define EX_SCREEN_INIT() 

#endif /* QWIN */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?