]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/lt_error.c (lt__last_error, lt__error_strings): The lt__
authorGary V. Vaughan <gary@gnu.org>
Tue, 27 Sep 2005 13:01:51 +0000 (13:01 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 27 Sep 2005 13:01:51 +0000 (13:01 +0000)
prefix is used to indicate internal symbols that are only exported
for use by other parts of libltdl.  These are now static, so...
(last_error, error_strings): ...renamed to this.  Changed all
callers.

ChangeLog
libltdl/lt_error.c

index 903d823efd87353ccc582c3c0e76a9daed98806b..a7fb34c83b2cc1b8816cb0bc6727ce34c605de6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-09-27  Gary V. Vaughan  <gary@gnu.org>
 
+       * libltdl/lt_error.c (lt__last_error, lt__error_strings): The lt__
+       prefix is used to indicate internal symbols that are only exported
+       for use by other parts of libltdl.  These are now static, so...
+       (last_error, error_strings): ...renamed to this.  Changed all
+       callers.
+
        * libltdl/ltdl.h (lt_dlmutex_register, lt_dlmutex_lock)
        (lt_dlmutex_unlock, lt_dlmutex_seterror, lt_dlmutex_geterror)
        (lt_dlmalloc, lt_dlrealloc, lt_dlfree): Remove deprecated APIs.
index e7de3c9a90b6e6039ed44e672ee5bf9aa6ec4caf..8c8be7ce0b5b6908ebb631554f63b435294d3768 100644 (file)
@@ -1,5 +1,5 @@
 /* lt_error.c -- error propogation interface
-   Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc.
    Originally by Thomas Tanner <tanner@ffii.org>
 
    NOTE: The canonical source of this file is maintained with the
@@ -29,8 +29,8 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 #include "lt_error.h"
 #include "lt__private.h"
 
-static const char      *lt__last_error = 0;
-static const char      lt__error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] =
+static const char      *last_error     = 0;
+static const char      error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] =
   {
 #define LT_ERROR(name, diagnostic)     (diagnostic),
     lt_dlerror_table
@@ -75,7 +75,7 @@ lt_dlseterror (int errindex)
   else if (errindex < LT_ERROR_MAX)
     {
       /* No error setting the error message! */
-      LT__SETERRORSTR (lt__error_strings[errindex]);
+      LT__SETERRORSTR (error_strings[errindex]);
     }
   else
     {
@@ -92,17 +92,17 @@ lt__error_string (int errorcode)
   assert (errorcode >= 0);
   assert (errorcode < LT_ERROR_MAX);
 
-  return lt__error_strings[errorcode];
+  return error_strings[errorcode];
 }
 
 const char *
 lt__get_last_error (void)
 {
-  return lt__last_error;
+  return last_error;
 }
 
 const char *
 lt__set_last_error (const char *errormsg)
 {
-  return lt__last_error = errormsg;
+  return last_error = errormsg;
 }