aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-12-06 11:41:44 +0100
committer lemon<lsof@mailbox.org>2025-12-06 11:55:41 +0100
commitd82f3052c813f671561362126d0fbe08568542d3 (patch)
treed82546bdf7f62e3461906c49fa3f3715d13422a6 /common.h
parent2054983775165f3ae50b241aae71ccb4969eade4 (diff)
add command-line predefined macros (-D, -U)
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 20716d2..1e34ba5 100644
--- a/common.h
+++ b/common.h
@@ -148,7 +148,9 @@ extern struct inclpaths {
/* Target */
/**********/
+enum mcisa { ISamd64 };
extern const struct mctarg *mctarg;
+extern enum mcisa targ_mcisa;
void targ_init(const char *);
/*********/
@@ -377,6 +379,7 @@ struct memfile mapopen(const char **err, const char *path);
void mapclose(struct memfile *);
void *mapzeros(uint);
int munmap(void *, size_t);
+int getpredeffile(struct memfile **, const char *name);
int openfile(const char **err, struct memfile **, const char *path);
const char *getfilename(int id);
struct memfile *getfile(int id);