Fossil SCM

Make sure that EVERY source file includes "config.h" before any other system includes. This is the first step in making fossil compile for Win64 using MinGW.

jan.nijtmans 2013-10-11 08:36 trunk
Commit c30cd93b918f8557bfc4cb758efc945db750f73f
+1 -1
--- src/captcha.c
+++ src/captcha.c
@@ -17,12 +17,12 @@
1717
**
1818
** This file contains code to a simple text-based CAPTCHA. Though easily
1919
** defeated by a sophisticated attacker, this CAPTCHA does at least make
2020
** scripting attacks more difficult.
2121
*/
22
-#include <assert.h>
2322
#include "config.h"
23
+#include <assert.h>
2424
#include "captcha.h"
2525
2626
#if INTERFACE
2727
#define CAPTCHA 3 /* Which captcha rendering to use */
2828
#endif
2929
--- src/captcha.c
+++ src/captcha.c
@@ -17,12 +17,12 @@
17 **
18 ** This file contains code to a simple text-based CAPTCHA. Though easily
19 ** defeated by a sophisticated attacker, this CAPTCHA does at least make
20 ** scripting attacks more difficult.
21 */
22 #include <assert.h>
23 #include "config.h"
 
24 #include "captcha.h"
25
26 #if INTERFACE
27 #define CAPTCHA 3 /* Which captcha rendering to use */
28 #endif
29
--- src/captcha.c
+++ src/captcha.c
@@ -17,12 +17,12 @@
17 **
18 ** This file contains code to a simple text-based CAPTCHA. Though easily
19 ** defeated by a sophisticated attacker, this CAPTCHA does at least make
20 ** scripting attacks more difficult.
21 */
 
22 #include "config.h"
23 #include <assert.h>
24 #include "captcha.h"
25
26 #if INTERFACE
27 #define CAPTCHA 3 /* Which captcha rendering to use */
28 #endif
29
--- src/delta.c
+++ src/delta.c
@@ -20,10 +20,11 @@
2020
** Though developed specifically for fossil, the code in this file
2121
** is generally applicable and is thus easily separated from the
2222
** fossil source code base. Nothing in this file depends on anything
2323
** else in fossil.
2424
*/
25
+#include "config.h"
2526
#include <stdio.h>
2627
#include <assert.h>
2728
#include <stdlib.h>
2829
#include <string.h>
2930
#include "delta.h"
3031
--- src/delta.c
+++ src/delta.c
@@ -20,10 +20,11 @@
20 ** Though developed specifically for fossil, the code in this file
21 ** is generally applicable and is thus easily separated from the
22 ** fossil source code base. Nothing in this file depends on anything
23 ** else in fossil.
24 */
 
25 #include <stdio.h>
26 #include <assert.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include "delta.h"
30
--- src/delta.c
+++ src/delta.c
@@ -20,10 +20,11 @@
20 ** Though developed specifically for fossil, the code in this file
21 ** is generally applicable and is thus easily separated from the
22 ** fossil source code base. Nothing in this file depends on anything
23 ** else in fossil.
24 */
25 #include "config.h"
26 #include <stdio.h>
27 #include <assert.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include "delta.h"
31
+1 -1
--- src/event.c
+++ src/event.c
@@ -21,13 +21,13 @@
2121
** Blog posts
2222
** New articles
2323
** Process checkpoints
2424
** Announcements
2525
*/
26
+#include "config.h"
2627
#include <assert.h>
2728
#include <ctype.h>
28
-#include "config.h"
2929
#include "event.h"
3030
3131
/*
3232
** Output a hyperlink to an event given its tagid.
3333
*/
3434
--- src/event.c
+++ src/event.c
@@ -21,13 +21,13 @@
21 ** Blog posts
22 ** New articles
23 ** Process checkpoints
24 ** Announcements
25 */
 
26 #include <assert.h>
27 #include <ctype.h>
28 #include "config.h"
29 #include "event.h"
30
31 /*
32 ** Output a hyperlink to an event given its tagid.
33 */
34
--- src/event.c
+++ src/event.c
@@ -21,13 +21,13 @@
21 ** Blog posts
22 ** New articles
23 ** Process checkpoints
24 ** Announcements
25 */
26 #include "config.h"
27 #include <assert.h>
28 #include <ctype.h>
 
