#include "hw-tree.h"
#include "hw-device.h"
+#include "hw-main.h"
#include "hw-base.h"
};
-void
+struct hw *
sim_hw_parse (struct sim_state *sd,
const char *fmt,
...)
{
+ struct hw *current;
va_list ap;
va_start (ap, fmt);
- hw_tree_vparse (STATE_HW (sd)->tree, fmt, ap);
+ current = hw_tree_vparse (STATE_HW (sd)->tree, fmt, ap);
va_end (ap);
+ return current;
}
struct printer {