summaryrefslogtreecommitdiff
path: root/pkgtools/cwrappers/files/bin/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/cwrappers/files/bin/common.h')
-rw-r--r--pkgtools/cwrappers/files/bin/common.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgtools/cwrappers/files/bin/common.h b/pkgtools/cwrappers/files/bin/common.h
index e9ae43430c1..a1c22a7b6fd 100644
--- a/pkgtools/cwrappers/files/bin/common.h
+++ b/pkgtools/cwrappers/files/bin/common.h
@@ -1,7 +1,7 @@
-/* $NetBSD: common.h,v 1.5 2016/11/27 11:46:45 joerg Exp $ */
+/* $NetBSD: common.h,v 1.6 2017/06/11 19:34:43 joerg Exp $ */
/*-
- * Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
+ * Copyright (c) 2009, 2017 Joerg Sonnenberger <joerg@NetBSD.org>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,6 +44,16 @@ extern char *exec_name;
extern char *wrksrc;
extern int debug;
+enum operation_mode {
+ mode_unknown,
+ mode_preprocess,
+ mode_assemble,
+ mode_compile,
+ mode_link_executable,
+ mode_link_shared
+};
+extern enum operation_mode current_operation_mode;
+
TAILQ_HEAD(arglist, argument);
struct argument {
@@ -84,6 +94,7 @@ void *xrealloc(void *, size_t);
char *xstrdup(const char *);
char *xstrndup(const char *, size_t);
+void operation_mode_cc(struct arglist *);
void normalise_cc(struct arglist *);
void cleanup_cc(struct arglist *args);
void transform_cc(struct arglist *args);
@@ -95,6 +106,7 @@ void init_generic_transform(void);
void register_generic_transform(const char *);
void generic_transform_cc(struct arglist *);
+void operation_mode_ld(struct arglist *);
void normalise_ld(struct arglist *);
void generic_transform_ld(struct arglist *);