Fossil SCM

Modify the test-echo command to also show the name of the executable.

drh 2012-11-29 18:46 trunk
Commit 5ed566f805daa2151c17d77d8bdf4380d55b6015
1 file changed +1
+1
--- src/main.c
+++ src/main.c
@@ -2037,10 +2037,11 @@
20372037
** to verify the fossil_filename_to_utf8() routine on Windows and Mac.
20382038
*/
20392039
void test_echo_cmd(void){
20402040
int i, j;
20412041
if( find_option("hex",0,0)==0 ){
2042
+ fossil_print("g.nameOfExe = [%s]\n", g.nameOfExe);
20422043
for(i=0; i<g.argc; i++){
20432044
fossil_print("argv[%d] = [%s]\n", i, g.argv[i]);
20442045
}
20452046
}else{
20462047
unsigned char *z, c;
20472048
--- src/main.c
+++ src/main.c
@@ -2037,10 +2037,11 @@
2037 ** to verify the fossil_filename_to_utf8() routine on Windows and Mac.
2038 */
2039 void test_echo_cmd(void){
2040 int i, j;
2041 if( find_option("hex",0,0)==0 ){
 
2042 for(i=0; i<g.argc; i++){
2043 fossil_print("argv[%d] = [%s]\n", i, g.argv[i]);
2044 }
2045 }else{
2046 unsigned char *z, c;
2047
--- src/main.c
+++ src/main.c
@@ -2037,10 +2037,11 @@
2037 ** to verify the fossil_filename_to_utf8() routine on Windows and Mac.
2038 */
2039 void test_echo_cmd(void){
2040 int i, j;
2041 if( find_option("hex",0,0)==0 ){
2042 fossil_print("g.nameOfExe = [%s]\n", g.nameOfExe);
2043 for(i=0; i<g.argc; i++){
2044 fossil_print("argv[%d] = [%s]\n", i, g.argv[i]);
2045 }
2046 }else{
2047 unsigned char *z, c;
2048

Keyboard Shortcuts

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