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

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

version 1.2, 2001/01/29 01:58:02 version 1.3, 2001/11/19 19:02:14
Line 67 
Line 67 
   
         static void          static void
 incr_index(p, incr)  incr_index(p, incr)
         register struct ifile *p;          struct ifile *p;
         int incr;          int incr;
 {  {
         for (;  p != &anchor;  p = p->h_next)          for (;  p != &anchor;  p = p->h_next)
Line 118 
Line 118 
         char *filename;          char *filename;
         struct ifile *prev;          struct ifile *prev;
 {  {
         register struct ifile *p;          struct ifile *p;
   
         /*          /*
          * Allocate and initialize structure.           * Allocate and initialize structure.
Line 138 
Line 138 
 del_ifile(h)  del_ifile(h)
         IFILE h;          IFILE h;
 {  {
         register struct ifile *p;          struct ifile *p;
   
         if (h == NULL_IFILE)          if (h == NULL_IFILE)
                 return;                  return;
Line 161 
Line 161 
 next_ifile(h)  next_ifile(h)
         IFILE h;          IFILE h;
 {  {
         register struct ifile *p;          struct ifile *p;
   
         p = (h == NULL_IFILE) ? &anchor : int_ifile(h);          p = (h == NULL_IFILE) ? &anchor : int_ifile(h);
         if (p->h_next == &anchor)          if (p->h_next == &anchor)
Line 176 
Line 176 
 prev_ifile(h)  prev_ifile(h)
         IFILE h;          IFILE h;
 {  {
         register struct ifile *p;          struct ifile *p;
   
         p = (h == NULL_IFILE) ? &anchor : int_ifile(h);          p = (h == NULL_IFILE) ? &anchor : int_ifile(h);
         if (p->h_prev == &anchor)          if (p->h_prev == &anchor)
Line 216 
Line 216 
 find_ifile(filename)  find_ifile(filename)
         char *filename;          char *filename;
 {  {
         register struct ifile *p;          struct ifile *p;
   
         for (p = anchor.h_next;  p != &anchor;  p = p->h_next)          for (p = anchor.h_next;  p != &anchor;  p = p->h_next)
                 if (strcmp(filename, p->h_filename) == 0)                  if (strcmp(filename, p->h_filename) == 0)
Line 234 
Line 234 
         char *filename;          char *filename;
         IFILE prev;          IFILE prev;
 {  {
         register struct ifile *p;          struct ifile *p;
   
         if ((p = find_ifile(filename)) == NULL)          if ((p = find_ifile(filename)) == NULL)
                 p = new_ifile(filename, int_ifile(prev));                  p = new_ifile(filename, int_ifile(prev));
Line 325 
Line 325 
         public void          public void
 if_dump()  if_dump()
 {  {
         register struct ifile *p;          struct ifile *p;
   
         for (p = anchor.h_next;  p != &anchor;  p = p->h_next)          for (p = anchor.h_next;  p != &anchor;  p = p->h_next)
         {          {

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