/[emacs]/emacs/src/marker.c
ViewVC logotype

Diff of /emacs/src/marker.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.39 by lektu, Tue Feb 4 14:03:13 2003 UTC revision 1.40 by rms, Sun Apr 6 20:33:59 2003 UTC
# Line 252  buf_charpos_to_bytepos (b, charpos) Line 252  buf_charpos_to_bytepos (b, charpos)
252  }  }
253    
254  #undef CONSIDER  #undef CONSIDER
255    
256    /* Used for debugging: recompute the bytepos corresponding to CHARPOS
257       in the simplest, most reliable way.  */
258    
259    int
260    verify_bytepos (charpos)
261    {
262      int below = 1;
263      int below_byte = 1;
264    
265      while (below != charpos)
266        {
267          below++;
268          BUF_INC_POS (current_buffer, below_byte);
269        }
270    
271      return below_byte;
272    }
273    
274  /* bytepos_to_charpos returns the char position corresponding to BYTEPOS.  */  /* bytepos_to_charpos returns the char position corresponding to BYTEPOS.  */
275    

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26