summaryrefslogtreecommitdiff
path: root/parse/parse.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-17 13:53:44 -0800
committerOri Bernstein <ori@markovcorp.com>2018-01-17 13:53:44 -0800
commitc7ad247d35a719539fc4df4e7a78d07e77a6f538 (patch)
tree81b9ebd0c54b366101ed98f50c4f86c71ea24f77 /parse/parse.h
parentb5c63138b4f40766dacc40e8ce91d44abdbb3b0e (diff)
downloadmc-c7ad247d35a719539fc4df4e7a78d07e77a6f538.tar.gz
Infer after generating init functions.
Pull out the usefile loading, so we can call it separately from inference. Then shuffle the infer() call to after we generate init().
Diffstat (limited to 'parse/parse.h')
-rw-r--r--parse/parse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/parse.h b/parse/parse.h
index c622623..06b0b11 100644
--- a/parse/parse.h
+++ b/parse/parse.h
@@ -549,6 +549,7 @@ Node *genericname(Node *n, Type *param, Type *t);
void geninit(void);
/* usefiles */
+void loaduses(void);
int loaduse(char *path, FILE *f, Stab *into, Vis vis);
void readuse(Node *use, Stab *into, Vis vis);
void writeuse(FILE *fd, Node *file);