From 3b27def26196cc96fe14fc8333d9e66189d6230f Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Sat, 11 Oct 2025 22:20:05 +0200 Subject: fix: doublon de evalexpr et tinyprintf dans le graph de la piscine --- graphs/piscine/evalexpr/src/evalexpr.h | 43 ---------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 graphs/piscine/evalexpr/src/evalexpr.h (limited to 'graphs/piscine/evalexpr/src/evalexpr.h') diff --git a/graphs/piscine/evalexpr/src/evalexpr.h b/graphs/piscine/evalexpr/src/evalexpr.h deleted file mode 100644 index d440ae1..0000000 --- a/graphs/piscine/evalexpr/src/evalexpr.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef EVALEXPR_H -#define EVALEXPR_H - -#include - -#include "fifo.h" -#include "stack.h" -#include "stack_struct.h" - -enum token_type -{ - NUMBER = 0, - SUB = 1, - ADD = 1, - MOD = 2, - DIV = 2, - MUL = 2, - EXP = 3, - UN_PLUS = 4, - UN_MINUS = 4, - PAR_LEFT = 5, - PAR_RIGHT = 5, - WRONG_TOKEN = -1, -}; - -struct token -{ - enum token_type type; - int value; -}; - -// evalrpn -int parse_number(const char *expr, size_t *offset); -int get_operands(struct stack **s, int *op1, int *op2); -int my_pow(int a, int b); -int evalrpn(const char *expr, int *retval); - -// shunting yard -int opcmp(struct token *op1, struct token *op2); -enum token_type get_type(char op); -int shunting_yard(const char *expr, char **rpn); - -#endif /* ! EVALEXPR_H */ -- cgit v1.2.3