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

Diff for /src/usr.bin/less/mark.c between version 1.6 and 1.7

version 1.6, 2010/07/03 16:29:46 version 1.7, 2011/09/16 18:12:09
Line 1 
Line 1 
 /*  /*
  * Copyright (C) 1984-2002  Mark Nudelman   * Copyright (C) 1984-2011  Mark Nudelman
  *   *
  * You may distribute under the terms of either the GNU General Public   * You may distribute under the terms of either the GNU General Public
  * License or the Less License, as specified in the README file.   * License or the Less License, as specified in the README file.
Line 129 
Line 129 
         return (m);          return (m);
 }  }
   
 #ifndef SMALL_PROGRAM  #if PIPEC
 /*  /*
  * Is a mark letter is invalid?   * Is a mark letter is invalid?
  */   */
Line 139 
Line 139 
 {  {
         return (getmark(c) == NULL);          return (getmark(c) == NULL);
 }  }
 #endif /* SMALL_PROGRAM */  #endif
   
 /*  /*
  * Set a user-defined mark.   * Set a user-defined mark.
Line 167 
Line 167 
 {  {
         struct scrpos scrpos;          struct scrpos scrpos;
   
           if (ch_getflags() & CH_HELPFILE)
                   return;
         get_scrpos(&scrpos);          get_scrpos(&scrpos);
         if (scrpos.pos == NULL_POSITION)          if (scrpos.pos == NULL_POSITION)
                 return;                  return;
Line 218 
Line 220 
         jump_loc(scrpos.pos, scrpos.ln);          jump_loc(scrpos.pos, scrpos.ln);
 }  }
   
 #ifndef SMALL_PROGRAM  #if PIPEC
 /*  /*
  * Return the position associated with a given mark letter.   * Return the position associated with a given mark letter.
  *   *
Line 243 
Line 245 
         }          }
         return (m->m_scrpos.pos);          return (m->m_scrpos.pos);
 }  }
 #endif /* SMALL_PROGRAM */  #endif /* PIPEC */
   
 /*  /*
  * Clear the marks associated with a specified ifile.   * Clear the marks associated with a specified ifile.

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7