29 #include "event.h"
30
31 /*
32 ** Output a hyperlink to an event given its tagid.
33 */
34
+1 -1
--- src/gzip.c
+++ src/gzip.c
@@ -19,13 +19,13 @@
1919
** file. The GZIP format is described in RFC-1952.
2020
**
2121
** State information is stored in static variables, so this implementation
2222
** can only be building up a single GZIP file at a time.
2323
*/
24
+#include "config.h"
2425
#include <assert.h>
2526
#include <zlib.h>
26
-#include "config.h"
2727
#include "gzip.h"
2828
2929
/*
3030
** State information for the GZIP file under construction.
3131
*/
3232
--- src/gzip.c
+++ src/gzip.c
@@ -19,13 +19,13 @@
19 ** file. The GZIP format is described in RFC-1952.
20 **
21 ** State information is stored in static variables, so this implementation
22 ** can only be building up a single GZIP file at a time.
23 */
 
24 #include <assert.h>
25 #include <zlib.h>
26 #include "config.h"
27 #include "gzip.h"
28
29 /*
30 ** State information for the GZIP file under construction.
31 */
32
--- src/gzip.c
+++ src/gzip.c
@@ -19,13 +19,13 @@
19 ** file. The GZIP format is described in RFC-1952.
20 **
21 ** State information is stored in static variables, so this implementation
22 ** can only be building up a single GZIP file at a time.
23 */
24 #include "config.h"
25 #include <assert.h>
26 #include <zlib.h>
 
27 #include "gzip.h"
28
29 /*
30 ** State information for the GZIP file under construction.
31 */
32
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -771,10 +771,11 @@
771771
}
772772
773773
774774
writeln "\$(OBJDIR)/sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
775775
set opt $SQLITE_OPTIONS
776
+append opt " -D_HAVE_SQLITE_CONFIG_H"
776777
writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
777778
778779
set opt {}
779780
writeln "\$(OBJDIR)/cson_amalgamation.o:\t\$(SRCDIR)/cson_amalgamation.c"
780781
writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/cson_amalgamation.c -o \$(OBJDIR)/cson_amalgamation.o\n"
@@ -781,10 +782,11 @@
781782
writeln "\$(OBJDIR)/json.o \$(OBJDIR)/json_artifact.o \$(OBJDIR)/json_branch.o \$(OBJDIR)/json_config.o \$(OBJDIR)/json_diff.o \$(OBJDIR)/json_dir.o \$(OBJDIR)/jsos_finfo.o \$(OBJDIR)/json_login.o \$(OBJDIR)/json_query.o \$(OBJDIR)/json_report.o \$(OBJDIR)/json_status.o \$(OBJDIR)/json_tag.o \$(OBJDIR)/json_timeline.o \$(OBJDIR)/json_user.o \$(OBJDIR)/json_wiki.o : \$(SRCDIR)/json_detail.h\n"
782783
783784
writeln "\$(OBJDIR)/shell.o:\t\$(SRCDIR)/shell.c \$(SRCDIR)/sqlite3.h"
784785
set opt {-Dmain=sqlite3_shell}
785786
append opt " -DSQLITE_OMIT_LOAD_EXTENSION=1"
787
+append opt " -D_HAVE_SQLITE_CONFIG_H"
786788
writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/shell.c -o \$(OBJDIR)/shell.o\n"
787789
788790
writeln "\$(OBJDIR)/th.o:\t\$(SRCDIR)/th.c"
789791
writeln "\t\$(XTCC) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
790792
791793
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -771,10 +771,11 @@
771 }
772
773
774 writeln "\$(OBJDIR)/sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
775 set opt $SQLITE_OPTIONS
 
