summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-02 16:59:56 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-02 16:59:56 +0000
commit2bfb79be604c68b7684b515f3be3388fecfcf1f4 (patch)
treefe786e8426d8ec8d22750f91140aa060c111081f /main.c
parent855fd0a5eacdc52699e3e187fcde1a4895ca5f6a (diff)
Remove strings, and add a (currently not changable) flag 'double_quotes' which defines how double quoted strings are stored.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index cd1485c..b7385ff 100644
--- a/main.c
+++ b/main.c
@@ -25,11 +25,14 @@ main(int argc, char *argv[])
if(argc != 0)
usage();
+ initflags();
+
int fd = open("./stdlib.pl", OREAD);
if(fd < 0){
print("Can't open ./stdlib.pl\n");
exits("open");
}
+
Term *database = parse(fd, 0);
close(fd);