[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/main/manipulate_tree.c (increase_
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/main/manipulate_tree.c (increase_ref_counter) (get_copy_ref): do not use intptr_t anymore for _counter associated integer, now that the integer is accessed more directly. |
Date: |
Fri, 24 Nov 2023 16:25:53 -0500 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new d9ac165fed * tp/Texinfo/XS/main/manipulate_tree.c
(increase_ref_counter) (get_copy_ref): do not use intptr_t anymore for _counter
associated integer, now that the integer is accessed more directly.
d9ac165fed is described below
commit d9ac165fed975666ede87971fdccc4aee50ffd99
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Nov 24 22:25:45 2023 +0100
* tp/Texinfo/XS/main/manipulate_tree.c (increase_ref_counter)
(get_copy_ref): do not use intptr_t anymore for _counter associated
integer, now that the integer is accessed more directly.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/main/manipulate_tree.c | 8 ++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4613b3d06d..c255b570e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-11-24 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/main/manipulate_tree.c (increase_ref_counter)
+ (get_copy_ref): do not use intptr_t anymore for _counter associated
+ integer, now that the integer is accessed more directly.
+
2023-11-24 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/main/extra.c (lookup_extra_string)
diff --git a/tp/Texinfo/XS/main/manipulate_tree.c
b/tp/Texinfo/XS/main/manipulate_tree.c
index b3af31ec79..d4b31aadce 100644
--- a/tp/Texinfo/XS/main/manipulate_tree.c
+++ b/tp/Texinfo/XS/main/manipulate_tree.c
@@ -39,13 +39,13 @@ void
increase_ref_counter (ELEMENT *element)
{
KEY_PAIR *k_counter;
- intptr_t *counter_ptr;
+ long *counter_ptr;
k_counter = lookup_extra_by_index (element, "_counter", -1);
if (!k_counter)
add_extra_integer (element, "_counter", 0);
k_counter = lookup_extra_by_index (element, "_counter", -1);
- counter_ptr = (intptr_t *) &k_counter->integer;
+ counter_ptr = &k_counter->integer;
(*counter_ptr) ++;
}
@@ -189,14 +189,14 @@ ELEMENT *
get_copy_ref (ELEMENT *element)
{
KEY_PAIR *k_counter, *k_copy;
- intptr_t *counter_ptr;
+ long *counter_ptr;
ELEMENT *result;
k_copy = lookup_extra_by_index (element, "_copy", -1);
result = k_copy->element;
k_counter = lookup_extra_by_index (element, "_counter", -2);
- counter_ptr = (intptr_t *) &k_counter->integer;
+ counter_ptr = &k_counter->integer;
(*counter_ptr) --;
if (*counter_ptr == 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/main/manipulate_tree.c (increase_ref_counter) (get_copy_ref): do not use intptr_t anymore for _counter associated integer, now that the integer is accessed more directly.,
Patrice Dumas <=