776 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
777
778 set opt {}
779 writeln "\$(OBJDIR)/cson_amalgamation.o:\t\$(SRCDIR)/cson_amalgamation.c"
780 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/cson_amalgamation.c -o \$(OBJDIR)/cson_amalgamation.o\n"
@@ -781,10 +782,11 @@
781 writeln "\$(OBJDIR)/json.o \$(OBJDIR)/json_artifact.o \$(OBJDIR)/json_branch.o \$(OBJDIR)/json_config.o \$(OBJDIR)/json_diff.o \$(OBJDIR)/json_dir.o \$(OBJDIR)/jsos_finfo.o \$(OBJDIR)/json_login.o \$(OBJDIR)/json_query.o \$(OBJDIR)/json_report.o \$(OBJDIR)/json_status.o \$(OBJDIR)/json_tag.o \$(OBJDIR)/json_timeline.o \$(OBJDIR)/json_user.o \$(OBJDIR)/json_wiki.o : \$(SRCDIR)/json_detail.h\n"
782
783 writeln "\$(OBJDIR)/shell.o:\t\$(SRCDIR)/shell.c \$(SRCDIR)/sqlite3.h"
784 set opt {-Dmain=sqlite3_shell}
785 append opt " -DSQLITE_OMIT_LOAD_EXTENSION=1"
 
786 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/shell.c -o \$(OBJDIR)/shell.o\n"
787
788 writeln "\$(OBJDIR)/th.o:\t\$(SRCDIR)/th.c"
789 writeln "\t\$(XTCC) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
790
791
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -771,10 +771,11 @@
771 }
772
773
774 writeln "\$(OBJDIR)/sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
775 set opt $SQLITE_OPTIONS
776 append opt " -D_HAVE_SQLITE_CONFIG_H"
777 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
778
779 set opt {}
780 writeln "\$(OBJDIR)/cson_amalgamation.o:\t\$(SRCDIR)/cson_amalgamation.c"
781 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/cson_amalgamation.c -o \$(OBJDIR)/cson_amalgamation.o\n"
@@ -781,10 +782,11 @@
782 writeln "\$(OBJDIR)/json.o \$(OBJDIR)/json_artifact.o \$(OBJDIR)/json_branch.o \$(OBJDIR)/json_config.o \$(OBJDIR)/json_diff.o \$(OBJDIR)/json_dir.o \$(OBJDIR)/jsos_finfo.o \$(OBJDIR)/json_login.o \$(OBJDIR)/json_query.o \$(OBJDIR)/json_report.o \$(OBJDIR)/json_status.o \$(OBJDIR)/json_tag.o \$(OBJDIR)/json_timeline.o \$(OBJDIR)/json_user.o \$(OBJDIR)/json_wiki.o : \$(SRCDIR)/json_detail.h\n"
783
784 writeln "\$(OBJDIR)/shell.o:\t\$(SRCDIR)/shell.c \$(SRCDIR)/sqlite3.h"
785 set opt {-Dmain=sqlite3_shell}
786 append opt " -DSQLITE_OMIT_LOAD_EXTENSION=1"
787 append opt " -D_HAVE_SQLITE_CONFIG_H"
788 writeln "\t\$(XTCC) $opt -c \$(SRCDIR)/shell.c -o \$(OBJDIR)/shell.o\n"
789
790 writeln "\$(OBJDIR)/th.o:\t\$(SRCDIR)/th.c"
791 writeln "\t\$(XTCC) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
792
793
+1
--- src/md5.c
+++ src/md5.c
@@ -16,10 +16,11 @@
1616
* To compute the message digest of a chunk of bytes, declare an
1717
* MD5Context structure, pass it to MD5Init, call MD5Update as
1818
* needed on buffers full of bytes, and then call MD5Final, which
1919
* will fill a supplied 16-byte array with the digest.
2020
*/
21
+#include "config.h"
2122
#include <string.h>
2223
#include <stdio.h>
2324
#include <sqlite3.h>
2425
#include "md5.h"
2526
2627
--- src/md5.c
+++ src/md5.c
@@ -16,10 +16,11 @@
16 * To compute the message digest of a chunk of bytes, declare an
17 * MD5Context structure, pass it to MD5Init, call MD5Update as
18 * needed on buffers full of bytes, and then call MD5Final, which
19 * will fill a supplied 16-byte array with the digest.
20 */
 
