]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (lt_dlcaller_register): Caller ids are allocated
authorGary V. Vaughan <gary@gnu.org>
Tue, 14 Aug 2001 22:45:21 +0000 (22:45 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 14 Aug 2001 22:45:21 +0000 (22:45 +0000)
starting from value `1', so that clients can use a value of zero
to indicate that libltdl has not yet initialised.

ChangeLog
libltdl/ltdl.c

index 0c8b16301d08ccfb6cee01ea443cbf4dd36de474..b80607e68e99b5d2d8469d89a3615643eb72fb3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-08-14  Gary V. Vaughan  <gary@gnu.org>
 
+       * libltdl/ltdl.c (lt_dlcaller_register): Caller ids are allocated
+       starting from value `1', so that clients can use a value of zero
+       to indicate that libltdl has not yet initialised.
+
        * ltmain.in (exec_cmd): Fix quoting in execute mode so that the
        double quotes added by libtool (to prevent lossage with embedded
        spaces in filenames etc.) are not interpreted as literals by the
index c1afdd9c8f3ff93694f8393321c883d2237dff9b..ff7e2c7e8036cba30a05aa2a2412821415b53e02 100644 (file)
@@ -3538,7 +3538,7 @@ lt_dlforeach (func, data)
 lt_dlcaller_id
 lt_dlcaller_register ()
 {
-  static int last_caller_id = -1;
+  static lt_dlcaller_id last_caller_id = 0;
   int result;
 
   LT_DLMUTEX_LOCK ();