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

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

version 1.7, 2002/05/29 12:44:59 version 1.8, 2003/05/20 03:08:55
Line 14 
Line 14 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 backword(f, n)  backword(int f, int n)
         int f, n;  
 {  {
         if (n < 0)          if (n < 0)
                 return forwword(f | FFRAND, -n);                  return forwword(f | FFRAND, -n);
Line 40 
Line 39 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 forwword(f, n)  forwword(int f, int n)
         int f, n;  
 {  {
         if (n < 0)          if (n < 0)
                 return backword(f | FFRAND, -n);                  return backword(f | FFRAND, -n);
Line 64 
Line 62 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 upperword(f, n)  upperword(int f, int n)
         int f, n;  
 {  {
         int     c;          int     c;
   
Line 101 
Line 98 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 lowerword(f, n)  lowerword(int f, int n)
         int f, n;  
 {  {
         int     c;          int     c;
   
Line 139 
Line 135 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 capword(f, n)  capword(int f, int n)
         int f, n;  
 {  {
         int     c;          int     c;
   
Line 185 
Line 180 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 delfword(f, n)  delfword(int f, int n)
         int f, n;  
 {  {
         RSIZE    size;          RSIZE    size;
         LINE    *dotp;          LINE    *dotp;
Line 239 
Line 233 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 delbword(f, n)  delbword(int f, int n)
         int f, n;  
 {  {
         RSIZE   size;          RSIZE   size;
   
Line 290 
Line 283 
  * part of a word. The word character list is hard coded. Should be setable.   * part of a word. The word character list is hard coded. Should be setable.
  */   */
 int  int
 inword()  inword(void)
 {  {
         /* can't use lgetc in ISWORD due to bug in OSK cpp */          /* can't use lgetc in ISWORD due to bug in OSK cpp */
         return curwp->w_doto != llength(curwp->w_dotp) &&          return curwp->w_doto != llength(curwp->w_dotp) &&

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