no more error_message

This commit is contained in:
Jack Halford 2017-03-16 14:20:19 +01:00
parent ba7353ef2a
commit 318c4ded18
4 changed files with 2 additions and 42 deletions

View file

@ -65,7 +65,6 @@ dlst/ft_dlstrtostr.c\
dlst/ft_dlstsize.c\ dlst/ft_dlstsize.c\
error/error.c\ error/error.c\
ft_printf/ft_conversion.c\ ft_printf/ft_conversion.c\
ft_printf/ft_error_message.c\
ft_printf/ft_fmt_simplify.c\ ft_printf/ft_fmt_simplify.c\
ft_printf/ft_fmt_validate_conv.c\ ft_printf/ft_fmt_validate_conv.c\
ft_printf/ft_fmt_validate_flags.c\ ft_printf/ft_fmt_validate_flags.c\
@ -132,7 +131,6 @@ mem/ft_memmove.c\
mem/ft_memset.c\ mem/ft_memset.c\
mem/ft_realloc.c\ mem/ft_realloc.c\
path/ft_path_notdir.c\ path/ft_path_notdir.c\
printing/ft_error_message.c\
printing/ft_putchar.c\ printing/ft_putchar.c\
printing/ft_putendl.c\ printing/ft_putendl.c\
printing/ft_putnbr.c\ printing/ft_putnbr.c\

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */ /* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/14 15:34:21 by jhalford #+# #+# */ /* Created: 2017/03/14 15:34:21 by jhalford #+# #+# */
/* Updated: 2017/03/15 21:23:55 by jhalford ### ########.fr */ /* Updated: 2017/03/16 14:19:49 by jhalford ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -20,7 +20,7 @@
# define DG_ARGS getpid(), getpid(), ft_path_notdir(__FILE__), __LINE__ # define DG_ARGS getpid(), getpid(), ft_path_notdir(__FILE__), __LINE__
# define DG(s, ...) ft_dprintf(STDBUG, DG_PROTO s "{eoc}\n", DG_ARGS, ##__VA_ARGS__) # define DG(s, ...) ft_dprintf(STDBUG, DG_PROTO s "{eoc}\n", DG_ARGS, ##__VA_ARGS__)
# define ERR_PROTO(s, ...) "{red}%s: " s "{eoc}\n", PROGNAME # define ERR_PROTO(s, ...) "{red}%s: " s "{eoc}\n", PROGNAME, ##__VA_ARGS__
# define ERR_SET(n, ...) error_set(n, ##__VA_ARGS__) # define ERR_SET(n, ...) error_set(n, ##__VA_ARGS__)
# define ERRMSG_MAX_SIZE 150 # define ERRMSG_MAX_SIZE 150

View file

@ -1,19 +0,0 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_error_message.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/15 20:47:31 by ariard #+# #+# */
/* Updated: 2017/03/15 20:50:50 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_error_message(char *message)
{
ft_dprintf(2, message);
return (-1);
}

View file

@ -1,19 +0,0 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_error_message.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/15 20:47:31 by ariard #+# #+# */
/* Updated: 2017/03/15 20:50:58 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_error_message(char *message)
{
ft_dprintf(2, message);
return (-1);
}