0
0
This commit is contained in:
Guy Baconniere
2021-08-24 15:04:25 +02:00
parent 91d591215a
commit 4bba30bd82
14 changed files with 113 additions and 38 deletions

View File

@@ -11,7 +11,7 @@
#
clone:
@git clone git@vogsphere.42lausanne.ch:vogsphere/intra-uuid-dc28ac79-9ee2-482c-b047-2b9717fad174-3732452 git
@git clone git@vogsphere.42lausanne.ch:vogsphere/intra-uuid-8cc1a727-a53a-4b89-8390-43d2c0aaf631-3740340 git
cc:
@norminette -R CheckForbiddenSourceHeader

View File

@@ -7,7 +7,7 @@ find . -type f -name '*.c' \! -name 'main.c' -exec \
norminette -R CheckForbiddenSourceHeader {} \;
echo
gcc -Wall -Wextra -Werror -o a.out *.c
cpp *.c | grep -B3 -A30 -e '[0-9] "main.c" [2-9]' -e '[0-9] "ft_[^"]*" [2-9]'
#cpp *.c | tail -n 30
echo
echo $(basename $PWD):
./a.out "$@"

View File

@@ -6,7 +6,7 @@
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/20 10:17:09 by gbaconni #+# #+# */
/* Updated: 2021/08/20 12:05:50 by gbaconni ### ########.fr */
/* Updated: 2021/08/22 15:41:04 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_BOOLEAN_H
@@ -16,8 +16,8 @@
typedef int t_bool;
# define TRUE 0
# define FALSE 1
# define TRUE 1
# define FALSE 0
# define EVEN(nbr) nbr % 2 == 0
# define EVEN_MSG "I have an even number of arguments.\n"
# define ODD_MSG "I have an odd number of arguments.\n"

View File

@@ -7,7 +7,7 @@ find . -type f -name '*.c' \! -name 'main.c' -exec \
norminette -R CheckForbiddenSourceHeader {} \;
echo
gcc -Wall -Wextra -Werror -o a.out *.c
cpp *.c | grep -B3 -A30 -e '[0-9] "main.c" [2-9]' -e '[0-9] "ft_[^"]*" [2-9]'
#cpp *.c | tail -n 30
echo
echo $(basename $PWD):
./a.out "$@"

View File

@@ -6,7 +6,7 @@
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/20 10:17:09 by gbaconni #+# #+# */
/* Updated: 2021/08/20 12:05:50 by gbaconni ### ########.fr */
/* Updated: 2021/08/22 15:39:27 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */

View File

@@ -7,7 +7,7 @@ find . -type f -name '*.c' \! -name 'main.c' -exec \
norminette -R CheckForbiddenSourceHeader {} \;
echo
gcc -Wall -Wextra -Werror -o a.out *.c
cpp *.c | tail -n 30
#cpp *.c | tail -n 30
echo
echo $(basename $PWD):
./a.out "$@"

View File

@@ -7,7 +7,7 @@ find . -type f -name '*.c' \! -name 'main.c' -exec \
norminette -R CheckForbiddenSourceHeader {} \;
echo
gcc -Wall -Wextra -Werror -o a.out *.c
cpp *.c | grep -B3 -A30 -e '[0-9] "main.c" [2-9]' -e '[0-9] "ft_[^"]*" [2-9]'
#cpp *.c | tail -n 30
echo
echo $(basename $PWD):
./a.out "$@"

View File

@@ -0,0 +1,9 @@
#ifndef FT_STOCK__STR_H
# define FT_STOCK__STR_H
typedef struct s_stock_str
{
int size;
char *str;
char *copy;
} t_stock_str;
#endif

View File

@@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_point.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/20 10:17:09 by gbaconni #+# #+# */
/* Updated: 2021/08/20 12:05:50 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_POINT_H
# define FT_POINT_H
typedef struct s_point
{
int x;
int y;
} t_point;
void set_point(t_point *point);
#endif

25
C_08/git/ex04/main.c Normal file
View File

@@ -0,0 +1,25 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/24 14:00:37 by gbaconni #+# #+# */
/* Updated: 2021/08/24 14:04:21 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_stock_str.h"
struct s_stock_str *ft_strs_to_tab(int ac, char **av);
int main(void)
{
t_stock_str *result;
char **av;
int ac;
result = ft_strs_to_tab(ac, av)
return (0);
}

14
C_08/git/ex04/main.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
rm -f a.out
find . -type f -name '*.h' -exec \
norminette -R CheckDefine {} \;
find . -type f -name '*.c' \! -name 'main.c' -exec \
norminette -R CheckForbiddenSourceHeader {} \;
echo
gcc -Wall -Wextra -Werror -o a.out *.c
#cpp *.c | tail -n 30
echo
echo $(basename $PWD):
./a.out "$@"
rm -f a.out