21 #include <string.h>
22 #include <stdio.h>
23 #include <sqlite3.h>
24 #include "md5.h"
25
26
--- src/md5.c
+++ src/md5.c
@@ -16,10 +16,11 @@
16 * To compute the message digest of a chunk of bytes, declare an
17 * MD5Context structure, pass it to MD5Init, call MD5Update as
18 * needed on buffers full of bytes, and then call MD5Final, which
19 * will fill a supplied 16-byte array with the digest.
20 */
21 #include "config.h"
22 #include <string.h>
23 #include <stdio.h>
24 #include <sqlite3.h>
25 #include "md5.h"
26
27
+1 -1
--- src/setup.c
+++ src/setup.c
@@ -15,12 +15,12 @@
1515
**
1616
*******************************************************************************
1717
**
1818
** Implementation of the Setup page
1919
*/
20
-#include <assert.h>
2120
#include "config.h"
21
+#include <assert.h>
2222
#include "setup.h"
2323
2424
/*
2525
** The table of web pages supported by this application is generated
2626
** automatically by the "mkindex" program and written into a file
2727
--- src/setup.c
+++ src/setup.c
@@ -15,12 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** Implementation of the Setup page
19 */
20 #include <assert.h>
21 #include "config.h"
 
22 #include "setup.h"
23
24 /*
25 ** The table of web pages supported by this application is generated
26 ** automatically by the "mkindex" program and written into a file
27
--- src/setup.c
+++ src/setup.c
@@ -15,12 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** Implementation of the Setup page
19 */
 
20 #include "config.h"
21 #include <assert.h>
22 #include "setup.h"
23
24 /*
25 ** The table of web pages supported by this application is generated
26 ** automatically by the "mkindex" program and written into a file
27
+1 -1
--- src/sha1.c
+++ src/sha1.c
@@ -1,10 +1,10 @@
11
/*
22
** This implementation of SHA1.
33
*/
4
-#include <sys/types.h>
54
#include "config.h"
5
+#include <sys/types.h>
66
#include "sha1.h"
77
88
99
/*
1010
** The SHA1 implementation below is adapted from:
1111
--- src/sha1.c
+++ src/sha1.c
@@ -1,10 +1,10 @@
1 /*
2 ** This implementation of SHA1.
3 */
4 #include <sys/types.h>
5 #include "config.h"
 
6 #include "sha1.h"
7
8
9 /*
10 ** The SHA1 implementation below is adapted from:
11
--- src/sha1.c
+++ src/sha1.c
@@ -1,10 +1,10 @@
1 /*
2 ** This implementation of SHA1.
3 */
 
4 #include "config.h"
5 #include <sys/types.h>
6 #include "sha1.h"
7
8
9 /*
10 ** The SHA1 implementation below is adapted from:
11
+1 -1
--- src/skins.c
+++ src/skins.c
@@ -15,12 +15,12 @@
1515
**
1616
*******************************************************************************
1717
**
1818
** Implementation of the Setup page for "skins".
1919
*/
20
-#include <assert.h>
2120
#include "config.h"
21
+#include <assert.h>
2222
#include "skins.h"
2323
2424
/* @-comment: ## */
2525
/*
2626
** A black-and-white theme with the project title in a bar across the top
2727
--- src/skins.c
+++ src/skins.c
@@ -15,12 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** Implementation of the Setup page for "skins".
19 */
20 #include <assert.h>
21 #include "config.h"
 
22 #include "skins.h"
23
24 /* @-comment: ## */
25 /*
26 ** A black-and-white theme with the project title in a bar across the top
27
--- src/skins.c
+++ src/skins.c
@@ -15,12 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** Implementation of the Setup page for "skins".
19 */
 
