Changed to use uint_64 for lsn_t
This commit is contained in:
parent
a11fbdd9e6
commit
8bec3d6175
1 changed files with 11 additions and 4 deletions
|
@ -59,7 +59,7 @@ terms specified in this license.
|
||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//#define NDEBUG
|
//#define NDEBUG 1
|
||||||
|
|
||||||
#ifndef __lladd_common_h
|
#ifndef __lladd_common_h
|
||||||
#define __lladd_common_h
|
#define __lladd_common_h
|
||||||
|
@ -72,6 +72,7 @@ terms specified in this license.
|
||||||
# define END_C_DECLS
|
# define END_C_DECLS
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#include <stdint.h> // uint32, et. al.
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
/* Should be included by the .c files only. :( */
|
/* Should be included by the .c files only. :( */
|
||||||
|
@ -98,9 +99,15 @@ terms specified in this license.
|
||||||
extern int errno;
|
extern int errno;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define byte unsigned char
|
//#define byte unsigned char
|
||||||
#define lsn_t long
|
//#define lsn_t long
|
||||||
#define LSN_T_MAX (LONG_MAX)
|
|
||||||
|
typedef unsigned char byte;
|
||||||
|
//@todo lsn_t should be unsigned.
|
||||||
|
// If it were unsigned, it could be typedef'ed from size_t.
|
||||||
|
typedef int64_t lsn_t;
|
||||||
|
#define LSN_T_MAX (INT64_MAX)
|
||||||
|
|
||||||
|
|
||||||
/*#define DEBUGGING */
|
/*#define DEBUGGING */
|
||||||
/*#define PROFILE_LATCHES*/
|
/*#define PROFILE_LATCHES*/
|
||||||
|
|
Loading…
Reference in a new issue