28 #define GET_DEF_TEXT(p,d,x) if(p->name()->value()==(#x))GetDefText(d->x,p,filename)
29 #define GET_DEF_NUM(p,d,x) if(p->name()->value()==(#x))GetDefNumber(d->x,p,filename)
46 Print(
"Loading System Designs '%s'\n", filename);
52 int blocklen = loader->
LoadBuffer(filename, block,
true);
57 Print(
"ERROR: could not parse '%s'\n", filename);
62 if (!file_type || file_type->
value() !=
"SYSTEM") {
63 Print(
"ERROR: invalid system design file '%s'\n", filename);
81 Print(
"WARNING: system structure missing in '%s'\n", filename);
92 else if (pdef->
name()->
value()==(
"component")) {
94 Print(
"WARNING: component structure missing in system '%s' in '%s'\n", (
const char*) design->
name, filename);
105 else GET_DEF_NUM (pdef2, comp_design, repair_time);
106 else GET_DEF_NUM (pdef2, comp_design, replace_time);
111 Print(
"WARNING: parameter '%s' ignored in '%s'\n",
122 Print(
"WARNING: parameter '%s' ignored in '%s'\n",
127 Print(
"WARNING: term ignored in '%s'\n", filename);
137 Print(
"WARNING: unknown definition '%s' in '%s'\n",
141 Print(
"WARNING: term ignored in '%s'\n", filename);