Fossil

Check-in [6f1b5d60]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:There's already an nFullName in FileTreeNode, so use that. Remove other pointless redundancy, too.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6f1b5d6047b39e08d84ff01c837fb64f50039ffb
User & Date: joel 2014-01-07 03:58:58
Context
2014-01-07
10:16
Merge changes from the broken-build branch into trunk (after fixing the build). check-in: de86ef41 user: drh tags: trunk
09:03
Make sure that shell.o and sqlite3.o are rebuilt whenever compilation options change. This should prevent problems like Problem with compilation under MINGW once and for all. check-in: 1ab27288 user: jan.nijtmans tags: broken-build
08:25
merge trunk Closed-Leaf check-in: f52089d9 user: jan.nijtmans tags: sqlite-min-to-3.7.17
04:21
Implement runtime check for a minimum required version of SQLite. check-in: d0476bd9 user: mistachkin tags: sqliteRuntimeCheck
03:58
There's already an nFullName in FileTreeNode, so use that. Remove other pointless redundancy, too. check-in: 6f1b5d60 user: joel tags: trunk
03:39
Move nFullName declaration to proper location check-in: 98b297a3 user: joel tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/browse.c.

567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583

584
585
586
587
588
589
590
591
592
593
  }else{
    @ <li class="dir subdir">
    @ <a>%h(zProjectName)</a>
  }
  @ <ul>
  for(p=sTree.pFirst; p; p=p->pNext){
    if( p->isDir ){
      int nFullName = strlen(p->zFullName)+1;
      if( nD && nFullName==nD ){
        @ <li class="dir subdir">
      }else{
        @ <li class="dir">
      }
      if( fossil_strcmp(p->zFullName, zD)==0 ){
        @ <a>%h(p->zName)</a>
      }else{
        char *zLink = href("%s", url_render(&sURI, "name", p->zFullName, 0, 0));

        @ %z(zLink)%h(p->zName)</a>
      }
      if( startExpanded || nFullName<=nD ){
        @ <ul>
      }else{
        @ <ul style='display:none;'>
      }
    }else{
      char *zLink;
      if( zCI ){







<
|

<
<
<
<



>


|







567
568
569
570
571
572
573

574
575




576
577
578
579
580
581
582
583
584
585
586
587
588
589
  }else{
    @ <li class="dir subdir">
    @ <a>%h(zProjectName)</a>
  }
  @ <ul>
  for(p=sTree.pFirst; p; p=p->pNext){
    if( p->isDir ){

      if( p->nFullName==nD-1 ){
        @ <li class="dir subdir">




        @ <a>%h(p->zName)</a>
      }else{
        char *zLink = href("%s", url_render(&sURI, "name", p->zFullName, 0, 0));
        @ <li class="dir">
        @ %z(zLink)%h(p->zName)</a>
      }
      if( startExpanded || p->nFullName<=nD ){
        @ <ul>
      }else{
        @ <ul style='display:none;'>
      }
    }else{
      char *zLink;
      if( zCI ){