[BACK]Return to linenum.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/linenum.c between version 1.17 and 1.18

version 1.17, 2017/11/27 23:39:03 version 1.18, 2019/09/03 23:08:42
Line 69 
Line 69 
 static struct linenum_info *spare;      /* We always keep one spare entry */  static struct linenum_info *spare;      /* We always keep one spare entry */
   
 extern int linenums;  extern int linenums;
 extern volatile sig_atomic_t sigs;  
 extern int sc_height;  extern int sc_height;
 extern int screen_trashed;  extern int screen_trashed;
   
Line 308 
Line 307 
                          * Allow a signal to abort this loop.                           * Allow a signal to abort this loop.
                          */                           */
                         cpos = forw_raw_line(cpos, NULL, NULL);                          cpos = forw_raw_line(cpos, NULL, NULL);
                         if (ABORT_SIGS()) {                          if (abort_sigs()) {
                                 abort_long();                                  abort_long();
                                 return (0);                                  return (0);
                         }                          }
Line 338 
Line 337 
                          * Allow a signal to abort this loop.                           * Allow a signal to abort this loop.
                          */                           */
                         cpos = back_raw_line(cpos, NULL, NULL);                          cpos = back_raw_line(cpos, NULL, NULL);
                         if (ABORT_SIGS()) {                          if (abort_sigs()) {
                                 abort_long();                                  abort_long();
                                 return (0);                                  return (0);
                         }                          }
Line 395 
Line 394 
                          * Allow a signal to abort this loop.                           * Allow a signal to abort this loop.
                          */                           */
                         cpos = forw_raw_line(cpos, NULL, NULL);                          cpos = forw_raw_line(cpos, NULL, NULL);
                         if (ABORT_SIGS())                          if (abort_sigs())
                                 return (-1);                                  return (-1);
                         if (cpos == -1)                          if (cpos == -1)
                                 return (-1);                                  return (-1);
Line 413 
Line 412 
                          * Allow a signal to abort this loop.                           * Allow a signal to abort this loop.
                          */                           */
                         cpos = back_raw_line(cpos, (char **)NULL, (int *)NULL);                          cpos = back_raw_line(cpos, (char **)NULL, (int *)NULL);
                         if (ABORT_SIGS())                          if (abort_sigs())
                                 return (-1);                                  return (-1);
                         if (cpos == -1)                          if (cpos == -1)
                                 return (-1);                                  return (-1);

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18