<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/8950e2d640ba9a40adcf48aef580e81c60b406ec">https://github.com/macports/macports-base/commit/8950e2d640ba9a40adcf48aef580e81c60b406ec</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8950e2d64 snapshot_to_obj: use static lower_bound
</span>8950e2d64 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8950e2d640ba9a40adcf48aef580e81c60b406ec
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon May 27 23:12:15 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> snapshot_to_obj: use static lower_bound
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See fc212a0.
</span>---
src/registry2.0/util.c | 8 ++++----
src/registry2.0/util.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/registry2.0/util.c b/src/registry2.0/util.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 1a28c2c55..8e465af81 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/registry2.0/util.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/registry2.0/util.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -335,9 +335,10 @@ int entry_to_obj(Tcl_Interp* interp, Tcl_Obj** obj, reg_entry* entry,
</span> }
int snapshot_to_obj(Tcl_Interp* interp, Tcl_Obj** obj, reg_snapshot* snapshot,
<span style='display:block; white-space:pre;background:#ffe0e0;'>- int* lower_bound, reg_error* errPtr) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void* param UNUSED, reg_error* errPtr) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static unsigned int lower_bound = 0;
</span> if (snapshot->proc == NULL) {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- char* name = unique_name(interp, "::registry::snapshot", lower_bound);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char* name = unique_name(interp, "::registry::snapshot", &lower_bound);
</span> if (!name) {
return 0;
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -419,8 +420,7 @@ int list_entry_to_obj(Tcl_Interp* interp, Tcl_Obj*** objs,
</span>
int list_snapshot_to_obj(Tcl_Interp* interp, Tcl_Obj*** objs,
reg_snapshot** snapshots, int snapshot_count, reg_error* errPtr) {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- int lower_bound = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return recast(interp, (cast_function*)snapshot_to_obj, &lower_bound, NULL,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return recast(interp, (cast_function*)snapshot_to_obj, NULL, NULL,
</span> (void***)objs, (void**)snapshots, snapshot_count, errPtr);
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/registry2.0/util.h b/src/registry2.0/util.h
</span><span style='display:block; white-space:pre;color:#808080;'>index b45645409..b6176c83e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/registry2.0/util.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/registry2.0/util.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,7 +79,7 @@ int entry_to_obj(Tcl_Interp* interp, Tcl_Obj** obj, reg_entry* entry,
</span> int list_entry_to_obj(Tcl_Interp* interp, Tcl_Obj*** objs,
reg_entry** entries, int entry_count, reg_error* errPtr);
int snapshot_to_obj(Tcl_Interp* interp, Tcl_Obj** obj, reg_snapshot* snapshot,
<span style='display:block; white-space:pre;background:#ffe0e0;'>- int* lower_bound, reg_error* errPtr);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void* param UNUSED, reg_error* errPtr);
</span> int list_snapshot_to_obj(Tcl_Interp* interp, Tcl_Obj*** objs,
reg_snapshot** snapshots, int snapshot_count, reg_error* errPtr);
int file_to_obj(Tcl_Interp* interp, Tcl_Obj** ibj, reg_file* file,
</pre><pre style='margin:0'>
</pre>