get file handle from backend caller and pass to isa init
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 13 Dec 2005 15:37:34 +0000 (15:37 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 13 Dec 2005 15:37:34 +0000 (15:37 +0000)
ir/be/be.h
ir/be/bearch.c
ir/be/bearch.h

index 9aa4b32..02a4e1e 100644 (file)
@@ -3,7 +3,7 @@
 #define _BE_MAIN_H
 
 void be_init(void);
-void be_main(int argc, const char *argv[]);
+void be_main(FILE *file_handle);
 
 typedef struct _be_main_env_t be_main_env_t;
 typedef struct _be_options_t be_options_t;
index a765e3a..8084dc9 100644 (file)
 #include "pset.h"
 #include "entity.h"
 
-arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa_if)
+arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa_if, FILE *file_handle)
 {
   memset(env, 0, sizeof(*env));
-  env->isa = isa_if->init();
+  env->isa = isa_if->init(file_handle);
   return env;
 }
 
index c93ef30..a31def6 100644 (file)
@@ -446,7 +446,7 @@ struct _arch_isa_if_t {
   /**
    * Initialize the isa interface.
    */
-  void *(*init)(void);
+  void *(*init)(FILE *file_handle);
 
   /**
    * Free the isa instance.
@@ -524,7 +524,7 @@ struct _arch_env_t {
  * @param isa The isa which shall be put into the environment.
  * @return The environment.
  */
-extern arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa);
+extern arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa, FILE *file_handle);
 
 /**
  * Add a node handler to the environment.