mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 09:40:20 +00:00
Use glib for all allocations
- Removes need to check for malloc failure - Removes need for NULL checks on free - Adds checks for integer overflows - Removes some extra memset calls - Removes chance of mixing libc and glib malloc/free
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#ifndef HEXCHAT_TREE_H
|
||||
#define HEXCHAT_TREE_H
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
typedef struct _tree tree;
|
||||
|
||||
typedef int (tree_cmp_func) (const void *keya, const void *keyb, void *data);
|
||||
|
||||
Reference in New Issue
Block a user