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

Diff for /src/usr.bin/less/position.c between version 1.3 and 1.4

version 1.3, 2001/01/29 01:58:03 version 1.4, 2001/11/19 19:02:14
Line 82 
Line 82 
 add_forw_pos(pos)  add_forw_pos(pos)
         POSITION pos;          POSITION pos;
 {  {
         register int i;          int i;
   
         /*          /*
          * Scroll the position table up.           * Scroll the position table up.
Line 99 
Line 99 
 add_back_pos(pos)  add_back_pos(pos)
         POSITION pos;          POSITION pos;
 {  {
         register int i;          int i;
   
         /*          /*
          * Scroll the position table down.           * Scroll the position table down.
Line 115 
Line 115 
         public void          public void
 pos_clear()  pos_clear()
 {  {
         register int i;          int i;
   
         for (i = 0;  i < sc_height;  i++)          for (i = 0;  i < sc_height;  i++)
                 table[i] = NULL_POSITION;                  table[i] = NULL_POSITION;
Line 157 
Line 157 
 onscreen(pos)  onscreen(pos)
         POSITION pos;          POSITION pos;
 {  {
         register int i;          int i;
   
         if (pos < table[0])          if (pos < table[0])
                 return (-1);                  return (-1);
Line 181 
Line 181 
         int s;          int s;
         int e;          int e;
 {  {
         register int i;          int i;
   
         for (i = s;  i <= e;  i++)          for (i = s;  i <= e;  i++)
                 if (table[i] != NULL_POSITION)                  if (table[i] != NULL_POSITION)
Line 201 
Line 201 
 get_scrpos(scrpos)  get_scrpos(scrpos)
         struct scrpos *scrpos;          struct scrpos *scrpos;
 {  {
         register int i;          int i;
   
         /*          /*
          * Find the first line on the screen which has something on it,           * Find the first line on the screen which has something on it,

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