27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#include <sys/stat.h>
#include <stdlib.h> /* atexit() */
#if defined(_WIN32)
# include <windows.h>
#else
# include <errno.h> /* errno global */
#endif
#if INTERFACE
#ifdef FOSSIL_ENABLE_JSON
# include "cson_amalgamation.h" /* JSON API. */
# include "json_detail.h"
#endif
#ifdef FOSSIL_ENABLE_TCL
#include "tcl.h"
#endif
/*
** Number of elements in an array
*/
#define count(X) (sizeof(X)/sizeof(X[0]))
/*
|
>
>
>
>
>
>
>
<
<
<
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#include <sys/stat.h>
#include <stdlib.h> /* atexit() */
#if defined(_WIN32)
# include <windows.h>
#else
# include <errno.h> /* errno global */
#endif
#include "zlib.h"
#ifdef FOSSIL_ENABLE_SSL
# include "openssl/opensslv.h"
#endif
#if INTERFACE
#ifdef FOSSIL_ENABLE_TCL
# include "tcl.h"
#endif
#ifdef FOSSIL_ENABLE_JSON
# include "cson_amalgamation.h" /* JSON API. */
# include "json_detail.h"
#endif
/*
** Number of elements in an array
*/
#define count(X) (sizeof(X)/sizeof(X[0]))
/*
|
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
|
** Print the source code version number for the fossil executable.
** If the verbose option is specified, additional details will
** be output about what optional features this binary was compiled
** with
*/
void version_cmd(void){
fossil_print("This is fossil version " RELEASE_VERSION " "
MANIFEST_VERSION " " MANIFEST_DATE " UTC\n");
if(!find_option("verbose","v",0)){
return;
}else{
int count = 0;
fossil_print("Compiled using %s with the following features enabled:\n",
COMPILER_NAME);
#if defined(FOSSIL_ENABLE_SSL)
++count;
fossil_print("\tSSL\n");
#endif
#if defined(FOSSIL_ENABLE_TCL)
++count;
fossil_print("\tTCL\n");
#endif
#if defined(FOSSIL_ENABLE_TCL_STUBS)
++count;
fossil_print("\tTCL_STUBS\n");
#endif
#if defined(FOSSIL_ENABLE_JSON)
++count;
fossil_print("\tJSON\n");
#endif
#if defined(FOSSIL_ENABLE_MARKDOWN)
++count;
fossil_print("\tMARKDOWN\n");
#endif
if( !count ){
fossil_print("\tno optional features enabled.\n");
}
}
}
/*
** COMMAND: help
|
|
>
|
|
>
|
|
|
|
|
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
|
** Print the source code version number for the fossil executable.
** If the verbose option is specified, additional details will
** be output about what optional features this binary was compiled
** with
*/
void version_cmd(void){
fossil_print("This is fossil version " RELEASE_VERSION " "
MANIFEST_VERSION " " MANIFEST_DATE " UTC\n");
if(!find_option("verbose","v",0)){
return;
}else{
int count = 0;
fossil_print("\nCompiled using \"%s\" with\nSQLite %s [%s],\nzlib %s, "
"and the following optional features enabled:\n\n",
COMPILER_NAME, SQLITE_VERSION, SQLITE_SOURCE_ID,
ZLIB_VERSION);
#if defined(FOSSIL_ENABLE_SSL)
++count;
fossil_print("\tSSL (%s)\n", OPENSSL_VERSION_TEXT);
#endif
#if defined(FOSSIL_ENABLE_TCL)
++count;
fossil_print("\tTCL (Tcl %s)\n", TCL_PATCH_LEVEL);
#endif
#if defined(FOSSIL_ENABLE_TCL_STUBS)
++count;
fossil_print("\tTCL_STUBS\n");
#endif
#if defined(FOSSIL_ENABLE_JSON)
++count;
fossil_print("\tJSON (API %s)\n", FOSSIL_JSON_API_VERSION);
#endif
#if defined(FOSSIL_ENABLE_MARKDOWN)
++count;
fossil_print("\tMARKDOWN\n");
#endif
if( !count ){
fossil_print("\tNo optional features were enabled.\n");
}
}
}
/*
** COMMAND: help
|