Fossil

Check-in [084690e7]
Login

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

Overview
Comment:Remove an unused global variable from the path_shortest() logic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 084690e77201c1d38a300fc9845a2133e797e60e0ab0e603c45c2dadafaede4e
User & Date: drh 2017-08-24 19:30:17
Context
2017-08-29
07:58
(cherry-pick): SQLite version 3.20.1 (cherry-pick): Remove an unused global variable from the path_shortest() logic check-in: ae8709e2 user: jan.nijtmans tags: branch-2.3
2017-08-28
14:04
Update dirent to version 1.23. See https://github.com/tronkko/dirent/releases check-in: ade4a657 user: jan.nijtmans tags: trunk
2017-08-24
19:30
Remove an unused global variable from the path_shortest() logic. check-in: 084690e7 user: drh tags: trunk
14:20
Typo fixes thanks to rosscanning, ref http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg25775.html check-in: f98852a0 user: andygoth tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/path.c.

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
*/
static struct {
  PathNode *pCurrent;   /* Current generation of nodes */
  PathNode *pAll;       /* All nodes */
  Bag seen;             /* Nodes seen before */
  int nStep;            /* Number of steps from first to last */
  PathNode *pStart;     /* Earliest node */
  PathNode *pPivot;     /* Common ancestor of pStart and pEnd */
  PathNode *pEnd;       /* Most recent */
} path;

/*
** Return the first (last) element of the computed path.
*/
PathNode *path_first(void){ return path.pStart; }







<







43
44
45
46
47
48
49

50
51
52
53
54
55
56
*/
static struct {
  PathNode *pCurrent;   /* Current generation of nodes */
  PathNode *pAll;       /* All nodes */
  Bag seen;             /* Nodes seen before */
  int nStep;            /* Number of steps from first to last */
  PathNode *pStart;     /* Earliest node */

  PathNode *pEnd;       /* Most recent */
} path;

/*
** Return the first (last) element of the computed path.
*/
PathNode *path_first(void){ return path.pStart; }