pgtypes_interval.h
来自「postgresql8.3.4源码,开源数据库」· C头文件 代码 · 共 63 行
H
63 行
/* $PostgreSQL: pgsql/src/interfaces/ecpg/include/pgtypes_interval.h,v 1.14 2007/05/28 09:46:47 meskes Exp $ */#ifndef PGTYPES_INTERVAL#define PGTYPES_INTERVAL#include <ecpg_config.h>#ifndef C_H#ifdef HAVE_LONG_INT_64#ifndef HAVE_INT64typedef long int int64;#endif#elif defined(HAVE_LONG_LONG_INT_64)/* We have working support for "long long int", use that */#ifndef HAVE_INT64typedef long long int int64;#endif#else /* not HAVE_LONG_INT_64 and not * HAVE_LONG_LONG_INT_64 *//* Won't actually work, but fall back to long int so that code compiles */#ifndef HAVE_INT64typedef long int int64;#endif#define INT64_IS_BUSTED#endif /* not HAVE_LONG_INT_64 and not * HAVE_LONG_LONG_INT_64 */#endif /* C_H */#if defined(USE_INTEGER_DATETIMES) && !defined(INT64_IS_BUSTED)#define HAVE_INT64_TIMESTAMP#endiftypedef struct{#ifdef HAVE_INT64_TIMESTAMP int64 time; /* all time units other than months and years */#else double time; /* all time units other than months and years */#endif long month; /* months and years, after time for alignment */} interval;#ifdef __cplusplusextern "C"{#endifextern interval *PGTYPESinterval_new(void);extern void PGTYPESinterval_free(interval *);extern interval *PGTYPESinterval_from_asc(char *, char **);extern char *PGTYPESinterval_to_asc(interval *);extern int PGTYPESinterval_copy(interval *, interval *);#ifdef __cplusplus}#endif#endif /* PGTYPES_INTERVAL */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?