aboutsummaryrefslogtreecommitdiff
path: root/src/ht
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-01 18:10:36 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-01 18:10:36 +0200
commit9316f2063255bd4a0abd5c38d4c065969a8980bb (patch)
tree6c59f5192d372465219a121857ec4f726f34b38e /src/ht
parentdd5d60dc4cf8052feb00847f9b2276cf105b0551 (diff)
downloadlibft-9316f2063255bd4a0abd5c38d4c065969a8980bb.tar.gz
libft-9316f2063255bd4a0abd5c38d4c065969a8980bb.tar.bz2
libft-9316f2063255bd4a0abd5c38d4c065969a8980bb.zip
Norm compliant comment format, dirty script for doxygen comments
Diffstat (limited to 'src/ht')
-rw-r--r--src/ht/ft_htdelone.c2
-rw-r--r--src/ht/ft_htdestroy.c2
-rw-r--r--src/ht/ft_htentry_new.c2
-rw-r--r--src/ht/ft_htget.c5
-rw-r--r--src/ht/ft_hthash.c2
-rw-r--r--src/ht/ft_htiter.c14
-rw-r--r--src/ht/ft_htnew.c2
-rw-r--r--src/ht/ft_htset.c7
8 files changed, 24 insertions, 12 deletions
diff --git a/src/ht/ft_htdelone.c b/src/ht/ft_htdelone.c
index 3672b23..7374a44 100644
--- a/src/ht/ft_htdelone.c
+++ b/src/ht/ft_htdelone.c
@@ -13,7 +13,7 @@
#include "libft.h"
#include "libft_ht.h"
-/**
+/*
** \brief Delete one hash table entry
** \param key Key of entry to delete
** \param del Function to destroy the entry
diff --git a/src/ht/ft_htdestroy.c b/src/ht/ft_htdestroy.c
index ef4b257..ff362d2 100644
--- a/src/ht/ft_htdestroy.c
+++ b/src/ht/ft_htdestroy.c
@@ -13,7 +13,7 @@
#include "libft.h"
#include "libft_ht.h"
-/**
+/*
** \brief Destroy an hash table.
** \param del Function to delete each entry
** \warning The del function HAS to free the key
diff --git a/src/ht/ft_htentry_new.c b/src/ht/ft_htentry_new.c
index 03c0980..12a1159 100644
--- a/src/ht/ft_htentry_new.c
+++ b/src/ht/ft_htentry_new.c
@@ -13,7 +13,7 @@
#include "libft.h"
#include "libft_ht.h"
-/**
+/*
** \brief Create a new hash table key/value pair.
** \param key Hash entry string key (always duplicated)
** \return Content or NULL if an allocation failed.
diff --git a/src/ht/ft_htget.c b/src/ht/ft_htget.c
index 6b5df48..a6383fe 100644
--- a/src/ht/ft_htget.c
+++ b/src/ht/ft_htget.c
@@ -6,14 +6,14 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/30 08:33:21 by cacharle #+# #+# */
-/* Updated: 2020/02/28 12:21:09 by cacharle ### ########.fr */
+/* Updated: 2020/04/01 18:02:57 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "libft_ht.h"
-/**
+/*
** \brief Retrieve a value with a key
** \param ht Hash table where key is searched
** \param key Searched key
@@ -22,7 +22,6 @@
void *ft_htget(t_ftht *ht, char *key)
{
-
t_ftht_digest digest;
t_ftlst *found;
diff --git a/src/ht/ft_hthash.c b/src/ht/ft_hthash.c
index 2670e31..3369d24 100644
--- a/src/ht/ft_hthash.c
+++ b/src/ht/ft_hthash.c
@@ -12,7 +12,7 @@
#include "libft_ht.h"
-/**
+/*
** \brief Hash a string
** \param ht So that the index is in the hash table bound
** \param key String to hash
diff --git a/src/ht/ft_htiter.c b/src/ht/ft_htiter.c
index e5ab2eb..b854993 100644
--- a/src/ht/ft_htiter.c
+++ b/src/ht/ft_htiter.c
@@ -1,6 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_htiter.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/04/01 18:02:24 by charles #+# #+# */
+/* Updated: 2020/04/01 18:02:32 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
#include "libft_ht.h"
-/**
+/*
** \brief Iterate over entry of hash table
** \param ht Iterated hash table
** \param f Function applied to each entry
diff --git a/src/ht/ft_htnew.c b/src/ht/ft_htnew.c
index e28b544..e5335d2 100644
--- a/src/ht/ft_htnew.c
+++ b/src/ht/ft_htnew.c
@@ -13,7 +13,7 @@
#include "libft.h"
#include "libft_ht.h"
-/**
+/*
** \brief Create a new hash table.
** \param size Size of the underlying array of linked list (buckets)
** \return Created hash table or NULL is an allocation failed
diff --git a/src/ht/ft_htset.c b/src/ht/ft_htset.c
index 9738c14..68d3752 100644
--- a/src/ht/ft_htset.c
+++ b/src/ht/ft_htset.c
@@ -6,16 +6,17 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/30 08:41:52 by cacharle #+# #+# */
-/* Updated: 2020/02/28 12:11:00 by cacharle ### ########.fr */
+/* Updated: 2020/04/01 18:02:12 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "libft_ht.h"
-/**
+/*
** \brief Create/Update a entry in hash table.
-** \note If `key` already exist in `ht`, only updates the list node content.
+** \note If `key` already exist in `ht`
+** only updates the list node content.
** Else create a new list node in addition the list content.
** \param ht Hash table where the entry is modified
** \param key Key of the new entry