Added memorybook to parsing and cleaned most of the files

This commit is contained in:
Philippe BLAGOJEVIC
2022-05-04 14:38:34 +02:00
parent e564e7c8e9
commit 362668fe35
231 changed files with 11474 additions and 405 deletions

View File

@@ -1,19 +1,37 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* memorybook_2d.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pblagoje <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/04 13:55:48 by pblagoje #+# #+# */
/* Updated: 2022/05/04 13:55:51 by pblagoje ### ########.fr */
/* */
/* ************************************************************************** */
#include "cube3d.h"
void mb_add_2d(void **addr, int nb)
{
while (nb)
int i;
i = 0;
while (i < nb)
{
mb_add(addr[nb]);
nb--;
mb_add(addr[i]);
i++;
}
}
void mb_free_2d(void **addr, int nb)
{
while (nb)
int i;
i = 0;
while (i < nb)
{
mb_free(addr[nb]);
nb--;
mb_free(addr[i]);
i++;
}
}