| 22 | #define CI_SENTINEL ((cbm_changes_t *)(void *)&ci_sentinel_byte) |
| 23 | static bool ci_eq(const char *a,const char *b) { return a && b && strcmp(a,b)==0; } |
| 24 | static bool ci_path(const cbm_change_file_t *row,const unsigned char *path,size_t n,char status) { |
| 25 | return row && row->path && row->path_length==n && memcmp(row->path,path,n)==0 && |
| 26 | row->path[n]==0 && row->status==status; |
| 27 | } |
| 28 | static bool ci_cpath(const cbm_change_file_t *row,const char *path,char status) { |
| 29 | return ci_path(row,(const unsigned char *)path,strlen(path),status); |
| 30 | } |