Fossil SCM

Always define variables at block start

jan.nijtmans 2014-03-11 23:34 trunk
Commit 1c9e0233827299e10076dc1e5f2e318fa962cc7c
1 file changed +3 -3
+3 -3
--- src/info.c
+++ src/info.c
@@ -500,10 +500,13 @@
500500
const char *zName; /* Name of the checkin to be displayed */
501501
const char *zUuid; /* UUID of zName */
502502
const char *zParent; /* UUID of the parent checkin (if any) */
503503
const char *zRe; /* regex parameter */
504504
ReCompiled *pRe = 0; /* regex */
505
+ const char *zW; /* URL param for ignoring whitespace */
506
+ const char *zPage = "vinfo"; /* Page that shows diffs */
507
+ const char *zPageHide = "ci"; /* Page that hides diffs */
505508
506509
login_check_credentials();
507510
if( !g.perm.Read ){ login_needed(); return; }
508511
zName = P("name");
509512
rid = name_to_rid_www("name");
@@ -665,13 +668,10 @@
665668
style_header("Check-in Information");
666669
login_anonymous_available();
667670
}
668671
db_finalize(&q1);
669672
showTags(rid, "");
670
- const char *zW; /* URL param for ignoring whitespace */
671
- const char *zPage = "vinfo"; /* Page that shows diffs */
672
- const char *zPageHide = "ci"; /* Page that hides diffs */
673673
@ <div class="section">Changes</div>
674674
@ <div class="sectionmenu">
675675
verboseFlag = g.zPath[0]!='c';
676676
if( db_get_boolean("show-version-diffs", 0)==0 ){
677677
verboseFlag = !verboseFlag;
678678
--- src/info.c
+++ src/info.c
@@ -500,10 +500,13 @@
500 const char *zName; /* Name of the checkin to be displayed */
501 const char *zUuid; /* UUID of zName */
502 const char *zParent; /* UUID of the parent checkin (if any) */
503 const char *zRe; /* regex parameter */
504 ReCompiled *pRe = 0; /* regex */
 
 
 
505
506 login_check_credentials();
507 if( !g.perm.Read ){ login_needed(); return; }
508 zName = P("name");
509 rid = name_to_rid_www("name");
@@ -665,13 +668,10 @@
665 style_header("Check-in Information");
666 login_anonymous_available();
667 }
668 db_finalize(&q1);
669 showTags(rid, "");
670 const char *zW; /* URL param for ignoring whitespace */
671 const char *zPage = "vinfo"; /* Page that shows diffs */
672 const char *zPageHide = "ci"; /* Page that hides diffs */
673 @ <div class="section">Changes</div>
674 @ <div class="sectionmenu">
675 verboseFlag = g.zPath[0]!='c';
676 if( db_get_boolean("show-version-diffs", 0)==0 ){
677 verboseFlag = !verboseFlag;
678
--- src/info.c
+++ src/info.c
@@ -500,10 +500,13 @@
500 const char *zName; /* Name of the checkin to be displayed */
501 const char *zUuid; /* UUID of zName */
502 const char *zParent; /* UUID of the parent checkin (if any) */
503 const char *zRe; /* regex parameter */
504 ReCompiled *pRe = 0; /* regex */
505 const char *zW; /* URL param for ignoring whitespace */
506 const char *zPage = "vinfo"; /* Page that shows diffs */
507 const char *zPageHide = "ci"; /* Page that hides diffs */
508
509 login_check_credentials();
510 if( !g.perm.Read ){ login_needed(); return; }
511 zName = P("name");
512 rid = name_to_rid_www("name");
@@ -665,13 +668,10 @@
668 style_header("Check-in Information");
669 login_anonymous_available();
670 }
671 db_finalize(&q1);
672 showTags(rid, "");
 
 
 
673 @ <div class="section">Changes</div>
674 @ <div class="sectionmenu">
675 verboseFlag = g.zPath[0]!='c';
676 if( db_get_boolean("show-version-diffs", 0)==0 ){
677 verboseFlag = !verboseFlag;
678

Keyboard Shortcuts

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