comparison src/search.c @ 20965:8c68721e5ec9

(scan_newline): Delete duplicated code.
author Kenichi Handa <handa@m17n.org>
date Tue, 24 Feb 1998 06:57:15 +0000
parents 765fdbf766e4
children a88d2c555a06
comparison
equal deleted inserted replaced
20964:4cad33afd914 20965:8c68721e5ec9
784 start_byte += cursor - base; 784 start_byte += cursor - base;
785 } 785 }
786 } 786 }
787 else 787 else
788 { 788 {
789 int start_byte = CHAR_TO_BYTE (start);
790 while (start_byte > limit_byte) 789 while (start_byte > limit_byte)
791 { 790 {
792 ceiling = BUFFER_FLOOR_OF (start_byte - 1); 791 ceiling = BUFFER_FLOOR_OF (start_byte - 1);
793 ceiling = max (limit_byte, ceiling); 792 ceiling = max (limit_byte, ceiling);
794 ceiling_addr = BYTE_POS_ADDR (ceiling) - 1; 793 ceiling_addr = BYTE_POS_ADDR (ceiling) - 1;