summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-26 23:03:25 -0700
committerOri Bernstein <ori@eigenstate.org>2015-03-26 23:03:25 -0700
commit454afa474ddbdc6caa5e4f15bff1c3f3514c0d40 (patch)
tree170d6a7a9d531389b7dd8ac55d87c92596dbac20 /parse
parenta52816a45ffc93ae0c913c9dde33943f77991ede (diff)
downloadmc-454afa474ddbdc6caa5e4f15bff1c3f3514c0d40.tar.gz
ake
Diffstat (limited to 'parse')
-rw-r--r--parse/parse.h2
-rw-r--r--parse/use.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/parse/parse.h b/parse/parse.h
index 08d9057..420237b 100644
--- a/parse/parse.h
+++ b/parse/parse.h
@@ -4,7 +4,7 @@
# define FATAL
#endif
-#define Useversion 0
+#define Abiversion 1
typedef uint8_t byte;
typedef unsigned int uint;
diff --git a/parse/use.c b/parse/use.c
index 184eb6a..066d3e5 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -820,7 +820,7 @@ int loaduse(FILE *f, Stab *st, Vis vis)
tydedup = mkht(tdhash, tdeq);
if (fgetc(f) != 'U')
return 0;
- if (rdint(f) != Useversion) {
+ if (rdint(f) != Abiversion) {
fprintf(stderr, "usefile version mismatch. try rebuilding your deps.\n");
return 0;
}
@@ -964,7 +964,7 @@ void writeuse(FILE *f, Node *file)
/* usefile name */
wrbyte(f, 'U');
- wrint(f, Useversion); /* use version */
+ wrint(f, Abiversion); /* use version */
if (st->name)
wrstr(f, st->name);
else