[BACK]Return to scan.l CVS log [TXT][DIR] Up to [local] / src / usr.bin / bc

Diff for /src/usr.bin/bc/scan.l between version 1.25 and 1.26

version 1.25, 2011/06/01 07:18:23 version 1.26, 2011/06/03 06:10:33
Line 253 
Line 253 
         errno = save_errno;          errno = save_errno;
 }  }
   
   /*
    * Avoid the echo of ^D by the default code of editline and take
    * into account skipchars to make ^D work when the cursor is at start of
    * line after a ^C.
    */
   unsigned char
   bc_eof(EditLine *e, int ch)
   {
           const struct lineinfo *info = el_line(e);
   
           if (info->buffer + skipchars == info->cursor &&
               info->cursor == info->lastchar)
                   return (CC_EOF);
           else
                   return (CC_ERROR);
   }
   
 int  int
 yywrap(void)  yywrap(void)
 {  {

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26