summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDetlev Casanova <detlev.casanova@gmail.com>2010-07-06 14:03:43 +0200
committerDetlev Casanova <detlev.casanova@gmail.com>2010-07-06 14:03:43 +0200
commit2fb39c00d5a75f5bd3462a8b3f7f556367dfc71a (patch)
treea902ff859c6b472e902b9ba92a5c98fe5fa1b8cc
parentcee0d8244d6b3223c296def49678076edb239445 (diff)
downloadlayman-2fb39c00d5a75f5bd3462a8b3f7f556367dfc71a.tar.gz
layman-2fb39c00d5a75f5bd3462a8b3f7f556367dfc71a.tar.bz2
layman-2fb39c00d5a75f5bd3462a8b3f7f556367dfc71a.zip
Add compile command line
-rw-r--r--src/interpreter.c4
-rw-r--r--src/runner.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/interpreter.c b/src/interpreter.c
index 2e2f7b9..dd0ebd3 100644
--- a/src/interpreter.c
+++ b/src/interpreter.c
@@ -1,3 +1,7 @@
+/*
+ * Compile command :
+ * gcc -o interpreter -W -Wall -g --std=c99 -I/usr/include/python3.1/ -lpython3.1 interpreter.c
+ */
#include <Python.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/runner.c b/src/runner.c
index ddf20d2..628ac9a 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -1,3 +1,7 @@
+/*
+ * Compile command :
+ * gcc -o runner -W -Wall -g --std=c99 runner.c
+ */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -117,7 +121,7 @@ int execute(Runner *r, char *args)
}
dup2(fd, STDOUT_FILENO);
- ret = execl("/home/detlev/src/c-portage/src/test.py", "test.py", "app-portage/kuroo4-4.2", "app-portage/kuroo4-4.3", NULL);
+ ret = execl("./test.py", "test.py", "app-portage/kuroo4-4.2", "app-portage/kuroo4-4.3", NULL);
printf("execl: (%d) %s\n", errno, strerror(errno));
return ret;
}