String buffers, part 3c: Add IRBUFHDR_WRITE mode.
Sponsored by fmad.io.
This commit is contained in:
@@ -579,7 +579,11 @@ LJFOLDF(kfold_strcmp)
|
||||
** fragments left over from CSE are eliminated by DCE.
|
||||
*/
|
||||
|
||||
/* BUFHDR is emitted like a store, see below. */
|
||||
LJFOLD(BUFHDR any any)
|
||||
LJFOLDF(bufhdr_merge)
|
||||
{
|
||||
return fins->op2 == IRBUFHDR_WRITE ? CSEFOLD : EMITFOLD;
|
||||
}
|
||||
|
||||
LJFOLD(BUFPUT BUFHDR BUFSTR)
|
||||
LJFOLDF(bufput_append)
|
||||
@@ -2432,7 +2436,6 @@ LJFOLD(TNEW any any)
|
||||
LJFOLD(TDUP any)
|
||||
LJFOLD(CNEW any any)
|
||||
LJFOLD(XSNEW any any)
|
||||
LJFOLD(BUFHDR any any)
|
||||
LJFOLDX(lj_ir_emit)
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
Reference in New Issue
Block a user