9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] bufreset deletes b->nbl-1 blocks?
@ 2016-08-12 12:30 Costin Chirvasuta
  2016-08-12 15:20 ` James A. Robinson
  0 siblings, 1 reply; 7+ messages in thread
From: Costin Chirvasuta @ 2016-08-12 12:30 UTC (permalink / raw)
  To: 9fans

I'm reading the sam source (very educational) and I've stumbled across
a piece I don't understand, in buff.c:^bufreset:

for(i=b->nbl-1; --i>=0; )
    delblock(b, i);

Doesn't this delete b-nbl-1 blocks? Also delblock would always call
memmove, moving 1 block at the end, if I read it correctly.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-08-12 16:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12 12:30 [9fans] bufreset deletes b->nbl-1 blocks? Costin Chirvasuta
2016-08-12 15:20 ` James A. Robinson
2016-08-12 15:29   ` Costin Chirvasuta
2016-08-12 15:48     ` James A. Robinson
2016-08-12 16:10       ` Costin Chirvasuta
2016-08-12 16:16         ` James A. Robinson
2016-08-12 16:25           ` Costin Chirvasuta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).