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

Diff for /src/usr.bin/mg/grep.c between version 1.7 and 1.8

version 1.7, 2002/07/25 16:37:54 version 1.8, 2003/04/08 21:19:57
Line 37 
Line 37 
   
 void grep_init(void);  void grep_init(void);
   
   static char compile_last_command[NFILEN] = "make ";
   
 /*  /*
  * Hints for next-error   * Hints for next-error
  *   *
Line 100 
Line 102 
         BUFFER *bp;          BUFFER *bp;
         MGWIN *wp;          MGWIN *wp;
   
         (void)strlcpy(prompt, "make ", sizeof prompt);          (void)strlcpy(prompt, compile_last_command, sizeof prompt);
         if (eread("Compile command: ", prompt, NFILEN, EFDEF|EFNEW|EFCR) == ABORT)          if (eread("Compile command: ", prompt, NFILEN, EFDEF|EFNEW|EFCR) == ABORT)
                 return ABORT;                  return ABORT;
           (void)strlcpy(compile_last_command, prompt, sizeof compile_last_command);
   
         (void)snprintf(command, sizeof command, "%s 2>&1", prompt);          (void)snprintf(command, sizeof command, "%s 2>&1", prompt);
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8