Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/ext2fs
File: hashmap.h
#ifndef HASHMAP_H
[0] Fix | Delete
# define HASHMAP_H
[1] Fix | Delete
[2] Fix | Delete
# include <stdlib.h>
[3] Fix | Delete
# include <stdint.h>
[4] Fix | Delete
[5] Fix | Delete
#ifndef __GNUC_PREREQ
[6] Fix | Delete
#if defined(__GNUC__) && defined(__GNUC_MINOR__)
[7] Fix | Delete
#define __GNUC_PREREQ(maj, min) \
[8] Fix | Delete
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
[9] Fix | Delete
#else
[10] Fix | Delete
#define __GNUC_PREREQ(maj, min) 0
[11] Fix | Delete
#endif
[12] Fix | Delete
#endif
[13] Fix | Delete
[14] Fix | Delete
struct ext2fs_hashmap {
[15] Fix | Delete
uint32_t size;
[16] Fix | Delete
uint32_t(*hash)(const void *key, size_t len);
[17] Fix | Delete
void(*free)(void*);
[18] Fix | Delete
struct ext2fs_hashmap_entry *first;
[19] Fix | Delete
struct ext2fs_hashmap_entry *last;
[20] Fix | Delete
struct ext2fs_hashmap_entry {
[21] Fix | Delete
void *data;
[22] Fix | Delete
const void *key;
[23] Fix | Delete
size_t key_len;
[24] Fix | Delete
struct ext2fs_hashmap_entry *next;
[25] Fix | Delete
struct ext2fs_hashmap_entry *list_next;
[26] Fix | Delete
struct ext2fs_hashmap_entry *list_prev;
[27] Fix | Delete
#if __GNUC_PREREQ (4, 8)
[28] Fix | Delete
#pragma GCC diagnostic push
[29] Fix | Delete
#pragma GCC diagnostic ignored "-Wpedantic"
[30] Fix | Delete
#endif
[31] Fix | Delete
} *entries[0];
[32] Fix | Delete
#if __GNUC_PREREQ (4, 8)
[33] Fix | Delete
#pragma GCC diagnostic pop
[34] Fix | Delete
#endif
[35] Fix | Delete
};
[36] Fix | Delete
[37] Fix | Delete
struct ext2fs_hashmap *ext2fs_hashmap_create(
[38] Fix | Delete
uint32_t(*hash_fct)(const void*, size_t),
[39] Fix | Delete
void(*free_fct)(void*), size_t size);
[40] Fix | Delete
void ext2fs_hashmap_add(struct ext2fs_hashmap *h, void *data, const void *key,
[41] Fix | Delete
size_t key_len);
[42] Fix | Delete
void *ext2fs_hashmap_lookup(struct ext2fs_hashmap *h, const void *key,
[43] Fix | Delete
size_t key_len);
[44] Fix | Delete
void *ext2fs_hashmap_iter_in_order(struct ext2fs_hashmap *h,
[45] Fix | Delete
struct ext2fs_hashmap_entry **it);
[46] Fix | Delete
void ext2fs_hashmap_del(struct ext2fs_hashmap *h,
[47] Fix | Delete
struct ext2fs_hashmap_entry *e);
[48] Fix | Delete
void ext2fs_hashmap_free(struct ext2fs_hashmap *h);
[49] Fix | Delete
[50] Fix | Delete
uint32_t ext2fs_djb2_hash(const void *str, size_t size);
[51] Fix | Delete
[52] Fix | Delete
#endif /* !HASHMAP_H */
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function