from Gary V. Vaughan) to compile under MinGW.
* config/mkstamp: Translate input data so that it is assured to
use the Unix line terminations. This is necessary under Windows if
the files are checked out with CR/NL line terminations. A
side-effect of this change is that input must always be from
stdin. Previously a filename argument was accepted as well.
+2004-09-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
+
+ * libltdl/loaders/loadlibrary.c: Compilation fixes (originally
+ from Gary V. Vaughan) to compile under MinGW.
+ * config/mkstamp: Translate input data so that it is assured to
+ use the Unix line terminations. This is necessary under Windows if
+ the files are checked out with CR/NL line terminations. A
+ side-effect of this change is that input must always be from
+ stdin. Previously a filename argument was accepted as well.
+
2004-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* tests/Makefile.am: Use the same CPP, F77, CXX and CXXFLAGS
# tags, and it edits this line so that it looks like ` $rev $date'
# Command-line arguments are passed down to sed; additional -e cmd
-# arguments are acceptable. If no input filename is specified in the
-# command line, sed will read from stdin.
+# arguments are acceptable. Input is from from stdin. The original
+# version of this script accepted input from a named file or stdin.
-exec sed -e '
+tr -d "\015" | sed -e '
s%.*\$''Revision: \([^$]*\) \$.*\$''Date: \([^$]*\) \$.*% \1 \2%
t end
d
lt_dlvtable *
get_vtable (lt_user_data loader_data)
{
- static lt_dlloader *vtable = 0;
+ static lt_dlvtable *vtable = 0;
if (!vtable)
{
static lt_module
vm_open (lt_user_data loader_data, const char *filename)
{
- lt_dlhandle cur = 0;
lt_module module = 0;
const char *errormsg = 0;
char *searchname = 0;
We check whether LoadLibrary is returning a handle to
an already loaded module, and simulate failure if we
find one. */
- while (cur = lt_dlhandle_next (cur))
- {
- if (!cur->module)
- {
- cur = 0;
- break;
- }
-
- if (cur->module == module)
- {
- break;
- }
+ {
+ lt__handle * cur = 0;
+
+ while (cur = (lt__handle *) lt_dlhandle_next ((lt_dlhandle) cur))
+ {
+ if (!cur->module)
+ {
+ cur = 0;
+ break;
+ }
+
+ if (cur->module == module)
+ {
+ break;
+ }
+ }
+
+ if (cur || !module)
+ {
+ LT__SETERROR (CANNOT_OPEN);
+ module = 0;
+ }
}
- if (cur || !module)
- {
- LT__SETERROR (CANNOT_OPEN);
- module = 0;
- }
-
return module;
}