Fossil SCM
Corrections to #ifdef handling and comments.
Commit
f605058514b8335f52648f6f771330b32f56418c
Parent
b3c40dd49ea8de8…
5 files changed
+1
-1
+6
-2
+1
-1
+1
-1
+1
-1
M
auto.def
+1
-1
| --- auto.def | ||
| +++ auto.def | ||
| @@ -4,11 +4,11 @@ | ||
| 4 | 4 | |
| 5 | 5 | options { |
| 6 | 6 | with-openssl:path|auto|none |
| 7 | 7 | => {Look for openssl in the given path, or auto or none} |
| 8 | 8 | with-zlib:path => {Look for zlib in the given path} |
| 9 | - with-th1-hooks=0 => {Enable TH1 hooks for commands and unknown web pages} | |
| 9 | + with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} | |
| 10 | 10 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 11 | 11 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| 12 | 12 | with-tcl-private-stubs=0 |
| 13 | 13 | => {Enable Tcl integration via private stubs mechanism} |
| 14 | 14 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 15 | 15 |
| --- auto.def | |
| +++ auto.def | |
| @@ -4,11 +4,11 @@ | |
| 4 | |
| 5 | options { |
| 6 | with-openssl:path|auto|none |
| 7 | => {Look for openssl in the given path, or auto or none} |
| 8 | with-zlib:path => {Look for zlib in the given path} |
| 9 | with-th1-hooks=0 => {Enable TH1 hooks for commands and unknown web pages} |
| 10 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 11 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| 12 | with-tcl-private-stubs=0 |
| 13 | => {Enable Tcl integration via private stubs mechanism} |
| 14 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 15 |
| --- auto.def | |
| +++ auto.def | |
| @@ -4,11 +4,11 @@ | |
| 4 | |
| 5 | options { |
| 6 | with-openssl:path|auto|none |
| 7 | => {Look for openssl in the given path, or auto or none} |
| 8 | with-zlib:path => {Look for zlib in the given path} |
| 9 | with-th1-hooks=0 => {Enable TH1 hooks for commands and web pages} |
| 10 | with-tcl:path => {Enable Tcl integration, with Tcl in the specified path} |
| 11 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| 12 | with-tcl-private-stubs=0 |
| 13 | => {Enable Tcl integration via private stubs mechanism} |
| 14 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 15 |
+6
-2
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -673,12 +673,12 @@ | ||
| 673 | 673 | } |
| 674 | 674 | if( !g.isHTTP && !g.fNoThHook && (rc==TH_OK || rc==TH_CONTINUE) ){ |
| 675 | 675 | Th_CommandNotify(zCmdName, 0); |
| 676 | 676 | } |
| 677 | 677 | } |
| 678 | -#endif | |
| 679 | 678 | fossil_exit(0); |
| 679 | +#endif | |
| 680 | 680 | }else if( rc==2 ){ |
| 681 | 681 | int i, n; |
| 682 | 682 | Blob couldbe; |
| 683 | 683 | blob_zero(&couldbe); |
| 684 | 684 | n = strlen(zCmdName); |
| @@ -1590,11 +1590,15 @@ | ||
| 1590 | 1590 | rc = Th_WebpageHook(aWebpage[idx].zName, aWebpage[idx].cmdFlags); |
| 1591 | 1591 | }else{ |
| 1592 | 1592 | rc = TH_OK; |
| 1593 | 1593 | } |
| 1594 | 1594 | if( rc==TH_OK || rc==TH_RETURN || rc==TH_CONTINUE ){ |
| 1595 | - if( rc==TH_OK || rc==TH_RETURN ){ aWebpage[idx].xFunc(); } | |
| 1595 | + if( rc==TH_OK || rc==TH_RETURN ){ | |
| 1596 | +#endif | |
| 1597 | + aWebpage[idx].xFunc(); | |
| 1598 | +#ifdef FOSSIL_ENABLE_TH1_HOOKS | |
| 1599 | + } | |
| 1596 | 1600 | if( !g.isHTTP && !g.fNoThHook && (rc==TH_OK || rc==TH_CONTINUE) ){ |
| 1597 | 1601 | Th_WebpageNotify(aWebpage[idx].zName, aWebpage[idx].cmdFlags); |
| 1598 | 1602 | } |
| 1599 | 1603 | } |
| 1600 | 1604 | #endif |
| 1601 | 1605 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -673,12 +673,12 @@ | |
| 673 | } |
| 674 | if( !g.isHTTP && !g.fNoThHook && (rc==TH_OK || rc==TH_CONTINUE) ){ |
| 675 | Th_CommandNotify(zCmdName, 0); |
| 676 | } |
| 677 | } |
| 678 | #endif |
| 679 | fossil_exit(0); |
| 680 | }else if( rc==2 ){ |
| 681 | int i, n; |
| 682 | Blob couldbe; |
| 683 | blob_zero(&couldbe); |
| 684 | n = strlen(zCmdName); |
| @@ -1590,11 +1590,15 @@ | |
| 1590 | rc = Th_WebpageHook(aWebpage[idx].zName, aWebpage[idx].cmdFlags); |
| 1591 | }else{ |
| 1592 | rc = TH_OK; |
| 1593 | } |
| 1594 | if( rc==TH_OK || rc==TH_RETURN || rc==TH_CONTINUE ){ |
| 1595 | if( rc==TH_OK || rc==TH_RETURN ){ aWebpage[idx].xFunc(); } |
| 1596 | if( !g.isHTTP && !g.fNoThHook && (rc==TH_OK || rc==TH_CONTINUE) ){ |
| 1597 | Th_WebpageNotify(aWebpage[idx].zName, aWebpage[idx].cmdFlags); |
| 1598 | } |
| 1599 | } |
| 1600 | #endif |
| 1601 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -673,12 +673,12 @@ | |
| 673 | } |
| 674 | if( !g.isHTTP && !g.fNoThHook && (rc==TH_OK || rc==TH_CONTINUE) ){ |
| 675 | Th_CommandNotify(zCmdName, 0); |
| 676 | } |
| 677 | } |
| 678 | fossil_exit(0); |
| 679 | #endif |
| 680 | }else if( rc==2 ){ |
| 681 | int i, n; |
| 682 | Blob couldbe; |
| 683 | blob_zero(&couldbe); |
| 684 | n = strlen(zCmdName); |
| @@ -1590,11 +1590,15 @@ | |
| 1590 | rc = Th_WebpageHook(aWebpage[idx].zName, aWebpage[idx].cmdFlags); |
| 1591 | }else{ |
| 1592 | rc = TH_OK; |
| 1593 | } |
| 1594 | if( rc==TH_OK || rc==TH_RETURN || rc==TH_CONTINUE ){ |
| 1595 | if( rc==TH_OK || rc==TH_RETURN ){ |
| 1596 | #endif |
| 1597 | aWebpage[idx].xFunc(); |
| 1598 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 1599 | } |
| 1600 | if( !g.isHTTP && !g.fNoThHook && (rc==TH_OK || rc==TH_CONTINUE) ){ |
| 1601 | Th_WebpageNotify(aWebpage[idx].zName, aWebpage[idx].cmdFlags); |
| 1602 | } |
| 1603 | } |
| 1604 | #endif |
| 1605 |
+1
-1
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -409,11 +409,11 @@ | ||
| 409 | 409 | |
| 410 | 410 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 411 | 411 | # |
| 412 | 412 | # FOSSIL_ENABLE_SSL = 1 |
| 413 | 413 | |
| 414 | -#### Enable hooks for commands and unknown web pages via TH1 | |
| 414 | +#### Enable hooks for commands and web pages via TH1 | |
| 415 | 415 | # |
| 416 | 416 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 417 | 417 | |
| 418 | 418 | #### Enable scripting support via Tcl/Tk |
| 419 | 419 | # |
| 420 | 420 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -409,11 +409,11 @@ | |
| 409 | |
| 410 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 411 | # |
| 412 | # FOSSIL_ENABLE_SSL = 1 |
| 413 | |
| 414 | #### Enable hooks for commands and unknown web pages via TH1 |
| 415 | # |
| 416 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 417 | |
| 418 | #### Enable scripting support via Tcl/Tk |
| 419 | # |
| 420 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -409,11 +409,11 @@ | |
| 409 | |
| 410 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 411 | # |
| 412 | # FOSSIL_ENABLE_SSL = 1 |
| 413 | |
| 414 | #### Enable hooks for commands and web pages via TH1 |
| 415 | # |
| 416 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 417 | |
| 418 | #### Enable scripting support via Tcl/Tk |
| 419 | # |
| 420 |
+1
-1
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -48,11 +48,11 @@ | ||
| 48 | 48 | |
| 49 | 49 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 50 | 50 | # |
| 51 | 51 | # FOSSIL_ENABLE_SSL = 1 |
| 52 | 52 | |
| 53 | -#### Enable hooks for commands and unknown web pages via TH1 | |
| 53 | +#### Enable hooks for commands and web pages via TH1 | |
| 54 | 54 | # |
| 55 | 55 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 56 | 56 | |
| 57 | 57 | #### Enable scripting support via Tcl/Tk |
| 58 | 58 | # |
| 59 | 59 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -48,11 +48,11 @@ | |
| 48 | |
| 49 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 50 | # |
| 51 | # FOSSIL_ENABLE_SSL = 1 |
| 52 | |
| 53 | #### Enable hooks for commands and unknown web pages via TH1 |
| 54 | # |
| 55 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 56 | |
| 57 | #### Enable scripting support via Tcl/Tk |
| 58 | # |
| 59 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -48,11 +48,11 @@ | |
| 48 | |
| 49 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 50 | # |
| 51 | # FOSSIL_ENABLE_SSL = 1 |
| 52 | |
| 53 | #### Enable hooks for commands and web pages via TH1 |
| 54 | # |
| 55 | # FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 56 | |
| 57 | #### Enable scripting support via Tcl/Tk |
| 58 | # |
| 59 |
+1
-1
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -48,11 +48,11 @@ | ||
| 48 | 48 | |
| 49 | 49 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 50 | 50 | # |
| 51 | 51 | FOSSIL_ENABLE_SSL = 1 |
| 52 | 52 | |
| 53 | -#### Enable hooks for commands and unknown web pages via TH1 | |
| 53 | +#### Enable hooks for commands and web pages via TH1 | |
| 54 | 54 | # |
| 55 | 55 | FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 56 | 56 | |
| 57 | 57 | #### Enable scripting support via Tcl/Tk |
| 58 | 58 | # |
| 59 | 59 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -48,11 +48,11 @@ | |
| 48 | |
| 49 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 50 | # |
| 51 | FOSSIL_ENABLE_SSL = 1 |
| 52 | |
| 53 | #### Enable hooks for commands and unknown web pages via TH1 |
| 54 | # |
| 55 | FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 56 | |
| 57 | #### Enable scripting support via Tcl/Tk |
| 58 | # |
| 59 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -48,11 +48,11 @@ | |
| 48 | |
| 49 | #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) |
| 50 | # |
| 51 | FOSSIL_ENABLE_SSL = 1 |
| 52 | |
| 53 | #### Enable hooks for commands and web pages via TH1 |
| 54 | # |
| 55 | FOSSIL_ENABLE_TH1_HOOKS = 1 |
| 56 | |
| 57 | #### Enable scripting support via Tcl/Tk |
| 58 | # |
| 59 |