Skip to content

Commit

Permalink
wip: rename migration functions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-levan committed Sep 22, 2023
1 parent 1bddc01 commit 3c8d8fe
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions pkg/noun/v2/allocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions pkg/noun/v2/allocate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions pkg/noun/v2/jets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions pkg/noun/v2/jets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
8 changes: 4 additions & 4 deletions pkg/noun/v2/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/noun/v2/nock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions pkg/noun/v2/nock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
4 changes: 2 additions & 2 deletions pkg/noun/v2/vortex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions pkg/noun/v2/vortex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 3c8d8fe

Please sign in to comment.