option.c (300675f6fc464ea902932e6ee4aa2ac98e3f3c34) | option.c (21fa654189930b38d84e96afd7454cc466759583) |
---|---|
1/* 2 * Copyright (C) 1984-2012 Mark Nudelman 3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * 7 * For more information, see the README file. 8 */ --- 135 unchanged lines hidden (view full) --- 144 * "++" means process the commands at the start of 145 * EVERY input file. 146 */ 147 plusoption = TRUE; 148 s = optstring(s, &str, propt('+'), NULL); 149 if (s == NULL) 150 return; 151 if (*str == '+') | 1/* 2 * Copyright (C) 1984-2012 Mark Nudelman 3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * 7 * For more information, see the README file. 8 */ --- 135 unchanged lines hidden (view full) --- 144 * "++" means process the commands at the start of 145 * EVERY input file. 146 */ 147 plusoption = TRUE; 148 s = optstring(s, &str, propt('+'), NULL); 149 if (s == NULL) 150 return; 151 if (*str == '+') |
152 every_first_cmd = save(++str); | 152 every_first_cmd = save(str+1); |
153 else 154 ungetsc(str); 155 free(str); 156 continue; 157 case '0': case '1': case '2': case '3': case '4': 158 case '5': case '6': case '7': case '8': case '9': 159 /* 160 * Special "more" compatibility form "-<number>" --- 419 unchanged lines hidden (view full) --- 580 { 581 if (*p == '\\' && p[1] != '\0') 582 { 583 /* Take next char literally. */ 584 ++p; 585 } else 586 { 587 if (*p == END_OPTION_STRING || | 153 else 154 ungetsc(str); 155 free(str); 156 continue; 157 case '0': case '1': case '2': case '3': case '4': 158 case '5': case '6': case '7': case '8': case '9': 159 /* 160 * Special "more" compatibility form "-<number>" --- 419 unchanged lines hidden (view full) --- 580 { 581 if (*p == '\\' && p[1] != '\0') 582 { 583 /* Take next char literally. */ 584 ++p; 585 } else 586 { 587 if (*p == END_OPTION_STRING || |
588 *p == ' ' || *p == '\t' || *p == '-' || | |
589 (validchars != NULL && strchr(validchars, *p) == NULL)) 590 /* End of option string. */ 591 break; 592 } 593 *out++ = *p; 594 } 595 *out = '\0'; 596 return (p); --- 109 unchanged lines hidden --- | 588 (validchars != NULL && strchr(validchars, *p) == NULL)) 589 /* End of option string. */ 590 break; 591 } 592 *out++ = *p; 593 } 594 *out = '\0'; 595 return (p); --- 109 unchanged lines hidden --- |