]> git.llucax.com Git - z.facultad/75.42/calculadora.git/blobdiff - parser_equation.c
Ăšltimos retoques.
[z.facultad/75.42/calculadora.git] / parser_equation.c
index ebf36987c7d966e582b4361a0bc7b82e42f97990..abf55ce25eb06e2ad8a2a402d09f8940493d9994 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "bool.h"
 #include "equation.h"
+#include "equation_list.h"
 #include "parser_common.h"
 #include "parseerror.h"
 #include "dllist.h"
 
 #include "memdebug_debugger.h"
 
-size_t DLList_equation_print(DLList* l, FILE* fp) {
-    size_t cant = 0;
-    Equation* eq;
-    for (eq = DLList_begin(l); DLList_have_more(l); eq = DLList_next(l)) {
-        cant += Equation_print(eq, fp);
-    }
-    return cant;
-}
-
-void DLList_equation_delete(DLList* l) {
-    if (l) {
-        while (!DLList_empty(l)) {
-            Equation_delete((Equation*)DLList_pop(l));
-        }
-    }
-    DLList_delete(l);
-}
-
 #define PARSE_ERROR(str) ParseError_set_pos_message(error, str, i + 1, c)
 
 bool parser_equation(const char* line, size_t len, DLList* equation_list,