summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/pile.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index c6651e2..f45d8a7 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -4,7 +4,7 @@ AM_CFLAGS = -O3 -Wall -Wstrict-prototypes $(CFLAGS)
INCLUDES = -I. -I.. -I$(includedir) -I../include
lib_LTLIBRARIES = libPolynom.la
-libPolynom_la_SOURCES = exceptions.c hash.c numbers.c parser.c pile.c polynom.c scalaires.c terminal.c interface.c
+libPolynom_la_SOURCES = exceptions.c hash.c numbers.c parser.c pile.c polynom.c scalaires.c terminal.c interface.c fonctions.c
libPolynom_la_LDFLAGS = -version-info $(Polynom_VERSION_INFO)
diff --git a/lib/pile.c b/lib/pile.c
index e5abca9..6459019 100644
--- a/lib/pile.c
+++ b/lib/pile.c
@@ -392,7 +392,7 @@ void act_pile(int func)
printf("----- OP_FUNC_CALL\n");
#endif
for (i=0;i<3;i++)
- operande[i].polyn=NULL;
+ operande[i].poly=NULL;
operande1 = pop_pile(1);
if (operande1.type == T_INT) {
for(i=0;i<operande1.val;i++) {
@@ -431,7 +431,7 @@ void act_pile(int func)
}
break;
case T_STRING:
- appel_fonction(operande2.label,operande1.val,operande[0].polyn, operande[1].polyn, operande[2].polyn);
+ appel_fonction(operande2.label,operande1.val,operande[0].poly, operande[1].poly, operande[2].poly);
break;
}