diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-08 01:40:24 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-08 01:40:24 +0000 |
commit | 58e0109ee9ed3aa6ac2e6b0ed621820118a3d1de (patch) | |
tree | 3900945ec27bcd623c823628751031cdb2521ac1 /module.c | |
parent | 2dce50fbd5ef72bbcd51533cf04f8722f8139d6a (diff) |
Add clause/2 predicate
Diffstat (limited to 'module.c')
-rw-r--r-- | module.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,6 @@ parsemodule(char *file) Clause *cl = malloc(sizeof(Clause)); int arity; cl->clausenr = 0; - cl->public = 1; /* everything is public for now */ cl->next = nil; if(t->tag == CompoundTerm && runestrcmp(t->text, L":-") == 0 && t->arity == 2){ cl->head = t->children; @@ -83,6 +82,7 @@ parsemodule(char *file) currentpred->name = cl->head->text; currentpred->arity = arity; currentpred->clauses = cl; + currentpred->public = 1; /* everything is public for now */ currentpred->next = nil; }else currentpred->clauses = appendclause(currentpred->clauses, cl); |