aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/fixlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fixinc/fixlib.h')
-rw-r--r--gcc/fixinc/fixlib.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/fixinc/fixlib.h b/gcc/fixinc/fixlib.h
index 8134158..dc422b1 100644
--- a/gcc/fixinc/fixlib.h
+++ b/gcc/fixinc/fixlib.h
@@ -96,6 +96,25 @@ typedef int apply_fix_p_t; /* Apply Fix Predicate Type */
#define _P_(p) ()
#endif
+#define ENV_TABLE \
+ _ENV_( pz_machine, BOOL_TRUE, "TARGET_MACHINE", \
+ "output from config.guess" ) \
+ \
+ _ENV_( pz_src_dir, BOOL_TRUE, "SRCDIR", \
+ "directory of original files" ) \
+ \
+ _ENV_( pz_input_dir, BOOL_TRUE, "INPUT", \
+ "current directory for fixincl" ) \
+ \
+ _ENV_( pz_dest_dir, BOOL_TRUE, "DESTDIR", \
+ "output directory" ) \
+ \
+ _ENV_( pz_verbose, BOOL_FALSE, "VERBOSE", \
+ "amount of user entertainment" ) \
+ \
+ _ENV_( pz_find_base, BOOL_TRUE, "FIND_BASE", \
+ "leader to trim from file names" )
+
/* Test Descriptor
Each fix may have associated tests that determine
@@ -161,6 +180,14 @@ typedef struct {
extern int gnu_type_map_ct;
+#ifdef HAVE_MMAP_FILE
+#define UNLOAD_DATA() do { if (curr_data_mapped) { \
+ munmap ((void*)pz_curr_data, data_map_size); close (data_map_fd); } \
+ else free ((void*)pz_curr_data); } while(0)
+#else
+#define UNLOAD_DATA() free ((void*)pz_curr_data)
+#endif
+
/*
* Exported procedures
*/