[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.11 and 1.12

version 1.11, 2002/03/10 13:22:56 version 1.12, 2002/03/11 13:02:56
Line 18 
Line 18 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 gotobol(f, n)  gotobol(int f, int n)
         int f, n;  
 {  {
         curwp->w_doto = 0;          curwp->w_doto = 0;
         return (TRUE);          return (TRUE);
Line 33 
Line 32 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 backchar(f, n)  backchar(int f, int n)
         int     n;  
 {  {
         LINE   *lp;          LINE   *lp;
   
Line 61 
Line 59 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 gotoeol(f, n)  gotoeol(int f, int n)
         int f, n;  
 {  {
         curwp->w_doto = llength(curwp->w_dotp);          curwp->w_doto = llength(curwp->w_dotp);
         return (TRUE);          return (TRUE);
Line 76 
Line 73 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 forwchar(f, n)  forwchar(int f, int n)
         int f, n;  
 {  {
   
         if (n < 0)          if (n < 0)
Line 105 
Line 101 
  * but almost always the case.   * but almost always the case.
  */   */
 int  int
 gotobob(f, n)  gotobob(int f, int n)
         int f, n;  
 {  {
   
         (void) setmark(f, n);          (void) setmark(f, n);
Line 122 
Line 117 
  * almost always the case.   * almost always the case.
  */   */
 int  int
 gotoeob(f, n)  gotoeob(int f, int n)
         int f, n;  
 {  {
   
         (void) setmark(f, n);          (void) setmark(f, n);
Line 142 
Line 136 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 forwline(f, n)  forwline(int f, int n)
         int f, n;  
 {  {
         LINE  *dlp;          LINE  *dlp;
   
Line 189 
Line 182 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 backline(f, n)  backline(int f, int n)
         int     f, n;  
 {  {
         LINE   *dlp;          LINE   *dlp;
   
Line 214 
Line 206 
  * 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(void)
 {  {
   
         curgoal = getcolpos() - 1;      /* Get the position.     */          curgoal = getcolpos() - 1;      /* Get the position.     */
Line 229 
Line 221 
  * when a vertical motion is made into the line.   * when a vertical motion is made into the line.
  */   */
 int  int
 getgoal(dlp)  getgoal(LINE *dlp)
         LINE  *dlp;  
 {  {
         int    c;          int    c;
         int    col;          int    col;
Line 269 
Line 260 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 forwpage(f, n)  forwpage(int f, int n)
         int    f, n;  
 {  {
         LINE  *lp;          LINE  *lp;
   
Line 308 
Line 298 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 backpage(f, n)  backpage(int f, int n)
         int    f, n;  
 {  {
         LINE  *lp;          LINE  *lp;
   
Line 342 
Line 331 
  * 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.
  */   */
 int  int
 forw1page(f, n)  forw1page(int f, int n)
         int f, n;  
 {  {
   
         if (!(f & FFARG)) {          if (!(f & FFARG)) {
                 n = 1;                  n = 1;
                 f = FFUNIV;                  f = FFUNIV;
Line 355 
Line 342 
 }  }
   
 int  int
 back1page(f, n)  back1page(int f, int n)
         int f, n;  
 {  {
   
         if (!(f & FFARG)) {          if (!(f & FFARG)) {
                 n = 1;                  n = 1;
                 f = FFUNIV;                  f = FFUNIV;
Line 372 
Line 357 
  * nextwind, forwpage and restore window pointers.   * nextwind, forwpage and restore window pointers.
  */   */
 int  int
 pagenext(f, n)  pagenext(int f, int n)
         int    f, n;  
 {  {
         MGWIN *wp;          MGWIN *wp;
   
Line 393 
Line 377 
  * Internal set mark routine, used by other functions (daveb).   * Internal set mark routine, used by other functions (daveb).
  */   */
 void  void
 isetmark()  isetmark(void)
 {  {
   
         curwp->w_markp = curwp->w_dotp;          curwp->w_markp = curwp->w_dotp;
Line 407 
Line 391 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 setmark(f, n)  setmark(int f, int n)
         int f, n;  
 {  {
   
         isetmark();          isetmark();
Line 425 
Line 408 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 swapmark(f, n)  swapmark(int f, int n)
         int    f, n;  
 {  {
         LINE  *odotp;          LINE  *odotp;
         int    odoto;          int    odoto;
Line 454 
Line 436 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 gotoline(f, n)  gotoline(int f, int n)
         int    f, n;  
 {  {
         LINE  *clp;          LINE  *clp;
         int    s;          int    s;

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