try to not make public API dependent on WITH_LIBCORE
authorMatthias Braun <matze@braunis.de>
Tue, 4 Dec 2007 11:14:57 +0000 (11:14 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 4 Dec 2007 11:14:57 +0000 (11:14 +0000)
[r16879]

include/libfirm/firm.h
ir/common/firm.c

index e0b5769..1050646 100644 (file)
@@ -230,12 +230,10 @@ void free_firm(void);
  */
 void firm_get_version(firm_version_t *version);
 
-#ifdef WITH_LIBCORE
 /**
  * Read initializations arguments from the .init file.
  */
 void firm_init_options(const char *arg_prefix, int argc, const char **argv);
-#endif
 
 #ifdef __cplusplus
 }
index e3a8b76..79a6ca0 100644 (file)
@@ -72,12 +72,18 @@ lc_opt_entry_t *firm_opt_get_root(void) {
                grp = lc_opt_get_grp(lc_opt_root_grp(), "firm");
        return grp;
 }
+#endif
 
 void firm_init_options(const char *arg_prefix, int argc, const char **argv) {
+#ifdef LIBCORE
        /* parse any init files for firm */
        lc_opts_init("firm", firm_opt_get_root(), arg_prefix, argc, argv);
+#else
+       (void) arg_prefix;
+       (void) argc;
+       (void) argv;
+#endif
 }
-#endif /* WITH_LIBCORE */
 
 void init_firm(const firm_parameter_t *param)
 {