commit e2d9cd1673e9418171f9e8747bdffa4361a5f297
parent aae56aa4925da96a6282b68743ea76fcb01a15a1
Auteur: Selve <selve@asteride.xyz>
Date: Wed, 24 Jan 2024 17:17:43 -0500
suppression du macro t_ecr
Diffstat:
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/tampon.c b/tampon.c
@@ -2,7 +2,6 @@
#include <stdlib.h>
#include "tampon.h"
-#undef t_ecr
/* initialiser un tampon t de taille taille */
int
diff --git a/tampon.h b/tampon.h
@@ -16,9 +16,4 @@ void t_aff(struct tampon *);
void t_eff(struct tampon *);
int t_plein(char c, struct tampon *);
-#define t_ecr(c, t) \
- ((++(t)->ncar > (t)->taille) ? \
- t_plein((c), (t)) : \
- (*(t)->pcar++ = (c), (unsigned char) (c)))
-
#endif