"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libinotifytools/src/redblack.h" 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.h  (inotify-tools-3.20.2.2):redblack.h  (inotify-tools-3.20.11.0)
skipping to change at line 30 skipping to change at line 30
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* Header file for redblack.c, should be included by any code that /* Header file for redblack.c, should be included by any code that
** uses redblack.c since it defines the functions ** uses redblack.c since it defines the functions
*/ */
/* Stop multiple includes */ /* Stop multiple includes */
#ifndef _REDBLACK_H #ifndef _REDBLACK_H
#define _REDBLACK_H
#ifndef RB_CUSTOMIZE #ifndef RB_CUSTOMIZE
/* /*
* Without customization, the data member in the tree nodes is a void * Without customization, the data member in the tree nodes is a void
* pointer, and you need to pass in a comparison function to be * pointer, and you need to pass in a comparison function to be
* applied at runtime. With customization, you specify the data type * applied at runtime. With customization, you specify the data type
* as the macro RB_ENTRY(data_t) (has to be a macro because compilers * as the macro RB_ENTRY(data_t) (has to be a macro because compilers
* gag on typdef void) and the name of the compare function as the * gag on typdef void) and the name of the compare function as the
* value of the macro RB_CMP. Because the comparison function is * value of the macro RB_CMP. Because the comparison function is
* compiled in, RB_CMP only needs to take two arguments. If your * compiled in, RB_CMP only needs to take two arguments. If your
skipping to change at line 135 skipping to change at line 136
#ifndef no_readlist #ifndef no_readlist
RB_STATIC RBLIST *RB_ENTRY(openlist)(const struct RB_ENTRY(tree) *); RB_STATIC RBLIST *RB_ENTRY(openlist)(const struct RB_ENTRY(tree) *);
RB_STATIC const RB_ENTRY(data_t) *RB_ENTRY(readlist)(RBLIST *); RB_STATIC const RB_ENTRY(data_t) *RB_ENTRY(readlist)(RBLIST *);
RB_STATIC void RB_ENTRY(closelist)(RBLIST *); RB_STATIC void RB_ENTRY(closelist)(RBLIST *);
#endif #endif
/* Some useful macros */ /* Some useful macros */
#define rbmin(rbinfo) RB_ENTRY(lookup)(RB_LUFIRST, NULL, (rbinfo)) #define rbmin(rbinfo) RB_ENTRY(lookup)(RB_LUFIRST, NULL, (rbinfo))
#define rbmax(rbinfo) RB_ENTRY(lookup)(RB_LULAST, NULL, (rbinfo)) #define rbmax(rbinfo) RB_ENTRY(lookup)(RB_LULAST, NULL, (rbinfo))
#define _REDBLACK_H
#endif /* _REDBLACK_H */ #endif /* _REDBLACK_H */
/* /*
* *
* $Log: redblack.h,v $ * $Log: redblack.h,v $
* Revision 1.9 2003/10/24 01:31:21 damo * Revision 1.9 2003/10/24 01:31:21 damo
* Patches from Eric Raymond: %prefix is implemented.  Various other small * Patches from Eric Raymond: %prefix is implemented.  Various other small
* changes avoid stepping on global namespaces and improve the documentation. * changes avoid stepping on global namespaces and improve the documentation.
* *
* Revision 1.8 2003/10/23 04:18:47 damo * Revision 1.8 2003/10/23 04:18:47 damo
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

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