Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fixes to the verbose mode of the version command. Also, make sure to consistently order optional feature lists. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
b85a18ba2016312f71b3f8e200e3ff60 |
| User & Date: | mistachkin 2013-03-18 06:09:21.000 |
Context
|
2013-03-18
| ||
| 07:05 | Improve consistency of the version information. ... (check-in: e452aa97f1 user: mistachkin tags: trunk) | |
| 06:09 | Fixes to the verbose mode of the version command. Also, make sure to consistently order optional feature lists. ... (check-in: b85a18ba20 user: mistachkin tags: trunk) | |
| 05:38 | Correct inverted result of looks_like_binary() macro. Correct off-by-one error in the looks_like_utf16() function. Restore original meaning of the LOOK_CR and LOOK_LF flags. Restore LOOK_ODD flag, abstracting UTF-16 content inspection away from blob length. When performing byte swaps, do so consistently. Fix test cases to work with Tcl versions prior to 8.6. Add could_be_utf16() function to preform the preliminary blob checks. Adjustments to style and comments. ... (check-in: e3f9a42b58 user: mistachkin tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
754 755 756 757 758 759 760 |
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;
| | > > > > > | > > > | 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 |
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");
}
}
}
/*
|
| ︙ | ︙ |
Changes to src/th_main.c.
| ︙ | ︙ | |||
259 260 261 262 263 264 265 | /* ** TH command: hasfeature STRING ** ** Return true if the fossil binary has the given compile-time feature ** enabled. The set of features includes: ** | < > < < < < < > > > > > | 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
/*
** TH command: hasfeature STRING
**
** Return true if the fossil binary has the given compile-time feature
** enabled. The set of features includes:
**
** "ssl" = FOSSIL_ENABLE_SSL
** "tcl" = FOSSIL_ENABLE_TCL
** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS
** "json" = FOSSIL_ENABLE_JSON
** "markdown" = FOSSIL_ENABLE_MARKDOWN
**
*/
static int hasfeatureCmd(
Th_Interp *interp,
void *p,
int argc,
const char **argv,
int *argl
){
int rc = 0;
char const * zArg;
if( argc!=2 ){
return Th_WrongNumArgs(interp, "hasfeature STRING");
}
zArg = (char const*)argv[1];
if(NULL==zArg){
/* placeholder for following ifdefs... */
}
#if defined(FOSSIL_ENABLE_SSL)
else if( 0 == fossil_strnicmp( zArg, "ssl", 3 ) ){
rc = 1;
}
#endif
#if defined(FOSSIL_ENABLE_TCL)
else if( 0 == fossil_strnicmp( zArg, "tcl", 3 ) ){
rc = 1;
}
#endif
#if defined(FOSSIL_ENABLE_TCL_STUBS)
else if( 0 == fossil_strnicmp( zArg, "tclStubs", 8 ) ){
rc = 1;
}
#endif
#if defined(FOSSIL_ENABLE_JSON)
else if( 0 == fossil_strnicmp( zArg, "json", 4 ) ){
rc = 1;
}
#endif
#if defined(FOSSIL_ENABLE_MARKDOWN)
else if( 0 == fossil_strnicmp( zArg, "markdown", 8 ) ){
rc = 1;
}
#endif
if( g.thTrace ){
|
| ︙ | ︙ |