20 #include "config.h"
21 #include <assert.h>
22 #include "skins.h"
23
24 /* @-comment: ## */
25 /*
26 ** A black-and-white theme with the project title in a bar across the top
27
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -16,12 +16,12 @@
1616
*******************************************************************************
1717
**
1818
** This file contains code to implement the stat web page
1919
**
2020
*/
21
-#include <string.h>
2221
#include "config.h"
22
+#include <string.h>
2323
#include "stat.h"
2424
2525
/*
2626
** For a sufficiently large integer, provide an alternative
2727
** representation as MB or GB or TB.
2828
--- src/stat.c
+++ src/stat.c
@@ -16,12 +16,12 @@
16 *******************************************************************************
17 **
18 ** This file contains code to implement the stat web page
19 **
20 */
21 #include <string.h>
22 #include "config.h"
 
23 #include "stat.h"
24
25 /*
26 ** For a sufficiently large integer, provide an alternative
27 ** representation as MB or GB or TB.
28
--- src/stat.c
+++ src/stat.c
@@ -16,12 +16,12 @@
16 *******************************************************************************
17 **
18 ** This file contains code to implement the stat web page
19 **
20 */
 
21 #include "config.h"
22 #include <string.h>
23 #include "stat.h"
24
25 /*
26 ** For a sufficiently large integer, provide an alternative
27 ** representation as MB or GB or TB.
28
+1 -1
--- src/tar.c
+++ src/tar.c
@@ -15,13 +15,13 @@
1515
**
1616
*******************************************************************************
1717
**
1818
** This file contains code used to generate tarballs.
1919
*/
20
+#include "config.h"
2021
#include <assert.h>
2122
#include <zlib.h>
22
-#include "config.h"
2323
#include "tar.h"
2424
2525
/*
2626
** State information for the tarball builder.
2727
*/
2828
--- src/tar.c
+++ src/tar.c
@@ -15,13 +15,13 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains code used to generate tarballs.
19 */
 
20 #include <assert.h>
21 #include <zlib.h>
22 #include "config.h"
23 #include "tar.h"
24
25 /*
26 ** State information for the tarball builder.
27 */
28
--- src/tar.c
+++ src/tar.c
@@ -15,13 +15,13 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains code used to generate tarballs.
19 */
20 #include "config.h"
21 #include <assert.h>
22 #include <zlib.h>
 
23 #include "tar.h"
24
25 /*
26 ** State information for the tarball builder.
27 */
28
+1 -1
--- src/th.c
+++ src/th.c
@@ -2,10 +2,11 @@
22
/*
33
** The implementation of the TH core. This file contains the parser, and
44
** the implementation of the interface in th.h.
55
*/
66
7
+#include "config.h"
78
#include "th.h"
89
#include <string.h>
910
#include <assert.h>
1011
1112
typedef struct Th_Command Th_Command;
@@ -2354,11 +2355,10 @@
23542355
}
23552356
23562357
#ifndef LONGDOUBLE_TYPE
23572358
# define LONGDOUBLE_TYPE long double
23582359
#endif
2359
-typedef char u8;
23602360
23612361
23622362
/*
23632363
** Return TRUE if z is a pure numeric string. Return FALSE if the
23642364
** string contains any character which is not part of a number. If
23652365
--- src/th.c
+++ src/th.c
@@ -2,10 +2,11 @@
2 /*
3 ** The implementation of the TH core. This file contains the parser, and
4 ** the implementation of the interface in th.h.
5 */
6
 
7 #include "th.h"
8 #include <string.h>
9 #include <assert.h>
10
11 typedef struct Th_Command Th_Command;
@@ -2354,11 +2355,10 @@
2354 }
2355
2356 #ifndef LONGDOUBLE_TYPE
2357 # define LONGDOUBLE_TYPE long double
2358 #endif
2359 typedef char u8;
2360
2361
2362 /*
2363 ** Return TRUE if z is a pure numeric string. Return FALSE if the
2364 ** string contains any character which is not part of a number. If
2365
--- src/th.c
+++ src/th.c
@@ -2,10 +2,11 @@
2 /*
3 ** The implementation of the TH core. This file contains the parser, and
4 ** the implementation of the interface in th.h.
5 */
6
7 #include "config.h"
8 #include "th.h"
9 #include <string.h>
10 #include <assert.h>
11
12 typedef struct Th_Command Th_Command;
@@ -2354,11 +2355,10 @@
2355 }
2356
2357 #ifndef LONGDOUBLE_TYPE
2358 # define LONGDOUBLE_TYPE long double
2359 #endif
 
