"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libutil/gpathop.c" between
global-6.6.4.tar.gz and global-6.6.5.tar.gz

About: GNU GLOBAL is a source code tag system that works the same way across diverse environments. It is similar to ctags or etags, but it is independent of any editor.

gpathop.c  (global-6.6.4):gpathop.c  (global-6.6.5)
skipping to change at line 52 skipping to change at line 52
#include "strbuf.h" #include "strbuf.h"
#include "strlimcpy.h" #include "strlimcpy.h"
static DBOP *dbop; static DBOP *dbop;
static int _startkey; static int _startkey;
static int _nextkey; static int _nextkey;
static int _mode; static int _mode;
static int opened; static int opened;
static int created; static int created;
int openflags; static int openflags;
void void
set_gpath_flags(int flags) { set_gpath_flags(int flags) {
openflags = flags; openflags = flags;
} }
/** /**
* compare_nearpath: compare function for 'nearness sort'. * compare_nearpath: compare function for 'nearness sort'.
*/ */
static const char *nearbase; static const char *nearbase;
static int static int
compare_nearpath(const void *s1, const void *s2) compare_nearpath(const void *s1, const void *s2)
skipping to change at line 346 skipping to change at line 346
{ {
char fid[MAXFIDLEN]; char fid[MAXFIDLEN];
assert(opened > 0); assert(opened > 0);
if (--opened > 0) if (--opened > 0)
return; return;
if (_mode == 1 && created) { if (_mode == 1 && created) {
dbop_close(dbop); dbop_close(dbop);
return; return;
} }
if (_mode == 1 || _mode == 2) { if (_mode == 1 ||
if (_startkey < _nextkey) { (_mode == 2 && _startkey < _nextkey))
snprintf(fid, sizeof(fid), "%d", _nextkey); {
dbop_update(dbop, NEXTKEY, fid); snprintf(fid, sizeof(fid), "%d", _nextkey);
} dbop_update(dbop, NEXTKEY, fid);
} }
dbop_close(dbop); dbop_close(dbop);
if (_mode == 1) if (_mode == 1)
created = 1; created = 1;
} }
/** /**
* GFIND *gfind_open(const char *dbpath, const char *local, int target, int flag s) * GFIND *gfind_open(const char *dbpath, const char *local, int target, int flag s)
* *
* gfind iterator using GPATH. * gfind iterator using GPATH.
 End of changes. 2 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)