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

Diff for /src/usr.bin/mg/basic.c between version 1.5 and 1.6

version 1.5, 2001/02/12 21:51:55 version 1.6, 2001/05/23 22:20:34
Line 11 
Line 11 
  */   */
 #include "def.h"  #include "def.h"
   
 VOID setgoal __P((void));  void setgoal __P((void));
   
 /*  /*
  * Go to beginning of line.   * Go to beginning of line.
Line 109 
Line 109 
         int f, n;          int f, n;
 {  {
   
         (VOID) setmark(f, n);          (void) setmark(f, n);
         curwp->w_dotp = lforw(curbp->b_linep);          curwp->w_dotp = lforw(curbp->b_linep);
         curwp->w_doto = 0;          curwp->w_doto = 0;
         curwp->w_flag |= WFHARD;          curwp->w_flag |= WFHARD;
Line 126 
Line 126 
         int f, n;          int f, n;
 {  {
   
         (VOID) setmark(f, n);          (void) setmark(f, n);
         curwp->w_dotp = lback(curbp->b_linep);          curwp->w_dotp = lback(curbp->b_linep);
         curwp->w_doto = llength(curwp->w_dotp);          curwp->w_doto = llength(curwp->w_dotp);
         curwp->w_flag |= WFHARD;          curwp->w_flag |= WFHARD;
Line 213 
Line 213 
  * "curgoal", to the current cursor column. The column is never off   * "curgoal", to the current cursor column. The column is never off
  * the edge of the screen; it's more like display then show position.   * the edge of the screen; it's more like display then show position.
  */   */
 VOID  void
 setgoal()  setgoal()
 {  {
   
Line 342 
Line 342 
  * are used to scroll the display up (or down) one line at a time.   * are used to scroll the display up (or down) one line at a time.
  */   */
 #ifdef GOSMACS  #ifdef GOSMACS
 VOID  void
 forw1page(f, n)  forw1page(f, n)
         int f, n;          int f, n;
 {  {
Line 354 
Line 354 
         forwpage(f | FFRAND, n);          forwpage(f | FFRAND, n);
 }  }
   
 VOID  void
 back1page(f, n)  back1page(f, n)
         int f, n;          int f, n;
 {  {
Line 382 
Line 382 
                 return FALSE;                  return FALSE;
         }          }
         wp = curwp;          wp = curwp;
         (VOID) nextwind(f, n);          (void) nextwind(f, n);
         (VOID) forwpage(f, n);          (void) forwpage(f, n);
         curwp = wp;          curwp = wp;
         curbp = wp->w_bufp;          curbp = wp->w_bufp;
         return TRUE;          return TRUE;
Line 392 
Line 392 
 /*  /*
  * Internal set mark routine, used by other functions (daveb).   * Internal set mark routine, used by other functions (daveb).
  */   */
 VOID  void
 isetmark()  isetmark()
 {  {
   

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