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

Diff for /src/usr.bin/mg/interpreter.c between version 1.12 and 1.13

version 1.12, 2021/03/22 09:26:23 version 1.13, 2021/03/23 15:22:25
Line 43 
Line 43 
  *   *
  */   */
 #include <sys/queue.h>  #include <sys/queue.h>
   
   #include <limits.h>
 #include <regex.h>  #include <regex.h>
 #include <signal.h>  #include <signal.h>
 #include <stdio.h>  #include <stdio.h>
Line 384 
Line 386 
                                 spc = 1;                                  spc = 1;
                                 fin = 0;                                  fin = 0;
                                 continue;                                  continue;
                         } else                          } else {
                                 return (dobeep_msgs("Var not found:", argp));                                  const char *errstr;
                                   int iters;
   
                                   iters = strtonum(argp, 0, INT_MAX, &errstr);
                                   if (errstr != NULL)
                                           return (dobeep_msgs("Var not found:",
                                               argp));
                           }
   
                         if (strlcpy(excbuf, cmdp, sizeof(excbuf))                          if (strlcpy(excbuf, cmdp, sizeof(excbuf))
                             >= sizeof(excbuf))                              >= sizeof(excbuf))

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13