invalid.
* libltdl/ltdl.h (LTDL_ERROR): Added missing '_' in K&R
definition.
2000-01-28 Gary V. Vaughan <gary@oranda.demon.co.uk>
+ * libltdl/ltdl.c (lt_dlseterror): Catch errorcodes below 0 as
+ invalid.
+ * libltdl/ltdl.h (LTDL_ERROR): Added missing '_' in K&R
+ definition.
+
* libltdl/ltdl.h (ltdl_error_table): Added missing error code, and
fixed typo in another code.
* doc/libtool.texi (Libltdl interface): Added missing @end
lt_dlseterror (index)
int index;
{
- if (index >= errorcode) {
+ if (index >= errorcode || index < 0) {
last_error = LT_DLSTRERROR(INVALID_ERRORCODE);
return 1;
}
#ifdef __STDC__
# define LTDL_ERROR(name, diagnostic) LTDL_ERROR_##name,
#else
-# define LTDL_ERROR(name, diagnostic) LTDL_ERROR/**/name,
+# define LTDL_ERROR(name, diagnostic) LTDL_ERROR_/**/name,
#endif
enum {
ltdl_error_table