Fossil SCM

Add 'unicodeCmdLine' option to the TH1 'hasfeature' command.

mistachkin 2015-03-05 17:22 trunk
Commit edb8237f06040e17c090d96ae1f8d649850c9091
1 file changed +6
--- src/th_main.c
+++ src/th_main.c
@@ -513,10 +513,11 @@
513513
** "useTclStubs" = USE_TCL_STUBS
514514
** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS
515515
** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS
516516
** "json" = FOSSIL_ENABLE_JSON
517517
** "markdown" = FOSSIL_ENABLE_MARKDOWN
518
+** "unicodeCmdLine" = !BROKEN_MINGW_CMDLINE
518519
**
519520
*/
520521
static int hasfeatureCmd(
521522
Th_Interp *interp,
522523
void *p,
@@ -570,10 +571,15 @@
570571
#endif
571572
#if defined(FOSSIL_ENABLE_JSON)
572573
else if( 0 == fossil_strnicmp( zArg, "json\0", 5 ) ){
573574
rc = 1;
574575
}
576
+#endif
577
+#if !defined(BROKEN_MINGW_CMDLINE)
578
+ else if( 0 == fossil_strnicmp( zArg, "unicodeCmdLine\0", 15 ) ){
579
+ rc = 1;
580
+ }
575581
#endif
576582
else if( 0 == fossil_strnicmp( zArg, "markdown\0", 9 ) ){
577583
rc = 1;
578584
}
579585
if( g.thTrace ){
580586
--- src/th_main.c
+++ src/th_main.c
@@ -513,10 +513,11 @@
513 ** "useTclStubs" = USE_TCL_STUBS
514 ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS
515 ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS
516 ** "json" = FOSSIL_ENABLE_JSON
517 ** "markdown" = FOSSIL_ENABLE_MARKDOWN
 
518 **
519 */
520 static int hasfeatureCmd(
521 Th_Interp *interp,
522 void *p,
@@ -570,10 +571,15 @@
570 #endif
571 #if defined(FOSSIL_ENABLE_JSON)
572 else if( 0 == fossil_strnicmp( zArg, "json\0", 5 ) ){
573 rc = 1;
574 }
 
 
 
 
 
575 #endif
576 else if( 0 == fossil_strnicmp( zArg, "markdown\0", 9 ) ){
577 rc = 1;
578 }
579 if( g.thTrace ){
580
--- src/th_main.c
+++ src/th_main.c
@@ -513,10 +513,11 @@
513 ** "useTclStubs" = USE_TCL_STUBS
514 ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS
515 ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS
516 ** "json" = FOSSIL_ENABLE_JSON
517 ** "markdown" = FOSSIL_ENABLE_MARKDOWN
518 ** "unicodeCmdLine" = !BROKEN_MINGW_CMDLINE
519 **
520 */
521 static int hasfeatureCmd(
522 Th_Interp *interp,
523 void *p,
@@ -570,10 +571,15 @@
571 #endif
572 #if defined(FOSSIL_ENABLE_JSON)
573 else if( 0 == fossil_strnicmp( zArg, "json\0", 5 ) ){
574 rc = 1;
575 }
576 #endif
577 #if !defined(BROKEN_MINGW_CMDLINE)
578 else if( 0 == fossil_strnicmp( zArg, "unicodeCmdLine\0", 15 ) ){
579 rc = 1;
580 }
581 #endif
582 else if( 0 == fossil_strnicmp( zArg, "markdown\0", 9 ) ){
583 rc = 1;
584 }
585 if( g.thTrace ){
586

Keyboard Shortcuts

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