﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
134	emxomfld/wlink: The internalname and entryname of an IMPORTS statement is switched	Yuri Dario	bird	"When using IMPORTS in .def files, the parser reads the correct sequence, but emxomfld exchanges fields, so empty names are written to def file (happens when importing by ordinal).

{{{
Index: emxomfld.c
===================================================================
--- emxomfld.c	(revision 2893)
+++ emxomfld.c	(working copy)
@@ -1299,12 +1305,12 @@
         break;
 
       case _MD_IMPORTS:
-        fprintf (response_file, ""IMPORT '%s' '%s'"", stmt->import.entryname,
+        fprintf (response_file, ""IMPORT '%s' '%s'"", stmt->import.internalname,
                  stmt->import.modulename);
         if (stmt->import.flags & _MDEP_ORDINAL)
           fprintf (response_file, "".%d"", stmt->import.ordinal);
         else if (stmt->import.internalname[0])
-          fprintf (response_file, "".'%s'"", stmt->import.internalname);
+          fprintf (response_file, "".'%s'"", stmt->import.entryname);
         fprintf (response_file, ""\n"");
         break;
 

}}}
"	defect	closed	normal	libc-0.6.2	emx	0.6.1	normal	fixed		
