Make Libft C++ aware and compilable
authorLukas Jiriste <ljiriste@student.42prague.com>
Wed, 26 Mar 2025 19:55:47 +0000 (20:55 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Wed, 26 Mar 2025 20:08:24 +0000 (21:08 +0100)
commit85f202f2f76c0339d9e0b5b98b566e832a5b2e76
tree67ef64e2c15741540b9ac7fc89a335c3848e8b13
parent5aafaba628a2eb5bc98021a9b686713966446db1
Make Libft C++ aware and compilable

Though compilation is only possible with the -fpermissive flag.
It is not a great idea to use everything (or even most things) in C++,
but it is better to be consistent and it also makes it easier to migrate
a project using Libft from C to C++.
24 files changed:
ft_io/ft_printf/ft_printf.h
ft_lst/ft_lst_find.c
ft_lst/ft_lst_foreach_if.c
ft_lst/ft_lst_remove_if.c
ft_lst/ft_lst_sort.c
ft_lst/ft_lst_sorted_insert.c
ft_lst/ft_lst_sorted_merge.c
ft_lst/ft_lstadd_back.c
ft_lst/ft_lstadd_front.c
ft_parse/parsing_table_constructor/lookahead.c
ft_parse/parsing_table_constructor/pt_constructor.h
inc/ft_arr.h
inc/ft_check.h
inc/ft_conv.h
inc/ft_gen.h
inc/ft_io.h
inc/ft_lst.h
inc/ft_math.h
inc/ft_mem.h
inc/ft_parse.h
inc/ft_stat.h
inc/ft_str.h
inc/ft_struct.h
inc/libft.h