Changeset 363 for trunk/include
- Timestamp:
- Oct 21, 2011, 1:08:28 AM (13 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/sh_inotify.h
r261 r363 6 6 typedef struct 7 7 { 8 /* 9 void * list_of_watches; 10 */ 11 8 12 int watch[SH_INOTIFY_MAX]; 9 13 int flag[SH_INOTIFY_MAX]; 10 14 char * file[SH_INOTIFY_MAX]; 11 int count;12 15 16 int count; 17 int max_count; 13 18 } sh_watches; 19 20 #define SH_INOTIFY_INITIALIZER { { 0 }, { 0 }, { NULL}, 0, 0 } 14 21 15 22 int sh_inotify_wait_for_change(char * filename, sh_watches * watches, -
trunk/include/zAVLTree.h
r1 r363 33 33 34 34 /* typedef the keytype */ 35 typedef const char* zAVLKey;35 typedef const void * zAVLKey; 36 36 37 37 /* Comparison function for strings is strcmp(). */ 38 #define zAVLKey_cmp(tree, a, b) (strcmp((a), (b))) 38 /* #define zAVLKey_cmp(tree, a, b) (strcmp((a), (b))) */ 39 40 #define zAVL_KEY_STRING 0 41 #define zAVL_KEY_INT 1 39 42 40 43 … … 53 56 long count; 54 57 zAVLKey (*getkey)(const void *item); 58 int keytype; 55 59 } zAVLTree; 56 60 … … 62 66 63 67 64 extern zAVLTree *zAVLAllocTree (zAVLKey (*getkey)(void const *item) );68 extern zAVLTree *zAVLAllocTree (zAVLKey (*getkey)(void const *item), int keytype); 65 69 extern void zAVLFreeTree (zAVLTree *avltree, void (freeitem)(void *item)); 66 70 extern int zAVLInsert (zAVLTree *avltree, void *item);
Note:
See TracChangeset
for help on using the changeset viewer.