2360
2361
2362 /*
2363 ** Return TRUE if z is a pure numeric string. Return FALSE if the
2364 ** string contains any character which is not part of a number. If
2365
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -16,13 +16,13 @@
1616
*******************************************************************************
1717
**
1818
** This file contains code to implement the timeline web page
1919
**
2020
*/
21
+#include "config.h"
2122
#include <string.h>
2223
#include <time.h>
23
-#include "config.h"
2424
#include "timeline.h"
2525
2626
/*
2727
** Shorten a UUID so that is the minimum length needed to contain
2828
** at least one digit in the range 'a'..'f'. The minimum length is 10.
2929
--- src/timeline.c
+++ src/timeline.c
@@ -16,13 +16,13 @@
16 *******************************************************************************
17 **
18 ** This file contains code to implement the timeline web page
19 **
20 */
 
21 #include <string.h>
22 #include <time.h>
23 #include "config.h"
24 #include "timeline.h"
25
26 /*
27 ** Shorten a UUID so that is the minimum length needed to contain
28 ** at least one digit in the range 'a'..'f'. The minimum length is 10.
29
--- src/timeline.c
+++ src/timeline.c
@@ -16,13 +16,13 @@
16 *******************************************************************************
17 **
18 ** This file contains code to implement the timeline web page
19 **
20 */
21 #include "config.h"
22 #include <string.h>
23 #include <time.h>
 
24 #include "timeline.h"
25
26 /*
27 ** Shorten a UUID so that is the minimum length needed to contain
28 ** at least one digit in the range 'a'..'f'. The minimum length is 10.
29
+1 -1
--- src/wiki.c
+++ src/wiki.c
@@ -16,13 +16,13 @@
1616
**
1717
*******************************************************************************
1818
**
1919
** This file contains code to do formatting of wiki text.
2020
*/
21
+#include "config.h"
2122
#include <assert.h>
2223
#include <ctype.h>
23
-#include "config.h"
2424
#include "wiki.h"
2525
2626
/*
2727
** Return true if the input string is a well-formed wiki page name.
2828
**
2929
--- src/wiki.c
+++ src/wiki.c
@@ -16,13 +16,13 @@
16 **
17 *******************************************************************************
18 **
19 ** This file contains code to do formatting of wiki text.
20 */
 
21 #include <assert.h>
22 #include <ctype.h>
23 #include "config.h"
24 #include "wiki.h"
25
26 /*
27 ** Return true if the input string is a well-formed wiki page name.
28 **
29
--- src/wiki.c
+++ src/wiki.c
@@ -16,13 +16,13 @@
16 **
17 *******************************************************************************
18 **
19 ** This file contains code to do formatting of wiki text.
20 */
21 #include "config.h"
22 #include <assert.h>
23 #include <ctype.h>
 
24 #include "wiki.h"
25
26 /*
27 ** Return true if the input string is a well-formed wiki page name.
28 **
29
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -15,12 +15,12 @@
1515
**
1616
*******************************************************************************
1717
**
1818
** This file contains code to do formatting of wiki text.
1919
*/
20
-#include <assert.h>
2120
#include "config.h"
21
+#include <assert.h>
2222
#include "wikiformat.h"
2323
2424
#if INTERFACE
2525
/*
2626
** Allowed wiki transformation operations
2727
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -15,12 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains code to do formatting of wiki text.
19 */
20 #include <assert.h>
21 #include "config.h"
 
22 #include "wikiformat.h"
23
24 #if INTERFACE
25 /*
26 ** Allowed wiki transformation operations
27
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -15,12 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains code to do formatting of wiki text.
19 */
 
