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

Diff for /src/usr.bin/mg/main.c between version 1.6 and 1.7

version 1.6, 2001/01/29 01:58:08 version 1.7, 2001/05/23 22:20:35
Line 19 
Line 19 
 MGWIN           *wheadp = (MGWIN *)NULL;        /* MGWIN listhead       */  MGWIN           *wheadp = (MGWIN *)NULL;        /* MGWIN listhead       */
 char             pat[NPAT];                     /* pattern              */  char             pat[NPAT];                     /* pattern              */
   
 static VOID      edinit         __P((VOID));  static void      edinit         __P((void));
   
 int  int
 main(argc, argv)  main(argc, argv)
Line 48 
Line 48 
 #ifndef NO_STARTUP  #ifndef NO_STARTUP
         /* user startup file */          /* user startup file */
         if ((cp = startupfile((char *)NULL)) != NULL)          if ((cp = startupfile((char *)NULL)) != NULL)
                 (VOID)load(cp);                  (void)load(cp);
 #endif  /* !NO_STARTUP */  #endif  /* !NO_STARTUP */
         while (--argc > 0) {          while (--argc > 0) {
                 cp = adjustname(*++argv);                  cp = adjustname(*++argv);
                 curbp = findbuffer(cp);                  curbp = findbuffer(cp);
                 (VOID)showbuffer(curbp, curwp, 0);                  (void)showbuffer(curbp, curwp, 0);
                 (VOID)readin(cp);                  (void)readin(cp);
         }          }
   
         /* fake last flags */          /* fake last flags */
Line 88 
Line 88 
 /*  /*
  * Initialize default buffer and window.   * Initialize default buffer and window.
  */   */
 static VOID  static void
 edinit()  edinit()
 {  {
         BUFFER  *bp;          BUFFER  *bp;

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