ch.c (221715) | ch.c (237613) |
---|---|
1/* | 1/* |
2 * Copyright (C) 1984-2011 Mark Nudelman | 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 * | 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 about less, or for information on how to 8 * contact the author, see the README file. | 7 * For more information, see the README file. |
9 */ 10 11 12/* 13 * Low level character input from the input file. 14 * We use these special purpose routines which optimize moving 15 * both forward and backward from the current read pointer. 16 */ --- 560 unchanged lines hidden (view full) --- 577ch_length() 578{ 579 if (thisfile == NULL) 580 return (NULL_POSITION); 581 if (ignore_eoi) 582 return (NULL_POSITION); 583 if (ch_flags & CH_HELPFILE) 584 return (size_helpdata); | 8 */ 9 10 11/* 12 * Low level character input from the input file. 13 * We use these special purpose routines which optimize moving 14 * both forward and backward from the current read pointer. 15 */ --- 560 unchanged lines hidden (view full) --- 576ch_length() 577{ 578 if (thisfile == NULL) 579 return (NULL_POSITION); 580 if (ignore_eoi) 581 return (NULL_POSITION); 582 if (ch_flags & CH_HELPFILE) 583 return (size_helpdata); |
584 if (ch_flags & CH_NODATA) 585 return (0); |
|
585 return (ch_fsize); 586} 587 588/* 589 * Return the current position in the file. 590 */ 591 public POSITION 592ch_tell() --- 341 unchanged lines hidden --- | 586 return (ch_fsize); 587} 588 589/* 590 * Return the current position in the file. 591 */ 592 public POSITION 593ch_tell() --- 341 unchanged lines hidden --- |