20 #include "config.h"
21 #include <assert.h>
22 #include "wikiformat.h"
23
24 #if INTERFACE
25 /*
26 ** Allowed wiki transformation operations
27
+1 -1
--- src/wysiwyg.c
+++ src/wysiwyg.c
@@ -16,13 +16,13 @@
1616
*******************************************************************************
1717
**
1818
** This file contains code that generates WYSIWYG text editors on
1919
** web pages.
2020
*/
21
+#include "config.h"
2122
#include <assert.h>
2223
#include <ctype.h>
23
-#include "config.h"
2424
#include "wysiwyg.h"
2525
2626
2727
/*
2828
** Output code for a WYSIWYG editor. The caller must have already generated
2929
--- src/wysiwyg.c
+++ src/wysiwyg.c
@@ -16,13 +16,13 @@
16 *******************************************************************************
17 **
18 ** This file contains code that generates WYSIWYG text editors on
19 ** web pages.
20 */
 
21 #include <assert.h>
22 #include <ctype.h>
23 #include "config.h"
24 #include "wysiwyg.h"
25
26
27 /*
28 ** Output code for a WYSIWYG editor. The caller must have already generated
29
--- src/wysiwyg.c
+++ src/wysiwyg.c
@@ -16,13 +16,13 @@
16 *******************************************************************************
17 **
18 ** This file contains code that generates WYSIWYG text editors on
19 ** web pages.
20 */
21 #include "config.h"
22 #include <assert.h>
23 #include <ctype.h>
 
24 #include "wysiwyg.h"
25
26
27 /*
28 ** Output code for a WYSIWYG editor. The caller must have already generated
29
+1 -1
--- src/zip.c
+++ src/zip.c
@@ -15,13 +15,13 @@
1515
**
1616
*******************************************************************************
1717
**
1818
** This file contains code used to generate ZIP archives.
1919
*/
20
+#include "config.h"
2021
#include <assert.h>
2122
#include <zlib.h>
22
-#include "config.h"
2323
#include "zip.h"
2424
2525
/*
2626
** Write a 16- or 32-bit integer as little-endian into the given buffer.
2727
*/
2828
--- src/zip.c
+++ src/zip.c
@@ -15,13 +15,13 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains code used to generate ZIP archives.
19 */
 
20 #include <assert.h>
21 #include <zlib.h>
22 #include "config.h"
23 #include "zip.h"
24
25 /*
26 ** Write a 16- or 32-bit integer as little-endian into the given buffer.
27 */
28
--- src/zip.c
+++ src/zip.c
@@ -15,13 +15,13 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains code used to generate ZIP archives.
19 */
20 #include "config.h"
21 #include <assert.h>
22 #include <zlib.h>
 
