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

Diff for /src/usr.bin/less/option.h between version 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 1996/09/21 05:39:45 version 1.1.1.2, 2003/04/13 18:21:21
Line 1 
Line 1 
 /*  /*
  * Copyright (c) 1984,1985,1989,1994,1995  Mark Nudelman   * Copyright (C) 1984-2002  Mark Nudelman
  * All rights reserved.  
  *   *
  * Redistribution and use in source and binary forms, with or without   * You may distribute under the terms of either the GNU General Public
  * modification, are permitted provided that the following conditions   * License or the Less License, as specified in the README file.
  * are met:  
  * 1. Redistributions of source code must retain the above copyright  
  *    notice, this list of conditions and the following disclaimer.  
  * 2. Redistributions in binary form must reproduce the above copyright  
  *    notice in the documentation and/or other materials provided with  
  *    the distribution.  
  *   *
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY   * For more information about less, or for information on how to
  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE   * contact the author, see the README file.
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE  
  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR  
  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT  
  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR  
  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,  
  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE  
  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN  
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
  */   */
   
   
Line 39 
Line 23 
 #define NO_TOGGLE       0100    /* Option cannot be toggled with "-" cmd */  #define NO_TOGGLE       0100    /* Option cannot be toggled with "-" cmd */
 #define HL_REPAINT      0200    /* Repaint hilites after toggling option */  #define HL_REPAINT      0200    /* Repaint hilites after toggling option */
 #define NO_QUERY        0400    /* Option cannot be queried with "_" cmd */  #define NO_QUERY        0400    /* Option cannot be queried with "_" cmd */
   #define INIT_HANDLER    01000   /* Call option handler function at startup */
   
 #define OTYPE           (BOOL|TRIPLE|NUMBER|STRING|NOVAR)  #define OTYPE           (BOOL|TRIPLE|NUMBER|STRING|NOVAR)
   
Line 54 
Line 39 
 #define OPT_TOGGLE      1  #define OPT_TOGGLE      1
 #define OPT_UNSET       2  #define OPT_UNSET       2
 #define OPT_SET         3  #define OPT_SET         3
   #define OPT_NO_PROMPT   0100
   
 struct option  /* Error code from findopt_name */
   #define OPT_AMBIG       1
   
   struct optname
 {  {
           char *oname;            /* Long (GNU-style) option name */
           struct optname *onext;  /* List of synonymous option names */
   };
   
   struct loption
   {
         char oletter;           /* The controlling letter (a-z) */          char oletter;           /* The controlling letter (a-z) */
           struct optname *onames; /* Long (GNU-style) option name */
         int otype;              /* Type of the option */          int otype;              /* Type of the option */
         int odefault;           /* Default value */          int odefault;           /* Default value */
         int *ovar;              /* Pointer to the associated variable */          int *ovar;              /* Pointer to the associated variable */

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2