"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libinotifytools/src/redblack.c" between
inotify-tools-3.20.2.2.tar.gz and inotify-tools-3.20.11.0.tar.gz

About: inotify-tools offers commandline utilities relating to inotify (wait for or watch particular events on files).

redblack.c  (inotify-tools-3.20.2.2):redblack.c  (inotify-tools-3.20.11.0)
skipping to change at line 295 skipping to change at line 295
/* Search for and if not found and insert is true, will add a new /* Search for and if not found and insert is true, will add a new
** node in. Returns a pointer to the new node, or the node found ** node in. Returns a pointer to the new node, or the node found
*/ */
static struct RB_ENTRY(node) * static struct RB_ENTRY(node) *
RB_ENTRY(_traverse)(int insert, const RB_ENTRY(data_t) *key, struct RB_ENTRY(tre e) *rbinfo) RB_ENTRY(_traverse)(int insert, const RB_ENTRY(data_t) *key, struct RB_ENTRY(tre e) *rbinfo)
{ {
struct RB_ENTRY(node) *x,*y,*z; struct RB_ENTRY(node) *x,*y,*z;
int cmp; int cmp;
int found=0; int found=0;
int cmpmods();
y=RBNULL; /* points to the parent of x */ y=RBNULL; /* points to the parent of x */
x=rbinfo->rb_root; x=rbinfo->rb_root;
/* walk x down the tree */ /* walk x down the tree */
while(x!=RBNULL && found==0) while(x!=RBNULL && found==0)
{ {
y=x; y=x;
/* printf("key=%s, RB_GET(x, key)=%s\n", key, RB_GET(x, key)); */ /* printf("key=%s, RB_GET(x, key)=%s\n", key, RB_GET(x, key)); */
#ifndef RB_CUSTOMIZE #ifndef RB_CUSTOMIZE
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

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