/* ** Copyright (c) 2006 D. Richard Hipp ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public ** License version 2 as published by the Free Software Foundation. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** General Public License for more details. ** ** You should have received a copy of the GNU General Public ** License along with this library; if not, write to the ** Free Software Foundation, Inc., 59 Temple Place - Suite 330, ** Boston, MA 02111-1307, USA. ** ** Author contact information: ** drh@hwaci.com ** http://www.hwaci.com/drh/ ** ******************************************************************************* ** ** A common header file used by all modules. */ /* ** System header files used by all modules */ #include #include #include #include #include #include #include #include "sqlite3.h" /* ** Typedef for a 64-bit integer */ typedef sqlite_int64 i64; typedef sqlite_uint64 u64; /* ** Unsigned character type */ typedef unsigned char u8; /* ** Standard colors. These colors can also be changed using a stylesheet. */ /* A blue border and background. Used for the title bar and for dates ** in a timeline. */ #define BORDER1 "#a0b5f4" /* Stylesheet class: border1 */ #define BG1 "#d0d9f4" /* Stylesheet class: bkgnd1 */ /* A red border and background. Use for releases in the timeline. */ #define BORDER2 "#ec9898" /* Stylesheet class: border2 */ #define BG2 "#f7c0c0" /* Stylesheet class: bkgnd2 */ /* A gray background. Used for column headers in the Wiki Table of Contents ** and to highlight ticket properties. */ #define BG3 "#d0d0d0" /* Stylesheet class: bkgnd3 */ /* A light-gray background. Used for title bar, menus, and rlog alternation */ #define BG4 "#f0f0f0" /* Stylesheet class: bkgnd4 */ /* A deeper gray background. Used for branches */ #define BG5 "#dddddd" /* Stylesheet class: bkgnd5 */ /* Default HTML page header */ #define HEADER "\n" \ "\n" \ "\n" \ "%N: %T\n\n" \ "" /* Default HTML page footer */ #define FOOTER "
\n" \ "Fossil version %V\n" \ "
\n" \ "\n" /* 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 /* Unset the following to disable internationalization code. */ #ifndef FOSSIL_I18N # define FOSSIL_I18N 1 #endif #if FOSSIL_I18N # include # include #endif #ifndef CODESET # undef FOSSIL_I18N # define FOSSIL_I18N 0 #endif