[BACK]Return to ch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/ch.c between version 1.2 and 1.3

version 1.2, 2001/01/29 01:58:00 version 1.3, 2001/11/19 19:02:14
Line 108 
Line 108 
         int          int
 fch_get()  fch_get()
 {  {
         register struct buf *bp;          struct buf *bp;
         register int n;          int n;
         register int slept;          int slept;
         POSITION pos;          POSITION pos;
         POSITION len;          POSITION len;
   
Line 314 
Line 314 
         public void          public void
 sync_logfile()  sync_logfile()
 {  {
         register struct buf *bp;          struct buf *bp;
         int warned = FALSE;          int warned = FALSE;
         long block;          long block;
         long nblocks;          long nblocks;
Line 352 
Line 352 
 buffered(block)  buffered(block)
         long block;          long block;
 {  {
         register struct buf *bp;          struct buf *bp;
   
         for (bp = ch_bufhead;  bp != END_OF_CHAIN;  bp = bp->next)          for (bp = ch_bufhead;  bp != END_OF_CHAIN;  bp = bp->next)
                 if (bp->block == block)                  if (bp->block == block)
Line 366 
Line 366 
  */   */
         public int          public int
 ch_seek(pos)  ch_seek(pos)
         register POSITION pos;          POSITION pos;
 {  {
         long new_block;          long new_block;
         POSITION len;          POSITION len;
Line 429 
Line 429 
         public int          public int
 ch_beg_seek()  ch_beg_seek()
 {  {
         register struct buf *bp, *firstbp;          struct buf *bp, *firstbp;
   
         /*          /*
          * Try a plain ch_seek first.           * Try a plain ch_seek first.
Line 480 
Line 480 
         public int          public int
 ch_forw_get()  ch_forw_get()
 {  {
         register int c;          int c;
   
         c = ch_get();          c = ch_get();
         if (c == EOI)          if (c == EOI)
Line 550 
Line 550 
         public void          public void
 ch_flush()  ch_flush()
 {  {
         register struct buf *bp;          struct buf *bp;
   
         if (!(ch_flags & CH_CANSEEK))          if (!(ch_flags & CH_CANSEEK))
         {          {
Line 598 
Line 598 
         static int          static int
 ch_addbuf()  ch_addbuf()
 {  {
         register struct buf *bp;          struct buf *bp;
   
         /*          /*
          * Allocate and initialize a new buffer and link it           * Allocate and initialize a new buffer and link it
Line 622 
Line 622 
         static void          static void
 ch_delbufs()  ch_delbufs()
 {  {
         register struct buf *bp;          struct buf *bp;
   
         while (ch_bufhead != END_OF_CHAIN)          while (ch_bufhead != END_OF_CHAIN)
         {          {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3