[Commit] nickle command.5c,1.16,1.17
Keith Packard
commit@keithp.com
Wed, 28 May 2003 14:20:08 -0700
Committed by: keithp
Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv10377
Modified Files:
command.5c
Log Message:
Allow autoload foo::bar
Index: command.5c
===================================================================
RCS file: /local/src/CVS/nickle/command.5c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- command.5c 1 Nov 2002 20:47:51 -0000 1.16
+++ command.5c 28 May 2003 21:20:06 -0000 1.17
@@ -138,27 +138,7 @@
import_if_needed(name[i]);
continue;
}
- if (!do_import && dim(name) > 1)
- {
- string format_name()
- {
- string result = name[0];
- for (int i = 1; i < dim(name); i++)
- {
- result = result + "::";
- result = result + name[i];
- }
- return result;
- }
- File::fprintf (stderr,
- "Cannot %s compound " +
- "name %s (without import), " +
- "giving up.\n",
- autotype,
- format_name());
- return;
- }
- for (int j = 0; j < dim(name); j++)
+ for (int j = dim(name) - 1; j >= 0; j--)
{
import_if_needed(name[j]);
string f = make_filename(name[j]);