const char* GetObjFileName (const ObjData* O)
-/* Get the name of the object file. Return "(linker generated)" if the object
+/* Get the name of the object file. Return "[linker generated]" if the object
* file is NULL.
*/
{
- return O? O->Name : "(linker generated)";
+ return O? O->Name : "[linker generated]";
}
const char* GetSourceFileName (const ObjData* O, unsigned Index)
/* Get the name of the source file with the given index. If O is NULL, return
- * "(linker generated)" as the file name.
+ * "[linker generated]" as the file name.
*/
-{
+{
/* Check if we have an object file */
if (O == 0) {
-
- /* No object file */
- return "(linker generated)";
+
+ /* No object file */
+ return "[linker generated]";
} else {
-
+
/* Check the parameter */
PRECONDITION (Index < O->FileCount);
-
+
/* Return the name */
return O->Files[Index];
- }
+ }
}
/* Free a complete struct */
const char* GetObjFileName (const ObjData* O);
-/* Get the name of the object file. Return "(linker generated)" if the object
+/* Get the name of the object file. Return "[linker generated]" if the object
* file is NULL.
*/
const char* GetSourceFileName (const ObjData* O, unsigned Index);
/* Get the name of the source file with the given index. If O is NULL, return
- * "(linker generated)" as the file name.
+ * "[linker generated]" as the file name.
*/
if (S->Type != Type) {
/* Allow an empty object name */
if (ObjName == 0) {
- ObjName = "(linker generated)";
+ ObjName = "[linker generated]";
}
Error ("Module `%s': Type mismatch for segment `%s'", ObjName, Name);
}
case SEG_EXPR_RANGE_ERROR:
Error ("Range error in module `%s', line %lu",
- GetSourceFileName (Frag->Obj, Frag->Pos.Name),
+ GetSourceFileName (Frag->Obj, Frag->Pos.Name),
Frag->Pos.Line);
break;
case SEG_EXPR_TOO_COMPLEX:
Error ("Expression too complex in module `%s', line %lu",
- GetSourceFileName (Frag->Obj, Frag->Pos.Name),
+ GetSourceFileName (Frag->Obj, Frag->Pos.Name),
Frag->Pos.Line);
break;