From 3c8d8fe8836e26576ad3be08d4969a2df1265af6 Mon Sep 17 00:00:00 2001 From: Matthew LeVan Date: Fri, 22 Sep 2023 10:01:51 -0400 Subject: [PATCH] wip: rename migration functions --- pkg/noun/v2/allocate.c | 4 ++-- pkg/noun/v2/allocate.h | 4 ++-- pkg/noun/v2/jets.c | 4 ++-- pkg/noun/v2/jets.h | 4 ++-- pkg/noun/v2/manage.c | 8 ++++---- pkg/noun/v2/nock.c | 4 ++-- pkg/noun/v2/nock.h | 4 ++-- pkg/noun/v2/vortex.c | 4 ++-- pkg/noun/v2/vortex.h | 4 ++-- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pkg/noun/v2/allocate.c b/pkg/noun/v2/allocate.c index dfae7b8213..25cf04a948 100644 --- a/pkg/noun/v2/allocate.c +++ b/pkg/noun/v2/allocate.c @@ -32,10 +32,10 @@ u3a_v2_rewritten_noun(u3_noun som) return som_p; } -/* u3a_v2_rewrite_compact(): rewrite pointers in ad-hoc persistent road structures. +/* u3a_v2_mig_rewrite_compact(): rewrite pointers in ad-hoc persistent road structures. */ void -u3a_v2_rewrite_compact(void) +u3a_v2_mig_rewrite_compact(void) { u3a_v2_rewrite_noun(u3R_v2->ski.gul); u3a_v2_rewrite_noun(u3R_v2->bug.tax); diff --git a/pkg/noun/v2/allocate.h b/pkg/noun/v2/allocate.h index 93b2548f73..1f191795fc 100644 --- a/pkg/noun/v2/allocate.h +++ b/pkg/noun/v2/allocate.h @@ -111,10 +111,10 @@ **/ /* Reference and arena control. */ - /* u3a_v2_rewrite_compact(): rewrite pointers in ad-hoc persistent road structures. + /* u3a_v2_mig_rewrite_compact(): rewrite pointers in ad-hoc persistent road structures. */ void - u3a_v2_rewrite_compact(void); + u3a_v2_mig_rewrite_compact(void); /* u3a_v2_rewrite_noun(): rewrite a noun for compaction. */ diff --git a/pkg/noun/v2/jets.c b/pkg/noun/v2/jets.c index dfa38febdc..c22ea97f3b 100644 --- a/pkg/noun/v2/jets.c +++ b/pkg/noun/v2/jets.c @@ -28,7 +28,7 @@ u3j_v2_reclaim(void) u3R->jed.han_p = u3h_v3_new(); } -/* u3j_v2_rewrite_compact(): rewrite jet state for compaction. +/* u3j_v2_mig_rewrite_compact(): rewrite jet state for compaction. * * NB: u3R_v2->jed.han_p *must* be cleared (currently via u3j_v2_reclaim above) * since it contains hanks which are not nouns but have loom pointers. @@ -37,7 +37,7 @@ u3j_v2_reclaim(void) * history at e8a307a. */ void -u3j_v2_rewrite_compact() +u3j_v2_mig_rewrite_compact() { u3h_v2_rewrite(u3R_v2->jed.war_p); u3h_v2_rewrite(u3R_v2->jed.cod_p); diff --git a/pkg/noun/v2/jets.h b/pkg/noun/v2/jets.h index 281c5d62be..526046905d 100644 --- a/pkg/noun/v2/jets.h +++ b/pkg/noun/v2/jets.h @@ -27,9 +27,9 @@ void u3j_v2_reclaim(void); - /* u3j_v2_rewrite_compact(): rewrite jet state for compaction. + /* u3j_v2_mig_rewrite_compact(): rewrite jet state for compaction. */ void - u3j_v2_rewrite_compact(); + u3j_v2_mig_rewrite_compact(); #endif /* ifndef U3_JETS_V2_H */ diff --git a/pkg/noun/v2/manage.c b/pkg/noun/v2/manage.c index 5175534803..113ecc2b6b 100644 --- a/pkg/noun/v2/manage.c +++ b/pkg/noun/v2/manage.c @@ -17,10 +17,10 @@ static void _cm_pack_rewrite(void) { - u3v_v2_rewrite_compact(); - u3j_v2_rewrite_compact(); - u3n_v2_rewrite_compact(); - u3a_v2_rewrite_compact(); + u3v_v2_mig_rewrite_compact(); + u3j_v2_mig_rewrite_compact(); + u3n_v2_mig_rewrite_compact(); + u3a_v2_mig_rewrite_compact(); } static void diff --git a/pkg/noun/v2/nock.c b/pkg/noun/v2/nock.c index d03e56a5bd..66c10288ef 100644 --- a/pkg/noun/v2/nock.c +++ b/pkg/noun/v2/nock.c @@ -24,7 +24,7 @@ u3n_v2_reclaim(void) u3R->byc.har_p = u3h_v3_new(); } -/* u3n_v2_rewrite_compact(): rewrite the bytecode cache for compaction. +/* u3n_v2_mig_rewrite_compact(): rewrite the bytecode cache for compaction. * * NB: u3R_v2->byc.har_p *must* be cleared (currently via u3n_v2_reclaim above), * since it contains things that look like nouns but aren't. @@ -38,7 +38,7 @@ u3n_v2_reclaim(void) * many more words (plus one?). */ void -u3n_v2_rewrite_compact() +u3n_v2_mig_rewrite_compact() { u3h_v2_rewrite(u3R_v2->byc.har_p); u3R_v2->byc.har_p = u3a_v2_rewritten(u3R_v2->byc.har_p); diff --git a/pkg/noun/v2/nock.h b/pkg/noun/v2/nock.h index edaed5465e..390c40e645 100644 --- a/pkg/noun/v2/nock.h +++ b/pkg/noun/v2/nock.h @@ -51,9 +51,9 @@ void u3n_v2_reclaim(void); - /* u3n_v2_rewrite_compact(): rewrite bytecode cache for compaction. + /* u3n_v2_mig_rewrite_compact(): rewrite bytecode cache for compaction. */ void - u3n_v2_rewrite_compact(); + u3n_v2_mig_rewrite_compact(); #endif /* ifndef U3_NOCK_V2_H */ diff --git a/pkg/noun/v2/vortex.c b/pkg/noun/v2/vortex.c index 382ed24192..b22dfaed4d 100644 --- a/pkg/noun/v2/vortex.c +++ b/pkg/noun/v2/vortex.c @@ -7,10 +7,10 @@ u3v_v2_home* u3v_v2_Home; -/* u3v_v2_rewrite_compact(): rewrite arvo kernel for compaction. +/* u3v_v2_mig_rewrite_compact(): rewrite arvo kernel for compaction. */ void -u3v_v2_rewrite_compact() +u3v_v2_mig_rewrite_compact() { u3v_v2_arvo* arv_u = &(u3H_v2->arv_u); diff --git a/pkg/noun/v2/vortex.h b/pkg/noun/v2/vortex.h index 9ef060e610..ee8a2f861e 100644 --- a/pkg/noun/v2/vortex.h +++ b/pkg/noun/v2/vortex.h @@ -32,9 +32,9 @@ /** Functions. **/ - /* u3v_v2_rewrite_compact(): rewrite arvo kernel for compaction. + /* u3v_v2_mig_rewrite_compact(): rewrite arvo kernel for compaction. */ void - u3v_v2_rewrite_compact(); + u3v_v2_mig_rewrite_compact(); #endif /* ifndef U3_VORTEX_V2_H */