Try appending .vpi to module names with directories.

This commit is contained in:
steve 2001-10-14 18:42:46 +00:00
parent f7fa2f1f4d
commit ad44b411fb
1 changed files with 12 additions and 3 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) #if !defined(WINNT)
#ident "$Id: vpi_modules.cc,v 1.8 2001/07/30 02:44:05 steve Exp $" #ident "$Id: vpi_modules.cc,v 1.9 2001/10/14 18:42:46 steve Exp $"
#endif #endif
# include "config.h" # include "config.h"
@ -56,9 +56,15 @@ void vpip_load_module(const char*name)
dll = ivl_dlopen(name); dll = ivl_dlopen(name);
if (dll == 0) { if (dll == 0) {
fprintf(stderr, "%s: Unable to link this module\n", name); char buf[4096];
sprintf(buf, "%s.vpi", name);
dll = ivl_dlopen(buf);
if (dll == 0) {
fprintf(stderr, "%s: Unable to link module\n", name);
return; return;
} }
}
} else { } else {
for (unsigned idx = 0 for (unsigned idx = 0
@ -109,6 +115,9 @@ void vpip_load_module(const char*name)
/* /*
* $Log: vpi_modules.cc,v $ * $Log: vpi_modules.cc,v $
* Revision 1.9 2001/10/14 18:42:46 steve
* Try appending .vpi to module names with directories.
*
* Revision 1.8 2001/07/30 02:44:05 steve * Revision 1.8 2001/07/30 02:44:05 steve
* Cleanup defines and types for mingw compile. * Cleanup defines and types for mingw compile.
* *