Skip to content

Commit

Permalink
REFACTOR(): remove to enable use as a submodule (in libft)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilies1511 committed Oct 18, 2024
1 parent 3ac5244 commit d244c07
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
16 changes: 15 additions & 1 deletion gb_garbage_collector.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: iziane <iziane@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/17 23:49:05 by iziane #+# #+# */
/* Updated: 2024/10/18 20:17:03 by iziane ### ########.fr */
/* Updated: 2024/10/19 01:12:21 by iziane ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -85,3 +85,17 @@ t_garbage_collector *gc_init_garbage_collector(void)
gc->size = 0;
return (gc);
}

// int main(void)
// {
// int *arr;

// gc_init_garbage_collector();
// arr = (int *)ft_malloc(sizeof(int) * 10);
// if (!arr)
// return (1);
// arr[0] = 42;
// printf("First element: %d\n", arr[0]);
// main_cleanup(0);
// return (0);
// }
16 changes: 0 additions & 16 deletions main.c

This file was deleted.

16 changes: 16 additions & 0 deletions main_old.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

// #include "garbage_collector.h"

// int main(void)
// {
// int *arr;

// gc_init_garbage_collector();
// arr = (int *)ft_malloc(sizeof(int) * 10);
// if (!arr)
// return (1);
// arr[0] = 42;
// printf("First element: %d\n", arr[0]);
// main_cleanup(0);
// return (0);
// }

0 comments on commit d244c07

Please sign in to comment.