[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.2 and 1.3

version 1.2, 2000/02/25 19:09:48 version 1.3, 2000/02/26 22:53:16
Line 10 
Line 10 
 int     lastflag;                       /* Flags, last command          */  int     lastflag;                       /* Flags, last command          */
 int     curgoal;                        /* Goal column                  */  int     curgoal;                        /* Goal column                  */
 BUFFER  *curbp;                         /* Current buffer               */  BUFFER  *curbp;                         /* Current buffer               */
 WINDOW  *curwp;                         /* Current window               */  MGWIN   *curwp;                         /* Current window               */
 BUFFER  *bheadp;                        /* BUFFER listhead              */  BUFFER  *bheadp;                        /* BUFFER listhead              */
 WINDOW  *wheadp = (WINDOW *)NULL;       /* WINDOW listhead              */  MGWIN   *wheadp = (MGWIN *)NULL;        /* MGWIN listhead               */
 char    pat[NPAT];                      /* Pattern                      */  char    pat[NPAT];                      /* Pattern                      */
 #ifndef NO_DPROMPT  #ifndef NO_DPROMPT
 extern char prompt[], *promptp;         /* delayed prompting            */  extern char prompt[], *promptp;         /* delayed prompting            */
Line 85 
Line 85 
 static VOID  static VOID
 edinit() {  edinit() {
         register BUFFER *bp;          register BUFFER *bp;
         register WINDOW *wp;          register MGWIN *wp;
   
         bheadp = NULL;          bheadp = NULL;
         bp = bfind("*scratch*", TRUE);          /* Text buffer.         */          bp = bfind("*scratch*", TRUE);          /* Text buffer.         */
         wp = (WINDOW *)malloc(sizeof(WINDOW));  /* Initial window.      */          wp = (MGWIN *)malloc(sizeof(MGWIN));    /* Initial window.      */
         if (bp==NULL || wp==NULL) panic("edinit");          if (bp==NULL || wp==NULL) panic("edinit");
         curbp  = bp;                            /* Current ones.        */          curbp  = bp;                            /* Current ones.        */
         wheadp = wp;          wheadp = wp;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3