OSDN Git Service

activate the auto-edit marker on the fixed output files
[pf3gnuchains/gcc-fork.git] / gcc / fixinc / fixlib.h
index 8134158..dc422b1 100644 (file)
@@ -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
  */