Skip to content

Commit

Permalink
finxing bugs with hashtable
Browse files Browse the repository at this point in the history
  • Loading branch information
palkh committed Jul 25, 2024
1 parent 09a856d commit 2fac5f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Binary file modified cutils.a
Binary file not shown.
5 changes: 2 additions & 3 deletions cutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ The CUtils Library is a collection of C functions.
It can be used for any C project, but it was originally made for the Libspm/CCCP project.
It is licensed under the GNU General Public License v3.0.
* Copyright (C) 2019-2020 PKD <pkd@sovietlinxu.ml>
* Copyright (C) 2019-2024 PKD <pkd@sovietlinux.ml>
*/
#include "string.h"
Expand Down Expand Up @@ -190,10 +190,9 @@ void dbg_free(void* ptr,char* file,int line);
#define realloc(ptr,size) dbg_realloc(ptr,size,__FILE__,__LINE__)
#define strdup(str) dbg_strdup(str,__FILE__,__LINE__)
#define free(ptr) dbg_free(ptr,__FILE__,__LINE__)

int check_leaks();
#endif

int check_leaks();

#endif

Expand Down
3 changes: 1 addition & 2 deletions src/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#include <stdlib.h>
#include <string.h>

#include "hashtable.h"
#include "cutils.h"
#include "../cutils.h"

hashtable* hm_create(int capacity)
{
Expand Down

0 comments on commit 2fac5f8

Please sign in to comment.