23 #include "zip.h"
24
25 /*
26 ** Write a 16- or 32-bit integer as little-endian into the given buffer.
27 */
28
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -1685,19 +1685,19 @@
16851685
$(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
16861686
16871687
$(OBJDIR)/zip.h: $(OBJDIR)/headers
16881688
16891689
$(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1690
- $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1690
+ $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
16911691
16921692
$(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
16931693
$(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o
16941694
16951695
$(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_config.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_dir.o $(OBJDIR)/jsos_finfo.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_status.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
16961696
16971697
$(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1698
- $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1698
+ $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
16991699
17001700
$(OBJDIR)/th.o: $(SRCDIR)/th.c
17011701
$(XTCC) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
17021702
17031703
$(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
17041704
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -1685,19 +1685,19 @@
1685 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1686
1687 $(OBJDIR)/zip.h: $(OBJDIR)/headers
1688
1689 $(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1690 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1691
1692 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1693 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o
1694
1695 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_config.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_dir.o $(OBJDIR)/jsos_finfo.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_status.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
1696
1697 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1698 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1699
1700 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1701 $(XTCC) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
1702
1703 $(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
1704
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -1685,19 +1685,19 @@
1685 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1686
1687 $(OBJDIR)/zip.h: $(OBJDIR)/headers
1688
1689 $(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1690 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1691
1692 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1693 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o
1694
1695 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_config.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_dir.o $(OBJDIR)/jsos_finfo.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_status.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
1696
1697 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1698 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1699
1700 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1701 $(XTCC) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
1702
1703 $(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
1704
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -1685,19 +1685,19 @@
16851685
$(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
16861686
16871687
$(OBJDIR)/zip.h: $(OBJDIR)/headers
16881688
16891689
$(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1690
- $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1690
+ $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
16911691
16921692
$(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
16931693
$(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o
16941694
16951695
$(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_config.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_dir.o $(OBJDIR)/jsos_finfo.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_status.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
16961696
16971697
$(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1698
- $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1698
+ $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
16991699
17001700
$(OBJDIR)/th.o: $(SRCDIR)/th.c
17011701
$(XTCC) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
17021702
17031703
$(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
17041704
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -1685,19 +1685,19 @@
1685 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1686
1687 $(OBJDIR)/zip.h: $(OBJDIR)/headers
1688
1689 $(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1690 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1691
1692 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1693 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o
1694
1695 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_config.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_dir.o $(OBJDIR)/jsos_finfo.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_status.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
1696
1697 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1698 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1699
1700 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1701 $(XTCC) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
1702
1703 $(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
1704
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -1685,19 +1685,19 @@
1685 $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c
1686
1687 $(OBJDIR)/zip.h: $(OBJDIR)/headers
1688
1689 $(OBJDIR)/sqlite3.o: $(SRCDIR)/sqlite3.c
1690 $(XTCC) -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_STAT3 -Dlocaltime=fossil_localtime -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WIN32_NO_ANSI -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/sqlite3.c -o $(OBJDIR)/sqlite3.o
1691
1692 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR)/cson_amalgamation.c
1693 $(XTCC) -c $(SRCDIR)/cson_amalgamation.c -o $(OBJDIR)/cson_amalgamation.o
1694
1695 $(OBJDIR)/json.o $(OBJDIR)/json_artifact.o $(OBJDIR)/json_branch.o $(OBJDIR)/json_config.o $(OBJDIR)/json_diff.o $(OBJDIR)/json_dir.o $(OBJDIR)/jsos_finfo.o $(OBJDIR)/json_login.o $(OBJDIR)/json_query.o $(OBJDIR)/json_report.o $(OBJDIR)/json_status.o $(OBJDIR)/json_tag.o $(OBJDIR)/json_timeline.o $(OBJDIR)/json_user.o $(OBJDIR)/json_wiki.o : $(SRCDIR)/json_detail.h
1696
1697 $(OBJDIR)/shell.o: $(SRCDIR)/shell.c $(SRCDIR)/sqlite3.h
1698 $(XTCC) -Dmain=sqlite3_shell -DSQLITE_OMIT_LOAD_EXTENSION=1 -D_HAVE_SQLITE_CONFIG_H -c $(SRCDIR)/shell.c -o $(OBJDIR)/shell.o
1699
1700 $(OBJDIR)/th.o: $(SRCDIR)/th.c
1701 $(XTCC) -c $(SRCDIR)/th.c -o $(OBJDIR)/th.o
1702
1703 $(OBJDIR)/th_lang.o: $(SRCDIR)/th_lang.c
1704
--- win/fossil.rc
+++ win/fossil.rc
@@ -15,10 +15,12 @@
1515
**
1616
*******************************************************************************
1717
**
1818
** This file contains resource information for the executable on Windows.
1919
*/
20
+
21
+#undef _USE_32BIT_TIME_T
2022
2123
#if !defined(_WIN32_WCE)
2224
#include "winresrc.h"
2325
#else
2426
#include "windows.h"
2527
--- win/fossil.rc
+++ win/fossil.rc
@@ -15,10 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains resource information for the executable on Windows.
19 */
 
 
20
21 #if !defined(_WIN32_WCE)
22 #include "winresrc.h"
23 #else
24 #include "windows.h"
25
--- win/fossil.rc
+++ win/fossil.rc
@@ -15,10 +15,12 @@
15 **
16 *******************************************************************************
17 **
18 ** This file contains resource information for the executable on Windows.
19 */
20
21 #undef _USE_32BIT_TIME_T
22
23 #if !defined(_WIN32_WCE)
24 #include "winresrc.h"
25 #else
26 #include "windows.h"
27

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button