Fossil SCM
Use the hardened SHA1 implemenation by Marc Stevens and Dan Shumow.
Commit
7c29bffcadc44f0ddbfb90b559921f34f3ec108d
Parent
537ab8868e5e32a…
10 files changed
+6
+3
+12
+6
-1
+1
+56
-4
+1
+10
-4
+12
+10
+6
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -38,10 +38,15 @@ | ||
| 38 | 38 | #endif |
| 39 | 39 | |
| 40 | 40 | #ifdef HAVE_AUTOCONFIG_H |
| 41 | 41 | #include "autoconfig.h" |
| 42 | 42 | #endif |
| 43 | + | |
| 44 | +/* Enable the hardened SHA1 implemenation by default */ | |
| 45 | +#ifndef FOSSIL_HARDENED_SHA1 | |
| 46 | +# define FOSSIL_HARDENED_SHA1 1 | |
| 47 | +#endif | |
| 43 | 48 | |
| 44 | 49 | #ifndef _RC_COMPILE_ |
| 45 | 50 | |
| 46 | 51 | /* |
| 47 | 52 | ** System header files used by all modules |
| @@ -168,10 +173,11 @@ | ||
| 168 | 173 | # endif |
| 169 | 174 | #endif |
| 170 | 175 | |
| 171 | 176 | #if !defined(_RC_COMPILE_) && !defined(SQLITE_AMALGAMATION) |
| 172 | 177 | |
| 178 | +#include <stdint.h> | |
| 173 | 179 | #include "sqlite3.h" |
| 174 | 180 | |
| 175 | 181 | /* |
| 176 | 182 | ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. |
| 177 | 183 | */ |
| 178 | 184 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -38,10 +38,15 @@ | |
| 38 | #endif |
| 39 | |
| 40 | #ifdef HAVE_AUTOCONFIG_H |
| 41 | #include "autoconfig.h" |
| 42 | #endif |
| 43 | |
| 44 | #ifndef _RC_COMPILE_ |
| 45 | |
| 46 | /* |
| 47 | ** System header files used by all modules |
| @@ -168,10 +173,11 @@ | |
| 168 | # endif |
| 169 | #endif |
| 170 | |
| 171 | #if !defined(_RC_COMPILE_) && !defined(SQLITE_AMALGAMATION) |
| 172 | |
| 173 | #include "sqlite3.h" |
| 174 | |
| 175 | /* |
| 176 | ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. |
| 177 | */ |
| 178 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -38,10 +38,15 @@ | |
| 38 | #endif |
| 39 | |
| 40 | #ifdef HAVE_AUTOCONFIG_H |
| 41 | #include "autoconfig.h" |
| 42 | #endif |
| 43 | |
| 44 | /* Enable the hardened SHA1 implemenation by default */ |
| 45 | #ifndef FOSSIL_HARDENED_SHA1 |
| 46 | # define FOSSIL_HARDENED_SHA1 1 |
| 47 | #endif |
| 48 | |
| 49 | #ifndef _RC_COMPILE_ |
| 50 | |
| 51 | /* |
| 52 | ** System header files used by all modules |
| @@ -168,10 +173,11 @@ | |
| 173 | # endif |
| 174 | #endif |
| 175 | |
| 176 | #if !defined(_RC_COMPILE_) && !defined(SQLITE_AMALGAMATION) |
| 177 | |
| 178 | #include <stdint.h> |
| 179 | #include "sqlite3.h" |
| 180 | |
| 181 | /* |
| 182 | ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. |
| 183 | */ |
| 184 |
+3
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -935,10 +935,13 @@ | ||
| 935 | 935 | #if defined(FOSSIL_ENABLE_MINIZ) |
| 936 | 936 | blob_appendf(pOut, "miniz %s, loaded %s\n", MZ_VERSION, mz_version()); |
| 937 | 937 | #else |
| 938 | 938 | blob_appendf(pOut, "zlib %s, loaded %s\n", ZLIB_VERSION, zlibVersion()); |
| 939 | 939 | #endif |
| 940 | +#if FOSSIL_HARDENED_SHA1 | |
| 941 | + blob_appendf(pOut, "hardened-SHA1 by Marc Stevens and Dan Shumow\n"); | |
| 942 | +#endif | |
| 940 | 943 | #if defined(FOSSIL_ENABLE_SSL) |
| 941 | 944 | blob_appendf(pOut, "SSL (%s)\n", SSLeay_version(SSLEAY_VERSION)); |
| 942 | 945 | #endif |
| 943 | 946 | #if defined(FOSSIL_HAVE_FUSEFS) |
| 944 | 947 | blob_appendf(pOut, "libfuse %s, loaded %s\n", fusefs_inc_version(), |
| 945 | 948 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -935,10 +935,13 @@ | |
| 935 | #if defined(FOSSIL_ENABLE_MINIZ) |
| 936 | blob_appendf(pOut, "miniz %s, loaded %s\n", MZ_VERSION, mz_version()); |
| 937 | #else |
| 938 | blob_appendf(pOut, "zlib %s, loaded %s\n", ZLIB_VERSION, zlibVersion()); |
| 939 | #endif |
| 940 | #if defined(FOSSIL_ENABLE_SSL) |
| 941 | blob_appendf(pOut, "SSL (%s)\n", SSLeay_version(SSLEAY_VERSION)); |
| 942 | #endif |
| 943 | #if defined(FOSSIL_HAVE_FUSEFS) |
| 944 | blob_appendf(pOut, "libfuse %s, loaded %s\n", fusefs_inc_version(), |
| 945 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -935,10 +935,13 @@ | |
| 935 | #if defined(FOSSIL_ENABLE_MINIZ) |
| 936 | blob_appendf(pOut, "miniz %s, loaded %s\n", MZ_VERSION, mz_version()); |
| 937 | #else |
| 938 | blob_appendf(pOut, "zlib %s, loaded %s\n", ZLIB_VERSION, zlibVersion()); |
| 939 | #endif |
| 940 | #if FOSSIL_HARDENED_SHA1 |
| 941 | blob_appendf(pOut, "hardened-SHA1 by Marc Stevens and Dan Shumow\n"); |
| 942 | #endif |
| 943 | #if defined(FOSSIL_ENABLE_SSL) |
| 944 | blob_appendf(pOut, "SSL (%s)\n", SSLeay_version(SSLEAY_VERSION)); |
| 945 | #endif |
| 946 | #if defined(FOSSIL_HAVE_FUSEFS) |
| 947 | blob_appendf(pOut, "libfuse %s, loaded %s\n", fusefs_inc_version(), |
| 948 |
+12
| --- src/main.mk | ||
| +++ src/main.mk | ||
| @@ -103,10 +103,11 @@ | ||
| 103 | 103 | $(SRCDIR)/rss.c \ |
| 104 | 104 | $(SRCDIR)/schema.c \ |
| 105 | 105 | $(SRCDIR)/search.c \ |
| 106 | 106 | $(SRCDIR)/setup.c \ |
| 107 | 107 | $(SRCDIR)/sha1.c \ |
| 108 | + $(SRCDIR)/sha1hard.c \ | |
| 108 | 109 | $(SRCDIR)/sha3.c \ |
| 109 | 110 | $(SRCDIR)/shun.c \ |
| 110 | 111 | $(SRCDIR)/sitemap.c \ |
| 111 | 112 | $(SRCDIR)/skins.c \ |
| 112 | 113 | $(SRCDIR)/sqlcmd.c \ |
| @@ -280,10 +281,11 @@ | ||
| 280 | 281 | $(OBJDIR)/rss_.c \ |
| 281 | 282 | $(OBJDIR)/schema_.c \ |
| 282 | 283 | $(OBJDIR)/search_.c \ |
| 283 | 284 | $(OBJDIR)/setup_.c \ |
| 284 | 285 | $(OBJDIR)/sha1_.c \ |
| 286 | + $(OBJDIR)/sha1hard_.c \ | |
| 285 | 287 | $(OBJDIR)/sha3_.c \ |
| 286 | 288 | $(OBJDIR)/shun_.c \ |
| 287 | 289 | $(OBJDIR)/sitemap_.c \ |
| 288 | 290 | $(OBJDIR)/skins_.c \ |
| 289 | 291 | $(OBJDIR)/sqlcmd_.c \ |
| @@ -406,10 +408,11 @@ | ||
| 406 | 408 | $(OBJDIR)/rss.o \ |
| 407 | 409 | $(OBJDIR)/schema.o \ |
| 408 | 410 | $(OBJDIR)/search.o \ |
| 409 | 411 | $(OBJDIR)/setup.o \ |
| 410 | 412 | $(OBJDIR)/sha1.o \ |
| 413 | + $(OBJDIR)/sha1hard.o \ | |
| 411 | 414 | $(OBJDIR)/sha3.o \ |
| 412 | 415 | $(OBJDIR)/shun.o \ |
| 413 | 416 | $(OBJDIR)/sitemap.o \ |
| 414 | 417 | $(OBJDIR)/skins.o \ |
| 415 | 418 | $(OBJDIR)/sqlcmd.o \ |
| @@ -693,10 +696,11 @@ | ||
| 693 | 696 | $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h \ |
| 694 | 697 | $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h \ |
| 695 | 698 | $(OBJDIR)/search_.c:$(OBJDIR)/search.h \ |
| 696 | 699 | $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h \ |
| 697 | 700 | $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h \ |
| 701 | + $(OBJDIR)/sha1hard_.c:$(OBJDIR)/sha1hard.h \ | |
| 698 | 702 | $(OBJDIR)/sha3_.c:$(OBJDIR)/sha3.h \ |
| 699 | 703 | $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h \ |
| 700 | 704 | $(OBJDIR)/sitemap_.c:$(OBJDIR)/sitemap.h \ |
| 701 | 705 | $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h \ |
| 702 | 706 | $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h \ |
| @@ -1453,10 +1457,18 @@ | ||
| 1453 | 1457 | |
| 1454 | 1458 | $(OBJDIR)/sha1.o: $(OBJDIR)/sha1_.c $(OBJDIR)/sha1.h $(SRCDIR)/config.h |
| 1455 | 1459 | $(XTCC) -o $(OBJDIR)/sha1.o -c $(OBJDIR)/sha1_.c |
| 1456 | 1460 | |
| 1457 | 1461 | $(OBJDIR)/sha1.h: $(OBJDIR)/headers |
| 1462 | + | |
| 1463 | +$(OBJDIR)/sha1hard_.c: $(SRCDIR)/sha1hard.c $(OBJDIR)/translate | |
| 1464 | + $(OBJDIR)/translate $(SRCDIR)/sha1hard.c >$@ | |
| 1465 | + | |
| 1466 | +$(OBJDIR)/sha1hard.o: $(OBJDIR)/sha1hard_.c $(OBJDIR)/sha1hard.h $(SRCDIR)/config.h | |
| 1467 | + $(XTCC) -o $(OBJDIR)/sha1hard.o -c $(OBJDIR)/sha1hard_.c | |
| 1468 | + | |
| 1469 | +$(OBJDIR)/sha1hard.h: $(OBJDIR)/headers | |
| 1458 | 1470 | |
| 1459 | 1471 | $(OBJDIR)/sha3_.c: $(SRCDIR)/sha3.c $(OBJDIR)/translate |
| 1460 | 1472 | $(OBJDIR)/translate $(SRCDIR)/sha3.c >$@ |
| 1461 | 1473 | |
| 1462 | 1474 | $(OBJDIR)/sha3.o: $(OBJDIR)/sha3_.c $(OBJDIR)/sha3.h $(SRCDIR)/config.h |
| 1463 | 1475 |
| --- src/main.mk | |
| +++ src/main.mk | |
| @@ -103,10 +103,11 @@ | |
| 103 | $(SRCDIR)/rss.c \ |
| 104 | $(SRCDIR)/schema.c \ |
| 105 | $(SRCDIR)/search.c \ |
| 106 | $(SRCDIR)/setup.c \ |
| 107 | $(SRCDIR)/sha1.c \ |
| 108 | $(SRCDIR)/sha3.c \ |
| 109 | $(SRCDIR)/shun.c \ |
| 110 | $(SRCDIR)/sitemap.c \ |
| 111 | $(SRCDIR)/skins.c \ |
| 112 | $(SRCDIR)/sqlcmd.c \ |
| @@ -280,10 +281,11 @@ | |
| 280 | $(OBJDIR)/rss_.c \ |
| 281 | $(OBJDIR)/schema_.c \ |
| 282 | $(OBJDIR)/search_.c \ |
| 283 | $(OBJDIR)/setup_.c \ |
| 284 | $(OBJDIR)/sha1_.c \ |
| 285 | $(OBJDIR)/sha3_.c \ |
| 286 | $(OBJDIR)/shun_.c \ |
| 287 | $(OBJDIR)/sitemap_.c \ |
| 288 | $(OBJDIR)/skins_.c \ |
| 289 | $(OBJDIR)/sqlcmd_.c \ |
| @@ -406,10 +408,11 @@ | |
| 406 | $(OBJDIR)/rss.o \ |
| 407 | $(OBJDIR)/schema.o \ |
| 408 | $(OBJDIR)/search.o \ |
| 409 | $(OBJDIR)/setup.o \ |
| 410 | $(OBJDIR)/sha1.o \ |
| 411 | $(OBJDIR)/sha3.o \ |
| 412 | $(OBJDIR)/shun.o \ |
| 413 | $(OBJDIR)/sitemap.o \ |
| 414 | $(OBJDIR)/skins.o \ |
| 415 | $(OBJDIR)/sqlcmd.o \ |
| @@ -693,10 +696,11 @@ | |
| 693 | $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h \ |
| 694 | $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h \ |
| 695 | $(OBJDIR)/search_.c:$(OBJDIR)/search.h \ |
| 696 | $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h \ |
| 697 | $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h \ |
| 698 | $(OBJDIR)/sha3_.c:$(OBJDIR)/sha3.h \ |
| 699 | $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h \ |
| 700 | $(OBJDIR)/sitemap_.c:$(OBJDIR)/sitemap.h \ |
| 701 | $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h \ |
| 702 | $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h \ |
| @@ -1453,10 +1457,18 @@ | |
| 1453 | |
| 1454 | $(OBJDIR)/sha1.o: $(OBJDIR)/sha1_.c $(OBJDIR)/sha1.h $(SRCDIR)/config.h |
| 1455 | $(XTCC) -o $(OBJDIR)/sha1.o -c $(OBJDIR)/sha1_.c |
| 1456 | |
| 1457 | $(OBJDIR)/sha1.h: $(OBJDIR)/headers |
| 1458 | |
| 1459 | $(OBJDIR)/sha3_.c: $(SRCDIR)/sha3.c $(OBJDIR)/translate |
| 1460 | $(OBJDIR)/translate $(SRCDIR)/sha3.c >$@ |
| 1461 | |
| 1462 | $(OBJDIR)/sha3.o: $(OBJDIR)/sha3_.c $(OBJDIR)/sha3.h $(SRCDIR)/config.h |
| 1463 |
| --- src/main.mk | |
| +++ src/main.mk | |
| @@ -103,10 +103,11 @@ | |
| 103 | $(SRCDIR)/rss.c \ |
| 104 | $(SRCDIR)/schema.c \ |
| 105 | $(SRCDIR)/search.c \ |
| 106 | $(SRCDIR)/setup.c \ |
| 107 | $(SRCDIR)/sha1.c \ |
| 108 | $(SRCDIR)/sha1hard.c \ |
| 109 | $(SRCDIR)/sha3.c \ |
| 110 | $(SRCDIR)/shun.c \ |
| 111 | $(SRCDIR)/sitemap.c \ |
| 112 | $(SRCDIR)/skins.c \ |
| 113 | $(SRCDIR)/sqlcmd.c \ |
| @@ -280,10 +281,11 @@ | |
| 281 | $(OBJDIR)/rss_.c \ |
| 282 | $(OBJDIR)/schema_.c \ |
| 283 | $(OBJDIR)/search_.c \ |
| 284 | $(OBJDIR)/setup_.c \ |
| 285 | $(OBJDIR)/sha1_.c \ |
| 286 | $(OBJDIR)/sha1hard_.c \ |
| 287 | $(OBJDIR)/sha3_.c \ |
| 288 | $(OBJDIR)/shun_.c \ |
| 289 | $(OBJDIR)/sitemap_.c \ |
| 290 | $(OBJDIR)/skins_.c \ |
| 291 | $(OBJDIR)/sqlcmd_.c \ |
| @@ -406,10 +408,11 @@ | |
| 408 | $(OBJDIR)/rss.o \ |
| 409 | $(OBJDIR)/schema.o \ |
| 410 | $(OBJDIR)/search.o \ |
| 411 | $(OBJDIR)/setup.o \ |
| 412 | $(OBJDIR)/sha1.o \ |
| 413 | $(OBJDIR)/sha1hard.o \ |
| 414 | $(OBJDIR)/sha3.o \ |
| 415 | $(OBJDIR)/shun.o \ |
| 416 | $(OBJDIR)/sitemap.o \ |
| 417 | $(OBJDIR)/skins.o \ |
| 418 | $(OBJDIR)/sqlcmd.o \ |
| @@ -693,10 +696,11 @@ | |
| 696 | $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h \ |
| 697 | $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h \ |
| 698 | $(OBJDIR)/search_.c:$(OBJDIR)/search.h \ |
| 699 | $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h \ |
| 700 | $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h \ |
| 701 | $(OBJDIR)/sha1hard_.c:$(OBJDIR)/sha1hard.h \ |
| 702 | $(OBJDIR)/sha3_.c:$(OBJDIR)/sha3.h \ |
| 703 | $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h \ |
| 704 | $(OBJDIR)/sitemap_.c:$(OBJDIR)/sitemap.h \ |
| 705 | $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h \ |
| 706 | $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h \ |
| @@ -1453,10 +1457,18 @@ | |
| 1457 | |
| 1458 | $(OBJDIR)/sha1.o: $(OBJDIR)/sha1_.c $(OBJDIR)/sha1.h $(SRCDIR)/config.h |
| 1459 | $(XTCC) -o $(OBJDIR)/sha1.o -c $(OBJDIR)/sha1_.c |
| 1460 | |
| 1461 | $(OBJDIR)/sha1.h: $(OBJDIR)/headers |
| 1462 | |
| 1463 | $(OBJDIR)/sha1hard_.c: $(SRCDIR)/sha1hard.c $(OBJDIR)/translate |
| 1464 | $(OBJDIR)/translate $(SRCDIR)/sha1hard.c >$@ |
| 1465 | |
| 1466 | $(OBJDIR)/sha1hard.o: $(OBJDIR)/sha1hard_.c $(OBJDIR)/sha1hard.h $(SRCDIR)/config.h |
| 1467 | $(XTCC) -o $(OBJDIR)/sha1hard.o -c $(OBJDIR)/sha1hard_.c |
| 1468 | |
| 1469 | $(OBJDIR)/sha1hard.h: $(OBJDIR)/headers |
| 1470 | |
| 1471 | $(OBJDIR)/sha3_.c: $(SRCDIR)/sha3.c $(OBJDIR)/translate |
| 1472 | $(OBJDIR)/translate $(SRCDIR)/sha3.c >$@ |
| 1473 | |
| 1474 | $(OBJDIR)/sha3.o: $(OBJDIR)/sha3_.c $(OBJDIR)/sha3.h $(SRCDIR)/config.h |
| 1475 |
+6
-1
| --- src/makeheaders.c | ||
| +++ src/makeheaders.c | ||
| @@ -1017,11 +1017,14 @@ | ||
| 1017 | 1017 | /* printf("%04d: Type=%d nIf=%d [%.*s]\n", |
| 1018 | 1018 | pToken->nLine,pToken->eType,nIf,pToken->nText, |
| 1019 | 1019 | pToken->eType!=TT_Space ? pToken->zText : "<space>"); */ |
| 1020 | 1020 | pToken->pComment = blockComment; |
| 1021 | 1021 | switch( pToken->eType ){ |
| 1022 | - case TT_Comment: | |
| 1022 | + case TT_Comment: /*0123456789 12345678 */ | |
| 1023 | + if( strncmp(pToken->zText, "/*MAKEHEADERS-STOP", 18)==0 ) return nErr; | |
| 1024 | + break; | |
| 1025 | + | |
| 1023 | 1026 | case TT_Space: |
| 1024 | 1027 | break; |
| 1025 | 1028 | |
| 1026 | 1029 | case TT_BlockComment: |
| 1027 | 1030 | if( doc_flag ){ |
| @@ -2181,10 +2184,12 @@ | ||
| 2181 | 2184 | if( nArg==9 && strncmp(zArg,"INTERFACE",9)==0 ){ |
| 2182 | 2185 | PushIfMacro(0,0,0,pToken->nLine,PS_Interface); |
| 2183 | 2186 | }else if( nArg==16 && strncmp(zArg,"EXPORT_INTERFACE",16)==0 ){ |
| 2184 | 2187 | PushIfMacro(0,0,0,pToken->nLine,PS_Export); |
| 2185 | 2188 | }else if( nArg==15 && strncmp(zArg,"LOCAL_INTERFACE",15)==0 ){ |
| 2189 | + PushIfMacro(0,0,0,pToken->nLine,PS_Local); | |
| 2190 | + }else if( nArg==15 && strncmp(zArg,"MAKEHEADERS_STOPLOCAL_INTERFACE",15)==0 ){ | |
| 2186 | 2191 | PushIfMacro(0,0,0,pToken->nLine,PS_Local); |
| 2187 | 2192 | }else{ |
| 2188 | 2193 | PushIfMacro(0,zArg,nArg,pToken->nLine,0); |
| 2189 | 2194 | } |
| 2190 | 2195 | }else if( nCmd==5 && strncmp(zCmd,"ifdef",5)==0 ){ |
| 2191 | 2196 |
| --- src/makeheaders.c | |
| +++ src/makeheaders.c | |
| @@ -1017,11 +1017,14 @@ | |
| 1017 | /* printf("%04d: Type=%d nIf=%d [%.*s]\n", |
| 1018 | pToken->nLine,pToken->eType,nIf,pToken->nText, |
| 1019 | pToken->eType!=TT_Space ? pToken->zText : "<space>"); */ |
| 1020 | pToken->pComment = blockComment; |
| 1021 | switch( pToken->eType ){ |
| 1022 | case TT_Comment: |
| 1023 | case TT_Space: |
| 1024 | break; |
| 1025 | |
| 1026 | case TT_BlockComment: |
| 1027 | if( doc_flag ){ |
| @@ -2181,10 +2184,12 @@ | |
| 2181 | if( nArg==9 && strncmp(zArg,"INTERFACE",9)==0 ){ |
| 2182 | PushIfMacro(0,0,0,pToken->nLine,PS_Interface); |
| 2183 | }else if( nArg==16 && strncmp(zArg,"EXPORT_INTERFACE",16)==0 ){ |
| 2184 | PushIfMacro(0,0,0,pToken->nLine,PS_Export); |
| 2185 | }else if( nArg==15 && strncmp(zArg,"LOCAL_INTERFACE",15)==0 ){ |
| 2186 | PushIfMacro(0,0,0,pToken->nLine,PS_Local); |
| 2187 | }else{ |
| 2188 | PushIfMacro(0,zArg,nArg,pToken->nLine,0); |
| 2189 | } |
| 2190 | }else if( nCmd==5 && strncmp(zCmd,"ifdef",5)==0 ){ |
| 2191 |
| --- src/makeheaders.c | |
| +++ src/makeheaders.c | |
| @@ -1017,11 +1017,14 @@ | |
| 1017 | /* printf("%04d: Type=%d nIf=%d [%.*s]\n", |
| 1018 | pToken->nLine,pToken->eType,nIf,pToken->nText, |
| 1019 | pToken->eType!=TT_Space ? pToken->zText : "<space>"); */ |
| 1020 | pToken->pComment = blockComment; |
| 1021 | switch( pToken->eType ){ |
| 1022 | case TT_Comment: /*0123456789 12345678 */ |
| 1023 | if( strncmp(pToken->zText, "/*MAKEHEADERS-STOP", 18)==0 ) return nErr; |
| 1024 | break; |
| 1025 | |
| 1026 | case TT_Space: |
| 1027 | break; |
| 1028 | |
| 1029 | case TT_BlockComment: |
| 1030 | if( doc_flag ){ |
| @@ -2181,10 +2184,12 @@ | |
| 2184 | if( nArg==9 && strncmp(zArg,"INTERFACE",9)==0 ){ |
| 2185 | PushIfMacro(0,0,0,pToken->nLine,PS_Interface); |
| 2186 | }else if( nArg==16 && strncmp(zArg,"EXPORT_INTERFACE",16)==0 ){ |
| 2187 | PushIfMacro(0,0,0,pToken->nLine,PS_Export); |
| 2188 | }else if( nArg==15 && strncmp(zArg,"LOCAL_INTERFACE",15)==0 ){ |
| 2189 | PushIfMacro(0,0,0,pToken->nLine,PS_Local); |
| 2190 | }else if( nArg==15 && strncmp(zArg,"MAKEHEADERS_STOPLOCAL_INTERFACE",15)==0 ){ |
| 2191 | PushIfMacro(0,0,0,pToken->nLine,PS_Local); |
| 2192 | }else{ |
| 2193 | PushIfMacro(0,zArg,nArg,pToken->nLine,0); |
| 2194 | } |
| 2195 | }else if( nCmd==5 && strncmp(zCmd,"ifdef",5)==0 ){ |
| 2196 |
+1
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -108,10 +108,11 @@ | ||
| 108 | 108 | rss |
| 109 | 109 | schema |
| 110 | 110 | search |
| 111 | 111 | setup |
| 112 | 112 | sha1 |
| 113 | + sha1hard | |
| 113 | 114 | sha3 |
| 114 | 115 | shun |
| 115 | 116 | sitemap |
| 116 | 117 | skins |
| 117 | 118 | sqlcmd |
| 118 | 119 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -108,10 +108,11 @@ | |
| 108 | rss |
| 109 | schema |
| 110 | search |
| 111 | setup |
| 112 | sha1 |
| 113 | sha3 |
| 114 | shun |
| 115 | sitemap |
| 116 | skins |
| 117 | sqlcmd |
| 118 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -108,10 +108,11 @@ | |
| 108 | rss |
| 109 | schema |
| 110 | search |
| 111 | setup |
| 112 | sha1 |
| 113 | sha1hard |
| 114 | sha3 |
| 115 | shun |
| 116 | sitemap |
| 117 | skins |
| 118 | sqlcmd |
| 119 |
+56
-4
| --- src/sha1.c | ||
| +++ src/sha1.c | ||
| @@ -17,22 +17,72 @@ | ||
| 17 | 17 | ** |
| 18 | 18 | ** This implementation of SHA1. |
| 19 | 19 | */ |
| 20 | 20 | #include "config.h" |
| 21 | 21 | #include <sys/types.h> |
| 22 | +#include <stdint.h> | |
| 22 | 23 | #include "sha1.h" |
| 23 | 24 | |
| 24 | -#ifdef FOSSIL_ENABLE_SSL | |
| 25 | + | |
| 26 | +/* | |
| 27 | +** SHA1 Implementation #1 is the hardened SHA1 implementation by | |
| 28 | +** Marc Stevens. Code obtained from GitHub | |
| 29 | +** | |
| 30 | +** https://github.com/cr-marcstevens/sha1collisiondetection | |
| 31 | +** | |
| 32 | +** Downloaded on 2017-03-01 then repackaged to work with Fossil | |
| 33 | +** and makeheaders. | |
| 34 | +*/ | |
| 35 | +#if FOSSIL_HARDENED_SHA1 | |
| 36 | + | |
| 37 | +#if INTERFACE | |
| 38 | +typedef void(*collision_block_callback)(uint64_t, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*); | |
| 39 | +struct SHA1_CTX { | |
| 40 | + uint64_t total; | |
| 41 | + uint32_t ihv[5]; | |
| 42 | + unsigned char buffer[64]; | |
| 43 | + int bigendian; | |
| 44 | + int found_collision; | |
| 45 | + int safe_hash; | |
| 46 | + int detect_coll; | |
| 47 | + int ubc_check; | |
| 48 | + int reduced_round_coll; | |
| 49 | + collision_block_callback callback; | |
| 50 | + | |
| 51 | + uint32_t ihv1[5]; | |
| 52 | + uint32_t ihv2[5]; | |
| 53 | + uint32_t m1[80]; | |
| 54 | + uint32_t m2[80]; | |
| 55 | + uint32_t states[80][5]; | |
| 56 | +}; | |
| 57 | +#endif | |
| 58 | +void SHA1DCInit(SHA1_CTX*); | |
| 59 | +void SHA1DCUpdate(SHA1_CTX*, const char*, unsigned); | |
| 60 | +int SHA1DCFinal(unsigned char[20], SHA1_CTX*); | |
| 61 | + | |
| 62 | +#define SHA1Context SHA1_CTX | |
| 63 | +#define SHA1Init SHA1DCInit | |
| 64 | +#define SHA1Update SHA1DCUpdate | |
| 65 | +#define SHA1Final SHA1DCFinal | |
| 66 | + | |
| 67 | +/* | |
| 68 | +** SHA1 Implemenatation #2: use the SHA1 algorithm built into SSL | |
| 69 | +*/ | |
| 70 | +#elif defined(FOSSIL_ENABLE_SSL) | |
| 25 | 71 | |
| 26 | 72 | # include <openssl/sha.h> |
| 27 | 73 | # define SHA1Context SHA_CTX |
| 28 | 74 | # define SHA1Init SHA1_Init |
| 29 | 75 | # define SHA1Update SHA1_Update |
| 30 | 76 | # define SHA1Final SHA1_Final |
| 31 | 77 | |
| 78 | +/* | |
| 79 | +** SHA1 Implemenatation #3: If none of the previous two SHA1 | |
| 80 | +** algorithms work, there is this built-in. This built-in was the | |
| 81 | +** original implementation used by Fossil. | |
| 82 | +*/ | |
| 32 | 83 | #else |
| 33 | - | |
| 34 | 84 | /* |
| 35 | 85 | ** The SHA1 implementation below is adapted from: |
| 36 | 86 | ** |
| 37 | 87 | ** $NetBSD: sha1.c,v 1.6 2009/11/06 20:31:18 joerg Exp $ |
| 38 | 88 | ** $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ |
| @@ -69,10 +119,13 @@ | ||
| 69 | 119 | /* Generic C equivalent */ |
| 70 | 120 | #define SHA_ROT(x,l,r) ((x) << (l) | (x) >> (r)) |
| 71 | 121 | #define rol(x,k) SHA_ROT(x,k,32-(k)) |
| 72 | 122 | #define ror(x,k) SHA_ROT(x,32-(k),k) |
| 73 | 123 | #endif |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 74 | 127 | |
| 75 | 128 | |
| 76 | 129 | #define blk0le(i) (block[i] = (ror(block[i],8)&0xFF00FF00) \ |
| 77 | 130 | |(rol(block[i],8)&0x00FF00FF)) |
| 78 | 131 | #define blk0be(i) block[i] |
| @@ -223,12 +276,11 @@ | ||
| 223 | 276 | for (i = 0; i < 20; i++) |
| 224 | 277 | digest[i] = (unsigned char) |
| 225 | 278 | ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255); |
| 226 | 279 | } |
| 227 | 280 | } |
| 228 | -#endif | |
| 229 | - | |
| 281 | +#endif /* Built-in SHA1 implemenation */ | |
| 230 | 282 | |
| 231 | 283 | /* |
| 232 | 284 | ** Convert a digest into base-16. digest should be declared as |
| 233 | 285 | ** "unsigned char digest[20]" in the calling function. The SHA1 |
| 234 | 286 | ** digest is stored in the first 20 bytes. zBuf should |
| 235 | 287 | |
| 236 | 288 | ADDED src/sha1hard.c |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -17,22 +17,72 @@ | |
| 17 | ** |
| 18 | ** This implementation of SHA1. |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include <sys/types.h> |
| 22 | #include "sha1.h" |
| 23 | |
| 24 | #ifdef FOSSIL_ENABLE_SSL |
| 25 | |
| 26 | # include <openssl/sha.h> |
| 27 | # define SHA1Context SHA_CTX |
| 28 | # define SHA1Init SHA1_Init |
| 29 | # define SHA1Update SHA1_Update |
| 30 | # define SHA1Final SHA1_Final |
| 31 | |
| 32 | #else |
| 33 | |
| 34 | /* |
| 35 | ** The SHA1 implementation below is adapted from: |
| 36 | ** |
| 37 | ** $NetBSD: sha1.c,v 1.6 2009/11/06 20:31:18 joerg Exp $ |
| 38 | ** $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ |
| @@ -69,10 +119,13 @@ | |
| 69 | /* Generic C equivalent */ |
| 70 | #define SHA_ROT(x,l,r) ((x) << (l) | (x) >> (r)) |
| 71 | #define rol(x,k) SHA_ROT(x,k,32-(k)) |
| 72 | #define ror(x,k) SHA_ROT(x,32-(k),k) |
| 73 | #endif |
| 74 | |
| 75 | |
| 76 | #define blk0le(i) (block[i] = (ror(block[i],8)&0xFF00FF00) \ |
| 77 | |(rol(block[i],8)&0x00FF00FF)) |
| 78 | #define blk0be(i) block[i] |
| @@ -223,12 +276,11 @@ | |
| 223 | for (i = 0; i < 20; i++) |
| 224 | digest[i] = (unsigned char) |
| 225 | ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255); |
| 226 | } |
| 227 | } |
| 228 | #endif |
| 229 | |
| 230 | |
| 231 | /* |
| 232 | ** Convert a digest into base-16. digest should be declared as |
| 233 | ** "unsigned char digest[20]" in the calling function. The SHA1 |
| 234 | ** digest is stored in the first 20 bytes. zBuf should |
| 235 | |
| 236 | DDED src/sha1hard.c |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -17,22 +17,72 @@ | |
| 17 | ** |
| 18 | ** This implementation of SHA1. |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include <sys/types.h> |
| 22 | #include <stdint.h> |
| 23 | #include "sha1.h" |
| 24 | |
| 25 | |
| 26 | /* |
| 27 | ** SHA1 Implementation #1 is the hardened SHA1 implementation by |
| 28 | ** Marc Stevens. Code obtained from GitHub |
| 29 | ** |
| 30 | ** https://github.com/cr-marcstevens/sha1collisiondetection |
| 31 | ** |
| 32 | ** Downloaded on 2017-03-01 then repackaged to work with Fossil |
| 33 | ** and makeheaders. |
| 34 | */ |
| 35 | #if FOSSIL_HARDENED_SHA1 |
| 36 | |
| 37 | #if INTERFACE |
| 38 | typedef void(*collision_block_callback)(uint64_t, const uint32_t*, const uint32_t*, const uint32_t*, const uint32_t*); |
| 39 | struct SHA1_CTX { |
| 40 | uint64_t total; |
| 41 | uint32_t ihv[5]; |
| 42 | unsigned char buffer[64]; |
| 43 | int bigendian; |
| 44 | int found_collision; |
| 45 | int safe_hash; |
| 46 | int detect_coll; |
| 47 | int ubc_check; |
| 48 | int reduced_round_coll; |
| 49 | collision_block_callback callback; |
| 50 | |
| 51 | uint32_t ihv1[5]; |
| 52 | uint32_t ihv2[5]; |
| 53 | uint32_t m1[80]; |
| 54 | uint32_t m2[80]; |
| 55 | uint32_t states[80][5]; |
| 56 | }; |
| 57 | #endif |
| 58 | void SHA1DCInit(SHA1_CTX*); |
| 59 | void SHA1DCUpdate(SHA1_CTX*, const char*, unsigned); |
| 60 | int SHA1DCFinal(unsigned char[20], SHA1_CTX*); |
| 61 | |
| 62 | #define SHA1Context SHA1_CTX |
| 63 | #define SHA1Init SHA1DCInit |
| 64 | #define SHA1Update SHA1DCUpdate |
| 65 | #define SHA1Final SHA1DCFinal |
| 66 | |
| 67 | /* |
| 68 | ** SHA1 Implemenatation #2: use the SHA1 algorithm built into SSL |
| 69 | */ |
| 70 | #elif defined(FOSSIL_ENABLE_SSL) |
| 71 | |
| 72 | # include <openssl/sha.h> |
| 73 | # define SHA1Context SHA_CTX |
| 74 | # define SHA1Init SHA1_Init |
| 75 | # define SHA1Update SHA1_Update |
| 76 | # define SHA1Final SHA1_Final |
| 77 | |
| 78 | /* |
| 79 | ** SHA1 Implemenatation #3: If none of the previous two SHA1 |
| 80 | ** algorithms work, there is this built-in. This built-in was the |
| 81 | ** original implementation used by Fossil. |
| 82 | */ |
| 83 | #else |
| 84 | /* |
| 85 | ** The SHA1 implementation below is adapted from: |
| 86 | ** |
| 87 | ** $NetBSD: sha1.c,v 1.6 2009/11/06 20:31:18 joerg Exp $ |
| 88 | ** $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ |
| @@ -69,10 +119,13 @@ | |
| 119 | /* Generic C equivalent */ |
| 120 | #define SHA_ROT(x,l,r) ((x) << (l) | (x) >> (r)) |
| 121 | #define rol(x,k) SHA_ROT(x,k,32-(k)) |
| 122 | #define ror(x,k) SHA_ROT(x,32-(k),k) |
| 123 | #endif |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | #define blk0le(i) (block[i] = (ror(block[i],8)&0xFF00FF00) \ |
| 130 | |(rol(block[i],8)&0x00FF00FF)) |
| 131 | #define blk0be(i) block[i] |
| @@ -223,12 +276,11 @@ | |
| 276 | for (i = 0; i < 20; i++) |
| 277 | digest[i] = (unsigned char) |
| 278 | ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255); |
| 279 | } |
| 280 | } |
| 281 | #endif /* Built-in SHA1 implemenation */ |
| 282 | |
| 283 | /* |
| 284 | ** Convert a digest into base-16. digest should be declared as |
| 285 | ** "unsigned char digest[20]" in the calling function. The SHA1 |
| 286 | ** digest is stored in the first 20 bytes. zBuf should |
| 287 | |
| 288 | DDED src/sha1hard.c |
+1
| --- a/src/sha1hard.c | ||
| +++ b/src/sha1hard.c | ||
| @@ -0,0 +1 @@ | ||
| 1 | +i (const char*)(sha1_padding)"config.h" |
| --- a/src/sha1hard.c | |
| +++ b/src/sha1hard.c | |
| @@ -0,0 +1 @@ | |
| --- a/src/sha1hard.c | |
| +++ b/src/sha1hard.c | |
| @@ -0,0 +1 @@ | |
| 1 | i (const char*)(sha1_padding)"config.h" |
+10
-4
| --- win/Makefile.dmc | ||
| +++ win/Makefile.dmc | ||
| @@ -28,13 +28,13 @@ | ||
| 28 | 28 | |
| 29 | 29 | SQLITE_OPTIONS = -DNDEBUG=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_USE_ALLOCA -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5 |
| 30 | 30 | |
| 31 | 31 | SHELL_OPTIONS = -Dmain=sqlite3_shell -DSQLITE_SHELL_IS_UTF8=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DUSE_SYSTEM_SQLITE=$(USE_SYSTEM_SQLITE) -DSQLITE_SHELL_DBNAME_PROC=fossil_open -Daccess=file_access -Dsystem=fossil_system -Dgetenv=fossil_getenv -Dfopen=fossil_fopen |
| 32 | 32 | |
| 33 | -SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c builtin_.c bundle_.c cache_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c dispatch_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c foci_.c fshell_.c fusefs_.c glob_.c graph_.c gzip_.c hname_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_config_.c json_diff_.c json_dir_.c json_finfo_.c json_login_.c json_query_.c json_report_.c json_status_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c loadctrl_.c login_.c lookslike_.c main_.c manifest_.c markdown_.c markdown_html_.c md5_.c merge_.c merge3_.c moderate_.c name_.c path_.c piechart_.c pivot_.c popen_.c pqueue_.c printf_.c publish_.c purge_.c rebuild_.c regexp_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c sha3_.c shun_.c sitemap_.c skins_.c sqlcmd_.c stash_.c stat_.c statrep_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c unicode_.c unversioned_.c update_.c url_.c user_.c utf8_.c util_.c verify_.c vfile_.c wiki_.c wikiformat_.c winfile_.c winhttp_.c wysiwyg_.c xfer_.c xfersetup_.c zip_.c | |
| 33 | +SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c builtin_.c bundle_.c cache_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c dispatch_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c foci_.c fshell_.c fusefs_.c glob_.c graph_.c gzip_.c hname_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_config_.c json_diff_.c json_dir_.c json_finfo_.c json_login_.c json_query_.c json_report_.c json_status_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c loadctrl_.c login_.c lookslike_.c main_.c manifest_.c markdown_.c markdown_html_.c md5_.c merge_.c merge3_.c moderate_.c name_.c path_.c piechart_.c pivot_.c popen_.c pqueue_.c printf_.c publish_.c purge_.c rebuild_.c regexp_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c sha1hard_.c sha3_.c shun_.c sitemap_.c skins_.c sqlcmd_.c stash_.c stat_.c statrep_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c unicode_.c unversioned_.c update_.c url_.c user_.c utf8_.c util_.c verify_.c vfile_.c wiki_.c wikiformat_.c winfile_.c winhttp_.c wysiwyg_.c xfer_.c xfersetup_.c zip_.c | |
| 34 | 34 | |
| 35 | -OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\builtin$O $(OBJDIR)\bundle$O $(OBJDIR)\cache$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\dispatch$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\foci$O $(OBJDIR)\fshell$O $(OBJDIR)\fusefs$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\hname$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_config$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_dir$O $(OBJDIR)\json_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 $(OBJDIR)\leaf$O $(OBJDIR)\loadctrl$O $(OBJDIR)\login$O $(OBJDIR)\lookslike$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\markdown$O $(OBJDIR)\markdown_html$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\moderate$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\piechart$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\publish$O $(OBJDIR)\purge$O $(OBJDIR)\rebuild$O $(OBJDIR)\regexp$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\sha3$O $(OBJDIR)\shun$O $(OBJDIR)\sitemap$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\statrep$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\unicode$O $(OBJDIR)\unversioned$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\utf8$O $(OBJDIR)\util$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winfile$O $(OBJDIR)\winhttp$O $(OBJDIR)\wysiwyg$O $(OBJDIR)\xfer$O $(OBJDIR)\xfersetup$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O | |
| 35 | +OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\builtin$O $(OBJDIR)\bundle$O $(OBJDIR)\cache$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\dispatch$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\foci$O $(OBJDIR)\fshell$O $(OBJDIR)\fusefs$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\hname$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_config$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_dir$O $(OBJDIR)\json_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 $(OBJDIR)\leaf$O $(OBJDIR)\loadctrl$O $(OBJDIR)\login$O $(OBJDIR)\lookslike$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\markdown$O $(OBJDIR)\markdown_html$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\moderate$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\piechart$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\publish$O $(OBJDIR)\purge$O $(OBJDIR)\rebuild$O $(OBJDIR)\regexp$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\sha1hard$O $(OBJDIR)\sha3$O $(OBJDIR)\shun$O $(OBJDIR)\sitemap$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\statrep$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\unicode$O $(OBJDIR)\unversioned$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\utf8$O $(OBJDIR)\util$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winfile$O $(OBJDIR)\winhttp$O $(OBJDIR)\wysiwyg$O $(OBJDIR)\xfer$O $(OBJDIR)\xfersetup$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O | |
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | RC=$(DMDIR)\bin\rcc |
| 39 | 39 | RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__ |
| 40 | 40 | |
| @@ -49,11 +49,11 @@ | ||
| 49 | 49 | |
| 50 | 50 | $(OBJDIR)\fossil.res: $B\win\fossil.rc |
| 51 | 51 | $(RC) $(RCFLAGS) -o$@ $** |
| 52 | 52 | |
| 53 | 53 | $(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res |
| 54 | - +echo add allrepo attach bag bisect blob branch browse builtin bundle cache captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd dispatch doc encode event export file finfo foci fshell fusefs glob graph gzip hname http http_socket http_ssl http_transport import info json json_artifact json_branch json_config json_diff json_dir json_finfo json_login json_query json_report json_status json_tag json_timeline json_user json_wiki leaf loadctrl login lookslike main manifest markdown markdown_html md5 merge merge3 moderate name path piechart pivot popen pqueue printf publish purge rebuild regexp report rss schema search setup sha1 sha3 shun sitemap skins sqlcmd stash stat statrep style sync tag tar th_main timeline tkt tktsetup undo unicode unversioned update url user utf8 util verify vfile wiki wikiformat winfile winhttp wysiwyg xfer xfersetup zip shell sqlite3 th th_lang > $@ | |
| 54 | + +echo add allrepo attach bag bisect blob branch browse builtin bundle cache captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd dispatch doc encode event export file finfo foci fshell fusefs glob graph gzip hname http http_socket http_ssl http_transport import info json json_artifact json_branch json_config json_diff json_dir json_finfo json_login json_query json_report json_status json_tag json_timeline json_user json_wiki leaf loadctrl login lookslike main manifest markdown markdown_html md5 merge merge3 moderate name path piechart pivot popen pqueue printf publish purge rebuild regexp report rss schema search setup sha1 sha1hard sha3 shun sitemap skins sqlcmd stash stat statrep style sync tag tar th_main timeline tkt tktsetup undo unicode unversioned update url user utf8 util verify vfile wiki wikiformat winfile winhttp wysiwyg xfer xfersetup zip shell sqlite3 th th_lang > $@ | |
| 55 | 55 | +echo fossil >> $@ |
| 56 | 56 | +echo fossil >> $@ |
| 57 | 57 | +echo $(LIBS) >> $@ |
| 58 | 58 | +echo. >> $@ |
| 59 | 59 | +echo fossil >> $@ |
| @@ -662,10 +662,16 @@ | ||
| 662 | 662 | $(OBJDIR)\sha1$O : sha1_.c sha1.h |
| 663 | 663 | $(TCC) -o$@ -c sha1_.c |
| 664 | 664 | |
| 665 | 665 | sha1_.c : $(SRCDIR)\sha1.c |
| 666 | 666 | +translate$E $** > $@ |
| 667 | + | |
| 668 | +$(OBJDIR)\sha1hard$O : sha1hard_.c sha1hard.h | |
| 669 | + $(TCC) -o$@ -c sha1hard_.c | |
| 670 | + | |
| 671 | +sha1hard_.c : $(SRCDIR)\sha1hard.c | |
| 672 | + +translate$E $** > $@ | |
| 667 | 673 | |
| 668 | 674 | $(OBJDIR)\sha3$O : sha3_.c sha3.h |
| 669 | 675 | $(TCC) -o$@ -c sha3_.c |
| 670 | 676 | |
| 671 | 677 | sha3_.c : $(SRCDIR)\sha3.c |
| @@ -868,7 +874,7 @@ | ||
| 868 | 874 | |
| 869 | 875 | zip_.c : $(SRCDIR)\zip.c |
| 870 | 876 | +translate$E $** > $@ |
| 871 | 877 | |
| 872 | 878 | headers: makeheaders$E page_index.h builtin_data.h VERSION.h |
| 873 | - +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h builtin_.c:builtin.h bundle_.c:bundle.h cache_.c:cache.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h dispatch_.c:dispatch.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h foci_.c:foci.h fshell_.c:fshell.h fusefs_.c:fusefs.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h hname_.c:hname.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_config_.c:json_config.h json_diff_.c:json_diff.h json_dir_.c:json_dir.h json_finfo_.c:json_finfo.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_status_.c:json_status.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h loadctrl_.c:loadctrl.h login_.c:login.h lookslike_.c:lookslike.h main_.c:main.h manifest_.c:manifest.h markdown_.c:markdown.h markdown_html_.c:markdown_html.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h moderate_.c:moderate.h name_.c:name.h path_.c:path.h piechart_.c:piechart.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h publish_.c:publish.h purge_.c:purge.h rebuild_.c:rebuild.h regexp_.c:regexp.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h sha3_.c:sha3.h shun_.c:shun.h sitemap_.c:sitemap.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h statrep_.c:statrep.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h unicode_.c:unicode.h unversioned_.c:unversioned.h update_.c:update.h url_.c:url.h user_.c:user.h utf8_.c:utf8.h util_.c:util.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winfile_.c:winfile.h winhttp_.c:winhttp.h wysiwyg_.c:wysiwyg.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h | |
| 879 | + +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h builtin_.c:builtin.h bundle_.c:bundle.h cache_.c:cache.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h dispatch_.c:dispatch.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h foci_.c:foci.h fshell_.c:fshell.h fusefs_.c:fusefs.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h hname_.c:hname.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_config_.c:json_config.h json_diff_.c:json_diff.h json_dir_.c:json_dir.h json_finfo_.c:json_finfo.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_status_.c:json_status.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h loadctrl_.c:loadctrl.h login_.c:login.h lookslike_.c:lookslike.h main_.c:main.h manifest_.c:manifest.h markdown_.c:markdown.h markdown_html_.c:markdown_html.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h moderate_.c:moderate.h name_.c:name.h path_.c:path.h piechart_.c:piechart.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h publish_.c:publish.h purge_.c:purge.h rebuild_.c:rebuild.h regexp_.c:regexp.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h sha1hard_.c:sha1hard.h sha3_.c:sha3.h shun_.c:shun.h sitemap_.c:sitemap.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h statrep_.c:statrep.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h unicode_.c:unicode.h unversioned_.c:unversioned.h update_.c:update.h url_.c:url.h user_.c:user.h utf8_.c:utf8.h util_.c:util.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winfile_.c:winfile.h winhttp_.c:winhttp.h wysiwyg_.c:wysiwyg.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h | |
| 874 | 880 | @copy /Y nul: headers |
| 875 | 881 |
| --- win/Makefile.dmc | |
| +++ win/Makefile.dmc | |
| @@ -28,13 +28,13 @@ | |
| 28 | |
| 29 | SQLITE_OPTIONS = -DNDEBUG=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_USE_ALLOCA -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5 |
| 30 | |
| 31 | SHELL_OPTIONS = -Dmain=sqlite3_shell -DSQLITE_SHELL_IS_UTF8=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DUSE_SYSTEM_SQLITE=$(USE_SYSTEM_SQLITE) -DSQLITE_SHELL_DBNAME_PROC=fossil_open -Daccess=file_access -Dsystem=fossil_system -Dgetenv=fossil_getenv -Dfopen=fossil_fopen |
| 32 | |
| 33 | SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c builtin_.c bundle_.c cache_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c dispatch_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c foci_.c fshell_.c fusefs_.c glob_.c graph_.c gzip_.c hname_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_config_.c json_diff_.c json_dir_.c json_finfo_.c json_login_.c json_query_.c json_report_.c json_status_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c loadctrl_.c login_.c lookslike_.c main_.c manifest_.c markdown_.c markdown_html_.c md5_.c merge_.c merge3_.c moderate_.c name_.c path_.c piechart_.c pivot_.c popen_.c pqueue_.c printf_.c publish_.c purge_.c rebuild_.c regexp_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c sha3_.c shun_.c sitemap_.c skins_.c sqlcmd_.c stash_.c stat_.c statrep_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c unicode_.c unversioned_.c update_.c url_.c user_.c utf8_.c util_.c verify_.c vfile_.c wiki_.c wikiformat_.c winfile_.c winhttp_.c wysiwyg_.c xfer_.c xfersetup_.c zip_.c |
| 34 | |
| 35 | OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\builtin$O $(OBJDIR)\bundle$O $(OBJDIR)\cache$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\dispatch$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\foci$O $(OBJDIR)\fshell$O $(OBJDIR)\fusefs$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\hname$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_config$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_dir$O $(OBJDIR)\json_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 $(OBJDIR)\leaf$O $(OBJDIR)\loadctrl$O $(OBJDIR)\login$O $(OBJDIR)\lookslike$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\markdown$O $(OBJDIR)\markdown_html$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\moderate$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\piechart$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\publish$O $(OBJDIR)\purge$O $(OBJDIR)\rebuild$O $(OBJDIR)\regexp$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\sha3$O $(OBJDIR)\shun$O $(OBJDIR)\sitemap$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\statrep$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\unicode$O $(OBJDIR)\unversioned$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\utf8$O $(OBJDIR)\util$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winfile$O $(OBJDIR)\winhttp$O $(OBJDIR)\wysiwyg$O $(OBJDIR)\xfer$O $(OBJDIR)\xfersetup$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O |
| 36 | |
| 37 | |
| 38 | RC=$(DMDIR)\bin\rcc |
| 39 | RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__ |
| 40 | |
| @@ -49,11 +49,11 @@ | |
| 49 | |
| 50 | $(OBJDIR)\fossil.res: $B\win\fossil.rc |
| 51 | $(RC) $(RCFLAGS) -o$@ $** |
| 52 | |
| 53 | $(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res |
| 54 | +echo add allrepo attach bag bisect blob branch browse builtin bundle cache captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd dispatch doc encode event export file finfo foci fshell fusefs glob graph gzip hname http http_socket http_ssl http_transport import info json json_artifact json_branch json_config json_diff json_dir json_finfo json_login json_query json_report json_status json_tag json_timeline json_user json_wiki leaf loadctrl login lookslike main manifest markdown markdown_html md5 merge merge3 moderate name path piechart pivot popen pqueue printf publish purge rebuild regexp report rss schema search setup sha1 sha3 shun sitemap skins sqlcmd stash stat statrep style sync tag tar th_main timeline tkt tktsetup undo unicode unversioned update url user utf8 util verify vfile wiki wikiformat winfile winhttp wysiwyg xfer xfersetup zip shell sqlite3 th th_lang > $@ |
| 55 | +echo fossil >> $@ |
| 56 | +echo fossil >> $@ |
| 57 | +echo $(LIBS) >> $@ |
| 58 | +echo. >> $@ |
| 59 | +echo fossil >> $@ |
| @@ -662,10 +662,16 @@ | |
| 662 | $(OBJDIR)\sha1$O : sha1_.c sha1.h |
| 663 | $(TCC) -o$@ -c sha1_.c |
| 664 | |
| 665 | sha1_.c : $(SRCDIR)\sha1.c |
| 666 | +translate$E $** > $@ |
| 667 | |
| 668 | $(OBJDIR)\sha3$O : sha3_.c sha3.h |
| 669 | $(TCC) -o$@ -c sha3_.c |
| 670 | |
| 671 | sha3_.c : $(SRCDIR)\sha3.c |
| @@ -868,7 +874,7 @@ | |
| 868 | |
| 869 | zip_.c : $(SRCDIR)\zip.c |
| 870 | +translate$E $** > $@ |
| 871 | |
| 872 | headers: makeheaders$E page_index.h builtin_data.h VERSION.h |
| 873 | +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h builtin_.c:builtin.h bundle_.c:bundle.h cache_.c:cache.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h dispatch_.c:dispatch.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h foci_.c:foci.h fshell_.c:fshell.h fusefs_.c:fusefs.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h hname_.c:hname.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_config_.c:json_config.h json_diff_.c:json_diff.h json_dir_.c:json_dir.h json_finfo_.c:json_finfo.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_status_.c:json_status.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h loadctrl_.c:loadctrl.h login_.c:login.h lookslike_.c:lookslike.h main_.c:main.h manifest_.c:manifest.h markdown_.c:markdown.h markdown_html_.c:markdown_html.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h moderate_.c:moderate.h name_.c:name.h path_.c:path.h piechart_.c:piechart.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h publish_.c:publish.h purge_.c:purge.h rebuild_.c:rebuild.h regexp_.c:regexp.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h sha3_.c:sha3.h shun_.c:shun.h sitemap_.c:sitemap.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h statrep_.c:statrep.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h unicode_.c:unicode.h unversioned_.c:unversioned.h update_.c:update.h url_.c:url.h user_.c:user.h utf8_.c:utf8.h util_.c:util.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winfile_.c:winfile.h winhttp_.c:winhttp.h wysiwyg_.c:wysiwyg.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h |
| 874 | @copy /Y nul: headers |
| 875 |
| --- win/Makefile.dmc | |
| +++ win/Makefile.dmc | |
| @@ -28,13 +28,13 @@ | |
| 28 | |
| 29 | SQLITE_OPTIONS = -DNDEBUG=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_USE_ALLOCA -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5 |
| 30 | |
| 31 | SHELL_OPTIONS = -Dmain=sqlite3_shell -DSQLITE_SHELL_IS_UTF8=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DUSE_SYSTEM_SQLITE=$(USE_SYSTEM_SQLITE) -DSQLITE_SHELL_DBNAME_PROC=fossil_open -Daccess=file_access -Dsystem=fossil_system -Dgetenv=fossil_getenv -Dfopen=fossil_fopen |
| 32 | |
| 33 | SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c builtin_.c bundle_.c cache_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c dispatch_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c foci_.c fshell_.c fusefs_.c glob_.c graph_.c gzip_.c hname_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c json_.c json_artifact_.c json_branch_.c json_config_.c json_diff_.c json_dir_.c json_finfo_.c json_login_.c json_query_.c json_report_.c json_status_.c json_tag_.c json_timeline_.c json_user_.c json_wiki_.c leaf_.c loadctrl_.c login_.c lookslike_.c main_.c manifest_.c markdown_.c markdown_html_.c md5_.c merge_.c merge3_.c moderate_.c name_.c path_.c piechart_.c pivot_.c popen_.c pqueue_.c printf_.c publish_.c purge_.c rebuild_.c regexp_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c sha1hard_.c sha3_.c shun_.c sitemap_.c skins_.c sqlcmd_.c stash_.c stat_.c statrep_.c style_.c sync_.c tag_.c tar_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c unicode_.c unversioned_.c update_.c url_.c user_.c utf8_.c util_.c verify_.c vfile_.c wiki_.c wikiformat_.c winfile_.c winhttp_.c wysiwyg_.c xfer_.c xfersetup_.c zip_.c |
| 34 | |
| 35 | OBJ = $(OBJDIR)\add$O $(OBJDIR)\allrepo$O $(OBJDIR)\attach$O $(OBJDIR)\bag$O $(OBJDIR)\bisect$O $(OBJDIR)\blob$O $(OBJDIR)\branch$O $(OBJDIR)\browse$O $(OBJDIR)\builtin$O $(OBJDIR)\bundle$O $(OBJDIR)\cache$O $(OBJDIR)\captcha$O $(OBJDIR)\cgi$O $(OBJDIR)\checkin$O $(OBJDIR)\checkout$O $(OBJDIR)\clearsign$O $(OBJDIR)\clone$O $(OBJDIR)\comformat$O $(OBJDIR)\configure$O $(OBJDIR)\content$O $(OBJDIR)\db$O $(OBJDIR)\delta$O $(OBJDIR)\deltacmd$O $(OBJDIR)\descendants$O $(OBJDIR)\diff$O $(OBJDIR)\diffcmd$O $(OBJDIR)\dispatch$O $(OBJDIR)\doc$O $(OBJDIR)\encode$O $(OBJDIR)\event$O $(OBJDIR)\export$O $(OBJDIR)\file$O $(OBJDIR)\finfo$O $(OBJDIR)\foci$O $(OBJDIR)\fshell$O $(OBJDIR)\fusefs$O $(OBJDIR)\glob$O $(OBJDIR)\graph$O $(OBJDIR)\gzip$O $(OBJDIR)\hname$O $(OBJDIR)\http$O $(OBJDIR)\http_socket$O $(OBJDIR)\http_ssl$O $(OBJDIR)\http_transport$O $(OBJDIR)\import$O $(OBJDIR)\info$O $(OBJDIR)\json$O $(OBJDIR)\json_artifact$O $(OBJDIR)\json_branch$O $(OBJDIR)\json_config$O $(OBJDIR)\json_diff$O $(OBJDIR)\json_dir$O $(OBJDIR)\json_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 $(OBJDIR)\leaf$O $(OBJDIR)\loadctrl$O $(OBJDIR)\login$O $(OBJDIR)\lookslike$O $(OBJDIR)\main$O $(OBJDIR)\manifest$O $(OBJDIR)\markdown$O $(OBJDIR)\markdown_html$O $(OBJDIR)\md5$O $(OBJDIR)\merge$O $(OBJDIR)\merge3$O $(OBJDIR)\moderate$O $(OBJDIR)\name$O $(OBJDIR)\path$O $(OBJDIR)\piechart$O $(OBJDIR)\pivot$O $(OBJDIR)\popen$O $(OBJDIR)\pqueue$O $(OBJDIR)\printf$O $(OBJDIR)\publish$O $(OBJDIR)\purge$O $(OBJDIR)\rebuild$O $(OBJDIR)\regexp$O $(OBJDIR)\report$O $(OBJDIR)\rss$O $(OBJDIR)\schema$O $(OBJDIR)\search$O $(OBJDIR)\setup$O $(OBJDIR)\sha1$O $(OBJDIR)\sha1hard$O $(OBJDIR)\sha3$O $(OBJDIR)\shun$O $(OBJDIR)\sitemap$O $(OBJDIR)\skins$O $(OBJDIR)\sqlcmd$O $(OBJDIR)\stash$O $(OBJDIR)\stat$O $(OBJDIR)\statrep$O $(OBJDIR)\style$O $(OBJDIR)\sync$O $(OBJDIR)\tag$O $(OBJDIR)\tar$O $(OBJDIR)\th_main$O $(OBJDIR)\timeline$O $(OBJDIR)\tkt$O $(OBJDIR)\tktsetup$O $(OBJDIR)\undo$O $(OBJDIR)\unicode$O $(OBJDIR)\unversioned$O $(OBJDIR)\update$O $(OBJDIR)\url$O $(OBJDIR)\user$O $(OBJDIR)\utf8$O $(OBJDIR)\util$O $(OBJDIR)\verify$O $(OBJDIR)\vfile$O $(OBJDIR)\wiki$O $(OBJDIR)\wikiformat$O $(OBJDIR)\winfile$O $(OBJDIR)\winhttp$O $(OBJDIR)\wysiwyg$O $(OBJDIR)\xfer$O $(OBJDIR)\xfersetup$O $(OBJDIR)\zip$O $(OBJDIR)\shell$O $(OBJDIR)\sqlite3$O $(OBJDIR)\th$O $(OBJDIR)\th_lang$O |
| 36 | |
| 37 | |
| 38 | RC=$(DMDIR)\bin\rcc |
| 39 | RCFLAGS=-32 -w1 -I$(SRCDIR) /D__DMC__ |
| 40 | |
| @@ -49,11 +49,11 @@ | |
| 49 | |
| 50 | $(OBJDIR)\fossil.res: $B\win\fossil.rc |
| 51 | $(RC) $(RCFLAGS) -o$@ $** |
| 52 | |
| 53 | $(OBJDIR)\link: $B\win\Makefile.dmc $(OBJDIR)\fossil.res |
| 54 | +echo add allrepo attach bag bisect blob branch browse builtin bundle cache captcha cgi checkin checkout clearsign clone comformat configure content db delta deltacmd descendants diff diffcmd dispatch doc encode event export file finfo foci fshell fusefs glob graph gzip hname http http_socket http_ssl http_transport import info json json_artifact json_branch json_config json_diff json_dir json_finfo json_login json_query json_report json_status json_tag json_timeline json_user json_wiki leaf loadctrl login lookslike main manifest markdown markdown_html md5 merge merge3 moderate name path piechart pivot popen pqueue printf publish purge rebuild regexp report rss schema search setup sha1 sha1hard sha3 shun sitemap skins sqlcmd stash stat statrep style sync tag tar th_main timeline tkt tktsetup undo unicode unversioned update url user utf8 util verify vfile wiki wikiformat winfile winhttp wysiwyg xfer xfersetup zip shell sqlite3 th th_lang > $@ |
| 55 | +echo fossil >> $@ |
| 56 | +echo fossil >> $@ |
| 57 | +echo $(LIBS) >> $@ |
| 58 | +echo. >> $@ |
| 59 | +echo fossil >> $@ |
| @@ -662,10 +662,16 @@ | |
| 662 | $(OBJDIR)\sha1$O : sha1_.c sha1.h |
| 663 | $(TCC) -o$@ -c sha1_.c |
| 664 | |
| 665 | sha1_.c : $(SRCDIR)\sha1.c |
| 666 | +translate$E $** > $@ |
| 667 | |
| 668 | $(OBJDIR)\sha1hard$O : sha1hard_.c sha1hard.h |
| 669 | $(TCC) -o$@ -c sha1hard_.c |
| 670 | |
| 671 | sha1hard_.c : $(SRCDIR)\sha1hard.c |
| 672 | +translate$E $** > $@ |
| 673 | |
| 674 | $(OBJDIR)\sha3$O : sha3_.c sha3.h |
| 675 | $(TCC) -o$@ -c sha3_.c |
| 676 | |
| 677 | sha3_.c : $(SRCDIR)\sha3.c |
| @@ -868,7 +874,7 @@ | |
| 874 | |
| 875 | zip_.c : $(SRCDIR)\zip.c |
| 876 | +translate$E $** > $@ |
| 877 | |
| 878 | headers: makeheaders$E page_index.h builtin_data.h VERSION.h |
| 879 | +makeheaders$E add_.c:add.h allrepo_.c:allrepo.h attach_.c:attach.h bag_.c:bag.h bisect_.c:bisect.h blob_.c:blob.h branch_.c:branch.h browse_.c:browse.h builtin_.c:builtin.h bundle_.c:bundle.h cache_.c:cache.h captcha_.c:captcha.h cgi_.c:cgi.h checkin_.c:checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h comformat_.c:comformat.h configure_.c:configure.h content_.c:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h dispatch_.c:dispatch.h doc_.c:doc.h encode_.c:encode.h event_.c:event.h export_.c:export.h file_.c:file.h finfo_.c:finfo.h foci_.c:foci.h fshell_.c:fshell.h fusefs_.c:fusefs.h glob_.c:glob.h graph_.c:graph.h gzip_.c:gzip.h hname_.c:hname.h http_.c:http.h http_socket_.c:http_socket.h http_ssl_.c:http_ssl.h http_transport_.c:http_transport.h import_.c:import.h info_.c:info.h json_.c:json.h json_artifact_.c:json_artifact.h json_branch_.c:json_branch.h json_config_.c:json_config.h json_diff_.c:json_diff.h json_dir_.c:json_dir.h json_finfo_.c:json_finfo.h json_login_.c:json_login.h json_query_.c:json_query.h json_report_.c:json_report.h json_status_.c:json_status.h json_tag_.c:json_tag.h json_timeline_.c:json_timeline.h json_user_.c:json_user.h json_wiki_.c:json_wiki.h leaf_.c:leaf.h loadctrl_.c:loadctrl.h login_.c:login.h lookslike_.c:lookslike.h main_.c:main.h manifest_.c:manifest.h markdown_.c:markdown.h markdown_html_.c:markdown_html.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h moderate_.c:moderate.h name_.c:name.h path_.c:path.h piechart_.c:piechart.h pivot_.c:pivot.h popen_.c:popen.h pqueue_.c:pqueue.h printf_.c:printf.h publish_.c:publish.h purge_.c:purge.h rebuild_.c:rebuild.h regexp_.c:regexp.h report_.c:report.h rss_.c:rss.h schema_.c:schema.h search_.c:search.h setup_.c:setup.h sha1_.c:sha1.h sha1hard_.c:sha1hard.h sha3_.c:sha3.h shun_.c:shun.h sitemap_.c:sitemap.h skins_.c:skins.h sqlcmd_.c:sqlcmd.h stash_.c:stash.h stat_.c:stat.h statrep_.c:statrep.h style_.c:style.h sync_.c:sync.h tag_.c:tag.h tar_.c:tar.h th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h undo_.c:undo.h unicode_.c:unicode.h unversioned_.c:unversioned.h update_.c:update.h url_.c:url.h user_.c:user.h utf8_.c:utf8.h util_.c:util.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h wikiformat_.c:wikiformat.h winfile_.c:winfile.h winhttp_.c:winhttp.h wysiwyg_.c:wysiwyg.h xfer_.c:xfer.h xfersetup_.c:xfersetup.h zip_.c:zip.h $(SRCDIR)\sqlite3.h $(SRCDIR)\th.h VERSION.h $(SRCDIR)\cson_amalgamation.h |
| 880 | @copy /Y nul: headers |
| 881 |
+12
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -512,10 +512,11 @@ | ||
| 512 | 512 | $(SRCDIR)/rss.c \ |
| 513 | 513 | $(SRCDIR)/schema.c \ |
| 514 | 514 | $(SRCDIR)/search.c \ |
| 515 | 515 | $(SRCDIR)/setup.c \ |
| 516 | 516 | $(SRCDIR)/sha1.c \ |
| 517 | + $(SRCDIR)/sha1hard.c \ | |
| 517 | 518 | $(SRCDIR)/sha3.c \ |
| 518 | 519 | $(SRCDIR)/shun.c \ |
| 519 | 520 | $(SRCDIR)/sitemap.c \ |
| 520 | 521 | $(SRCDIR)/skins.c \ |
| 521 | 522 | $(SRCDIR)/sqlcmd.c \ |
| @@ -689,10 +690,11 @@ | ||
| 689 | 690 | $(OBJDIR)/rss_.c \ |
| 690 | 691 | $(OBJDIR)/schema_.c \ |
| 691 | 692 | $(OBJDIR)/search_.c \ |
| 692 | 693 | $(OBJDIR)/setup_.c \ |
| 693 | 694 | $(OBJDIR)/sha1_.c \ |
| 695 | + $(OBJDIR)/sha1hard_.c \ | |
| 694 | 696 | $(OBJDIR)/sha3_.c \ |
| 695 | 697 | $(OBJDIR)/shun_.c \ |
| 696 | 698 | $(OBJDIR)/sitemap_.c \ |
| 697 | 699 | $(OBJDIR)/skins_.c \ |
| 698 | 700 | $(OBJDIR)/sqlcmd_.c \ |
| @@ -815,10 +817,11 @@ | ||
| 815 | 817 | $(OBJDIR)/rss.o \ |
| 816 | 818 | $(OBJDIR)/schema.o \ |
| 817 | 819 | $(OBJDIR)/search.o \ |
| 818 | 820 | $(OBJDIR)/setup.o \ |
| 819 | 821 | $(OBJDIR)/sha1.o \ |
| 822 | + $(OBJDIR)/sha1hard.o \ | |
| 820 | 823 | $(OBJDIR)/sha3.o \ |
| 821 | 824 | $(OBJDIR)/shun.o \ |
| 822 | 825 | $(OBJDIR)/sitemap.o \ |
| 823 | 826 | $(OBJDIR)/skins.o \ |
| 824 | 827 | $(OBJDIR)/sqlcmd.o \ |
| @@ -1152,10 +1155,11 @@ | ||
| 1152 | 1155 | $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h \ |
| 1153 | 1156 | $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h \ |
| 1154 | 1157 | $(OBJDIR)/search_.c:$(OBJDIR)/search.h \ |
| 1155 | 1158 | $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h \ |
| 1156 | 1159 | $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h \ |
| 1160 | + $(OBJDIR)/sha1hard_.c:$(OBJDIR)/sha1hard.h \ | |
| 1157 | 1161 | $(OBJDIR)/sha3_.c:$(OBJDIR)/sha3.h \ |
| 1158 | 1162 | $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h \ |
| 1159 | 1163 | $(OBJDIR)/sitemap_.c:$(OBJDIR)/sitemap.h \ |
| 1160 | 1164 | $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h \ |
| 1161 | 1165 | $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h \ |
| @@ -1914,10 +1918,18 @@ | ||
| 1914 | 1918 | |
| 1915 | 1919 | $(OBJDIR)/sha1.o: $(OBJDIR)/sha1_.c $(OBJDIR)/sha1.h $(SRCDIR)/config.h |
| 1916 | 1920 | $(XTCC) -o $(OBJDIR)/sha1.o -c $(OBJDIR)/sha1_.c |
| 1917 | 1921 | |
| 1918 | 1922 | $(OBJDIR)/sha1.h: $(OBJDIR)/headers |
| 1923 | + | |
| 1924 | +$(OBJDIR)/sha1hard_.c: $(SRCDIR)/sha1hard.c $(TRANSLATE) | |
| 1925 | + $(TRANSLATE) $(SRCDIR)/sha1hard.c >$@ | |
| 1926 | + | |
| 1927 | +$(OBJDIR)/sha1hard.o: $(OBJDIR)/sha1hard_.c $(OBJDIR)/sha1hard.h $(SRCDIR)/config.h | |
| 1928 | + $(XTCC) -o $(OBJDIR)/sha1hard.o -c $(OBJDIR)/sha1hard_.c | |
| 1929 | + | |
| 1930 | +$(OBJDIR)/sha1hard.h: $(OBJDIR)/headers | |
| 1919 | 1931 | |
| 1920 | 1932 | $(OBJDIR)/sha3_.c: $(SRCDIR)/sha3.c $(TRANSLATE) |
| 1921 | 1933 | $(TRANSLATE) $(SRCDIR)/sha3.c >$@ |
| 1922 | 1934 | |
| 1923 | 1935 | $(OBJDIR)/sha3.o: $(OBJDIR)/sha3_.c $(OBJDIR)/sha3.h $(SRCDIR)/config.h |
| 1924 | 1936 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -512,10 +512,11 @@ | |
| 512 | $(SRCDIR)/rss.c \ |
| 513 | $(SRCDIR)/schema.c \ |
| 514 | $(SRCDIR)/search.c \ |
| 515 | $(SRCDIR)/setup.c \ |
| 516 | $(SRCDIR)/sha1.c \ |
| 517 | $(SRCDIR)/sha3.c \ |
| 518 | $(SRCDIR)/shun.c \ |
| 519 | $(SRCDIR)/sitemap.c \ |
| 520 | $(SRCDIR)/skins.c \ |
| 521 | $(SRCDIR)/sqlcmd.c \ |
| @@ -689,10 +690,11 @@ | |
| 689 | $(OBJDIR)/rss_.c \ |
| 690 | $(OBJDIR)/schema_.c \ |
| 691 | $(OBJDIR)/search_.c \ |
| 692 | $(OBJDIR)/setup_.c \ |
| 693 | $(OBJDIR)/sha1_.c \ |
| 694 | $(OBJDIR)/sha3_.c \ |
| 695 | $(OBJDIR)/shun_.c \ |
| 696 | $(OBJDIR)/sitemap_.c \ |
| 697 | $(OBJDIR)/skins_.c \ |
| 698 | $(OBJDIR)/sqlcmd_.c \ |
| @@ -815,10 +817,11 @@ | |
| 815 | $(OBJDIR)/rss.o \ |
| 816 | $(OBJDIR)/schema.o \ |
| 817 | $(OBJDIR)/search.o \ |
| 818 | $(OBJDIR)/setup.o \ |
| 819 | $(OBJDIR)/sha1.o \ |
| 820 | $(OBJDIR)/sha3.o \ |
| 821 | $(OBJDIR)/shun.o \ |
| 822 | $(OBJDIR)/sitemap.o \ |
| 823 | $(OBJDIR)/skins.o \ |
| 824 | $(OBJDIR)/sqlcmd.o \ |
| @@ -1152,10 +1155,11 @@ | |
| 1152 | $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h \ |
| 1153 | $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h \ |
| 1154 | $(OBJDIR)/search_.c:$(OBJDIR)/search.h \ |
| 1155 | $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h \ |
| 1156 | $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h \ |
| 1157 | $(OBJDIR)/sha3_.c:$(OBJDIR)/sha3.h \ |
| 1158 | $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h \ |
| 1159 | $(OBJDIR)/sitemap_.c:$(OBJDIR)/sitemap.h \ |
| 1160 | $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h \ |
| 1161 | $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h \ |
| @@ -1914,10 +1918,18 @@ | |
| 1914 | |
| 1915 | $(OBJDIR)/sha1.o: $(OBJDIR)/sha1_.c $(OBJDIR)/sha1.h $(SRCDIR)/config.h |
| 1916 | $(XTCC) -o $(OBJDIR)/sha1.o -c $(OBJDIR)/sha1_.c |
| 1917 | |
| 1918 | $(OBJDIR)/sha1.h: $(OBJDIR)/headers |
| 1919 | |
| 1920 | $(OBJDIR)/sha3_.c: $(SRCDIR)/sha3.c $(TRANSLATE) |
| 1921 | $(TRANSLATE) $(SRCDIR)/sha3.c >$@ |
| 1922 | |
| 1923 | $(OBJDIR)/sha3.o: $(OBJDIR)/sha3_.c $(OBJDIR)/sha3.h $(SRCDIR)/config.h |
| 1924 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -512,10 +512,11 @@ | |
| 512 | $(SRCDIR)/rss.c \ |
| 513 | $(SRCDIR)/schema.c \ |
| 514 | $(SRCDIR)/search.c \ |
| 515 | $(SRCDIR)/setup.c \ |
| 516 | $(SRCDIR)/sha1.c \ |
| 517 | $(SRCDIR)/sha1hard.c \ |
| 518 | $(SRCDIR)/sha3.c \ |
| 519 | $(SRCDIR)/shun.c \ |
| 520 | $(SRCDIR)/sitemap.c \ |
| 521 | $(SRCDIR)/skins.c \ |
| 522 | $(SRCDIR)/sqlcmd.c \ |
| @@ -689,10 +690,11 @@ | |
| 690 | $(OBJDIR)/rss_.c \ |
| 691 | $(OBJDIR)/schema_.c \ |
| 692 | $(OBJDIR)/search_.c \ |
| 693 | $(OBJDIR)/setup_.c \ |
| 694 | $(OBJDIR)/sha1_.c \ |
| 695 | $(OBJDIR)/sha1hard_.c \ |
| 696 | $(OBJDIR)/sha3_.c \ |
| 697 | $(OBJDIR)/shun_.c \ |
| 698 | $(OBJDIR)/sitemap_.c \ |
| 699 | $(OBJDIR)/skins_.c \ |
| 700 | $(OBJDIR)/sqlcmd_.c \ |
| @@ -815,10 +817,11 @@ | |
| 817 | $(OBJDIR)/rss.o \ |
| 818 | $(OBJDIR)/schema.o \ |
| 819 | $(OBJDIR)/search.o \ |
| 820 | $(OBJDIR)/setup.o \ |
| 821 | $(OBJDIR)/sha1.o \ |
| 822 | $(OBJDIR)/sha1hard.o \ |
| 823 | $(OBJDIR)/sha3.o \ |
| 824 | $(OBJDIR)/shun.o \ |
| 825 | $(OBJDIR)/sitemap.o \ |
| 826 | $(OBJDIR)/skins.o \ |
| 827 | $(OBJDIR)/sqlcmd.o \ |
| @@ -1152,10 +1155,11 @@ | |
| 1155 | $(OBJDIR)/rss_.c:$(OBJDIR)/rss.h \ |
| 1156 | $(OBJDIR)/schema_.c:$(OBJDIR)/schema.h \ |
| 1157 | $(OBJDIR)/search_.c:$(OBJDIR)/search.h \ |
| 1158 | $(OBJDIR)/setup_.c:$(OBJDIR)/setup.h \ |
| 1159 | $(OBJDIR)/sha1_.c:$(OBJDIR)/sha1.h \ |
| 1160 | $(OBJDIR)/sha1hard_.c:$(OBJDIR)/sha1hard.h \ |
| 1161 | $(OBJDIR)/sha3_.c:$(OBJDIR)/sha3.h \ |
| 1162 | $(OBJDIR)/shun_.c:$(OBJDIR)/shun.h \ |
| 1163 | $(OBJDIR)/sitemap_.c:$(OBJDIR)/sitemap.h \ |
| 1164 | $(OBJDIR)/skins_.c:$(OBJDIR)/skins.h \ |
| 1165 | $(OBJDIR)/sqlcmd_.c:$(OBJDIR)/sqlcmd.h \ |
| @@ -1914,10 +1918,18 @@ | |
| 1918 | |
| 1919 | $(OBJDIR)/sha1.o: $(OBJDIR)/sha1_.c $(OBJDIR)/sha1.h $(SRCDIR)/config.h |
| 1920 | $(XTCC) -o $(OBJDIR)/sha1.o -c $(OBJDIR)/sha1_.c |
| 1921 | |
| 1922 | $(OBJDIR)/sha1.h: $(OBJDIR)/headers |
| 1923 | |
| 1924 | $(OBJDIR)/sha1hard_.c: $(SRCDIR)/sha1hard.c $(TRANSLATE) |
| 1925 | $(TRANSLATE) $(SRCDIR)/sha1hard.c >$@ |
| 1926 | |
| 1927 | $(OBJDIR)/sha1hard.o: $(OBJDIR)/sha1hard_.c $(OBJDIR)/sha1hard.h $(SRCDIR)/config.h |
| 1928 | $(XTCC) -o $(OBJDIR)/sha1hard.o -c $(OBJDIR)/sha1hard_.c |
| 1929 | |
| 1930 | $(OBJDIR)/sha1hard.h: $(OBJDIR)/headers |
| 1931 | |
| 1932 | $(OBJDIR)/sha3_.c: $(SRCDIR)/sha3.c $(TRANSLATE) |
| 1933 | $(TRANSLATE) $(SRCDIR)/sha3.c >$@ |
| 1934 | |
| 1935 | $(OBJDIR)/sha3.o: $(OBJDIR)/sha3_.c $(OBJDIR)/sha3.h $(SRCDIR)/config.h |
| 1936 |
+10
| --- win/Makefile.msc | ||
| +++ win/Makefile.msc | ||
| @@ -437,10 +437,11 @@ | ||
| 437 | 437 | rss_.c \ |
| 438 | 438 | schema_.c \ |
| 439 | 439 | search_.c \ |
| 440 | 440 | setup_.c \ |
| 441 | 441 | sha1_.c \ |
| 442 | + sha1hard_.c \ | |
| 442 | 443 | sha3_.c \ |
| 443 | 444 | shun_.c \ |
| 444 | 445 | sitemap_.c \ |
| 445 | 446 | skins_.c \ |
| 446 | 447 | sqlcmd_.c \ |
| @@ -613,10 +614,11 @@ | ||
| 613 | 614 | $(OX)\rss$O \ |
| 614 | 615 | $(OX)\schema$O \ |
| 615 | 616 | $(OX)\search$O \ |
| 616 | 617 | $(OX)\setup$O \ |
| 617 | 618 | $(OX)\sha1$O \ |
| 619 | + $(OX)\sha1hard$O \ | |
| 618 | 620 | $(OX)\sha3$O \ |
| 619 | 621 | $(OX)\shell$O \ |
| 620 | 622 | $(OX)\shun$O \ |
| 621 | 623 | $(OX)\sitemap$O \ |
| 622 | 624 | $(OX)\skins$O \ |
| @@ -798,10 +800,11 @@ | ||
| 798 | 800 | echo $(OX)\rss.obj >> $@ |
| 799 | 801 | echo $(OX)\schema.obj >> $@ |
| 800 | 802 | echo $(OX)\search.obj >> $@ |
| 801 | 803 | echo $(OX)\setup.obj >> $@ |
| 802 | 804 | echo $(OX)\sha1.obj >> $@ |
| 805 | + echo $(OX)\sha1hard.obj >> $@ | |
| 803 | 806 | echo $(OX)\sha3.obj >> $@ |
| 804 | 807 | echo $(OX)\shell.obj >> $@ |
| 805 | 808 | echo $(OX)\shun.obj >> $@ |
| 806 | 809 | echo $(OX)\sitemap.obj >> $@ |
| 807 | 810 | echo $(OX)\skins.obj >> $@ |
| @@ -1487,10 +1490,16 @@ | ||
| 1487 | 1490 | $(OX)\sha1$O : sha1_.c sha1.h |
| 1488 | 1491 | $(TCC) /Fo$@ -c sha1_.c |
| 1489 | 1492 | |
| 1490 | 1493 | sha1_.c : $(SRCDIR)\sha1.c |
| 1491 | 1494 | translate$E $** > $@ |
| 1495 | + | |
| 1496 | +$(OX)\sha1hard$O : sha1hard_.c sha1hard.h | |
| 1497 | + $(TCC) /Fo$@ -c sha1hard_.c | |
| 1498 | + | |
| 1499 | +sha1hard_.c : $(SRCDIR)\sha1hard.c | |
| 1500 | + translate$E $** > $@ | |
| 1492 | 1501 | |
| 1493 | 1502 | $(OX)\sha3$O : sha3_.c sha3.h |
| 1494 | 1503 | $(TCC) /Fo$@ -c sha3_.c |
| 1495 | 1504 | |
| 1496 | 1505 | sha3_.c : $(SRCDIR)\sha3.c |
| @@ -1786,10 +1795,11 @@ | ||
| 1786 | 1795 | rss_.c:rss.h \ |
| 1787 | 1796 | schema_.c:schema.h \ |
| 1788 | 1797 | search_.c:search.h \ |
| 1789 | 1798 | setup_.c:setup.h \ |
| 1790 | 1799 | sha1_.c:sha1.h \ |
| 1800 | + sha1hard_.c:sha1hard.h \ | |
| 1791 | 1801 | sha3_.c:sha3.h \ |
| 1792 | 1802 | shun_.c:shun.h \ |
| 1793 | 1803 | sitemap_.c:sitemap.h \ |
| 1794 | 1804 | skins_.c:skins.h \ |
| 1795 | 1805 | sqlcmd_.c:sqlcmd.h \ |
| 1796 | 1806 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -437,10 +437,11 @@ | |
| 437 | rss_.c \ |
| 438 | schema_.c \ |
| 439 | search_.c \ |
| 440 | setup_.c \ |
| 441 | sha1_.c \ |
| 442 | sha3_.c \ |
| 443 | shun_.c \ |
| 444 | sitemap_.c \ |
| 445 | skins_.c \ |
| 446 | sqlcmd_.c \ |
| @@ -613,10 +614,11 @@ | |
| 613 | $(OX)\rss$O \ |
| 614 | $(OX)\schema$O \ |
| 615 | $(OX)\search$O \ |
| 616 | $(OX)\setup$O \ |
| 617 | $(OX)\sha1$O \ |
| 618 | $(OX)\sha3$O \ |
| 619 | $(OX)\shell$O \ |
| 620 | $(OX)\shun$O \ |
| 621 | $(OX)\sitemap$O \ |
| 622 | $(OX)\skins$O \ |
| @@ -798,10 +800,11 @@ | |
| 798 | echo $(OX)\rss.obj >> $@ |
| 799 | echo $(OX)\schema.obj >> $@ |
| 800 | echo $(OX)\search.obj >> $@ |
| 801 | echo $(OX)\setup.obj >> $@ |
| 802 | echo $(OX)\sha1.obj >> $@ |
| 803 | echo $(OX)\sha3.obj >> $@ |
| 804 | echo $(OX)\shell.obj >> $@ |
| 805 | echo $(OX)\shun.obj >> $@ |
| 806 | echo $(OX)\sitemap.obj >> $@ |
| 807 | echo $(OX)\skins.obj >> $@ |
| @@ -1487,10 +1490,16 @@ | |
| 1487 | $(OX)\sha1$O : sha1_.c sha1.h |
| 1488 | $(TCC) /Fo$@ -c sha1_.c |
| 1489 | |
| 1490 | sha1_.c : $(SRCDIR)\sha1.c |
| 1491 | translate$E $** > $@ |
| 1492 | |
| 1493 | $(OX)\sha3$O : sha3_.c sha3.h |
| 1494 | $(TCC) /Fo$@ -c sha3_.c |
| 1495 | |
| 1496 | sha3_.c : $(SRCDIR)\sha3.c |
| @@ -1786,10 +1795,11 @@ | |
| 1786 | rss_.c:rss.h \ |
| 1787 | schema_.c:schema.h \ |
| 1788 | search_.c:search.h \ |
| 1789 | setup_.c:setup.h \ |
| 1790 | sha1_.c:sha1.h \ |
| 1791 | sha3_.c:sha3.h \ |
| 1792 | shun_.c:shun.h \ |
| 1793 | sitemap_.c:sitemap.h \ |
| 1794 | skins_.c:skins.h \ |
| 1795 | sqlcmd_.c:sqlcmd.h \ |
| 1796 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -437,10 +437,11 @@ | |
| 437 | rss_.c \ |
| 438 | schema_.c \ |
| 439 | search_.c \ |
| 440 | setup_.c \ |
| 441 | sha1_.c \ |
| 442 | sha1hard_.c \ |
| 443 | sha3_.c \ |
| 444 | shun_.c \ |
| 445 | sitemap_.c \ |
| 446 | skins_.c \ |
| 447 | sqlcmd_.c \ |
| @@ -613,10 +614,11 @@ | |
| 614 | $(OX)\rss$O \ |
| 615 | $(OX)\schema$O \ |
| 616 | $(OX)\search$O \ |
| 617 | $(OX)\setup$O \ |
| 618 | $(OX)\sha1$O \ |
| 619 | $(OX)\sha1hard$O \ |
| 620 | $(OX)\sha3$O \ |
| 621 | $(OX)\shell$O \ |
| 622 | $(OX)\shun$O \ |
| 623 | $(OX)\sitemap$O \ |
| 624 | $(OX)\skins$O \ |
| @@ -798,10 +800,11 @@ | |
| 800 | echo $(OX)\rss.obj >> $@ |
| 801 | echo $(OX)\schema.obj >> $@ |
| 802 | echo $(OX)\search.obj >> $@ |
| 803 | echo $(OX)\setup.obj >> $@ |
| 804 | echo $(OX)\sha1.obj >> $@ |
| 805 | echo $(OX)\sha1hard.obj >> $@ |
| 806 | echo $(OX)\sha3.obj >> $@ |
| 807 | echo $(OX)\shell.obj >> $@ |
| 808 | echo $(OX)\shun.obj >> $@ |
| 809 | echo $(OX)\sitemap.obj >> $@ |
| 810 | echo $(OX)\skins.obj >> $@ |
| @@ -1487,10 +1490,16 @@ | |
| 1490 | $(OX)\sha1$O : sha1_.c sha1.h |
| 1491 | $(TCC) /Fo$@ -c sha1_.c |
| 1492 | |
| 1493 | sha1_.c : $(SRCDIR)\sha1.c |
| 1494 | translate$E $** > $@ |
| 1495 | |
| 1496 | $(OX)\sha1hard$O : sha1hard_.c sha1hard.h |
| 1497 | $(TCC) /Fo$@ -c sha1hard_.c |
| 1498 | |
| 1499 | sha1hard_.c : $(SRCDIR)\sha1hard.c |
| 1500 | translate$E $** > $@ |
| 1501 | |
| 1502 | $(OX)\sha3$O : sha3_.c sha3.h |
| 1503 | $(TCC) /Fo$@ -c sha3_.c |
| 1504 | |
| 1505 | sha3_.c : $(SRCDIR)\sha3.c |
| @@ -1786,10 +1795,11 @@ | |
| 1795 | rss_.c:rss.h \ |
| 1796 | schema_.c:schema.h \ |
| 1797 | search_.c:search.h \ |
| 1798 | setup_.c:setup.h \ |
| 1799 | sha1_.c:sha1.h \ |
| 1800 | sha1hard_.c:sha1hard.h \ |
| 1801 | sha3_.c:sha3.h \ |
| 1802 | shun_.c:shun.h \ |
| 1803 | sitemap_.c:sitemap.h \ |
| 1804 | skins_.c:skins.h \ |
| 1805 | sqlcmd_.c:sqlcmd.h \ |
| 1806 |