On commit, check the repository for changes before starting the write
transaction, so that a diff can be run during the check-in comment editing.
Ticket [014ac374123d9a6ab6894].
check-in: 59f68585 user: drh tags: trunk

#### Extra arguments for linking the finished binary. Fossil needs
# to link against the Z-Lib compression library. There are no
# other dependencies. We sometimes add the -static option here
# so that we can build a static executable that will run in a
# chroot jail.
#
LIB = -lz $(LDFLAGS)
# If you're on OpenSolaris:# LIB += lsocket# Solaris 10 needs:# LIB += -lsocket -lnsl
# My assumption is that the Sol10 flags will work for Sol8/9 and possibly 11.#
# If using HTTPS:
LIB += -lcrypto -lssl
#### Tcl shell for use in running the fossil testsuite.
#
TCLSH = tclsh
# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk

|
<
<
|
<
>
|

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

#### Extra arguments for linking the finished binary. Fossil needs
# to link against the Z-Lib compression library. There are no
# other dependencies. We sometimes add the -static option here
# so that we can build a static executable that will run in a
# chroot jail.
#
LIB = -lz $(LDFLAGS)
HOST_OS!= uname -sLIB.SunOS= -lsocket -lnsl
LIB += $(LIB.$(HOST_OS))
# If using HTTPS:
LIB += -lcrypto -lssl
#### Tcl shell for use in running the fossil testsuite.
#
TCLSH = tclsh
# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk

/*
** System header files used by all modules
*/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
/* #include <ctype.h> // do not use - causes problems */
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#endif
#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
................................................................................
#ifndef _RC_COMPILE_
#include "sqlite3.h"
/*
** Typedef for a 64-bit integer
*/
typedef sqlite3_int64 i64;
typedef sqlite3_uint64 u64;
/*
** Unsigned character type
*/
typedef unsigned char u8;
/* In the timeline, check-in messages are truncated at the first space
** that is more than MX_CKIN_MSG from the beginning, or at the first
** paragraph break that is more than MN_CKIN_MSG from the beginning.
*/
#define MN_CKIN_MSG 100
#define MX_CKIN_MSG 300
/*** The following macros are used to cast pointers to integers and** integers to pointers. The way you do this varies from one compiler** to the next, so we have developed the following set of #if statements** to generate appropriate macros for a wide range of compilers.**** The correct "ANSI" way to do this is to use the intptr_t type. ** Unfortunately, that typedef is not available on all compilers, or** if it is available, it requires an #include of specific headers** that vary from one machine to the next.*/#if defined(__PTRDIFF_TYPE__) /* This case should work for GCC */# define FOSSIL_INT_TO_PTR(X) ((void*)(__PTRDIFF_TYPE__)(X))# define FOSSIL_PTR_TO_INT(X) ((int)(__PTRDIFF_TYPE__)(X))#elif !defined(__GNUC__) /* Works for compilers other than LLVM */# define FOSSIL_INT_TO_PTR(X) ((void*)&((char*)0)[X])# define FOSSIL_PTR_TO_INT(X) ((int)(((char*)X)-(char*)0))#else /* Generates a warning - but it always works */# define FOSSIL_INT_TO_PTR(X) ((void*)(X))# define FOSSIL_PTR_TO_INT(X) ((int)(X))#endif
/* Unset the following to disable internationalization code. */
#ifndef FOSSIL_I18N
# define FOSSIL_I18N 1
#endif
#if FOSSIL_I18N