Skip to content

Commit 00f3444

Browse files
committed
Remove unnecessary macros
1 parent 9faf0cb commit 00f3444

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

jsrc/j.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,19 +629,19 @@
629629
// Install new value z into xv[k], where xv is AAV(x). If x has recursive usecount, we must increment the usecount of
630630
// z. This also guarantees that z has recursive usecount whenever x does, and that z is realized
631631
#define INSTALLBOX(x, xv, k, z) \
632-
rifv(z); \
632+
realizeifvirtual(z); \
633633
if ((UCISRECUR(x)) != 0) { \
634634
A zzZ = xv[k]; \
635635
ra(z); \
636636
fa(zzZ); \
637637
} \
638638
xv[k] = z
639639
#define INSTALLBOXNF(x, xv, k, z) \
640-
rifv(z); \
640+
realizeifvirtual(z); \
641641
if ((UCISRECUR(x)) != 0) { ra(z); } \
642642
xv[k] = z // Don't do the free - if we are installing into known 0 or known nonrecursive
643643
#define INSTALLBOXRECUR(xv, k, z) \
644-
rifv(z); \
644+
realizeifvirtual(z); \
645645
{ \
646646
I zzK = (k); \
647647
{ \

jsrc/ja.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@
433433
{ \
434434
if ((AFLAG(x) & AFVIRTUAL) != 0) RZ((x) = jtrealize(jt, x)); \
435435
}
436-
#define rifv(x) realizeifvirtual(x)
437436
// We have used rifvs liberally through the code to guarantee that all functions can deal with virtual blocks returned.
438437
// In some cases, the call is to an internal routine that we know will not return a virtual block normally, and is in an
439438
// important performance path. We use rifvsdebug for these places. rifvs is called only during debugging. Review them
@@ -519,7 +518,7 @@
519518
// usecount We can have an inplaceable but recursible block, if it was gc'd. We never push a PERMANENT block, so that
520519
// we won't try to free it NOTE that PERMANENT blocks are always marked traversible if they are of traversible type, so
521520
// we will not recur on them internally
522-
#define tpushcommon(x, suffix) \
521+
#define tpush(x) \
523522
{ \
524523
if (!ACISPERM(AC(x))) { \
525524
I tt = AT(x); \
@@ -528,10 +527,8 @@
528527
if (!((I)pushp & (NTSTACKBLOCK - 1))) { RZ(pushp = jttg(jt, pushp)); } \
529528
if (((tt ^ AFLAG(x)) & TRAVERSIBLE) != 0) RZ(pushp = jttpush(jt, (x), tt, pushp)); \
530529
jt->tnextpushp = pushp; \
531-
suffix \
532530
} \
533531
}
534-
#define tpush(x) tpushcommon(x, )
535532
// Internal version, used when the local name pushp is known to hold jt->tnextpushp
536533
#define tpushi(x) \
537534
{ \

jsrc/words/w.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ jtenqueue(J jt, A a, A w, I env) {
449449
} // bad first character or inflection
450450
}
451451
// Since the word is being incorporated into a list, we must realize it
452-
rifv(*x);
452+
realizeifvirtual(*x);
453453
// Mark the word as not-inplaceable. Since all allocations start life marked in-placeable, we get into trouble
454454
// if words in a explicit definition are left that way, because the sentences may get reexecuted and any
455455
// constant marked inplaceable could be modified by each use. The trouble happens only if the definition is not

0 commit comments

Comments
 (0)