[BACK]Return to tputs.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libterm

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libterm/Attic/tputs.c between version 1.14.4.1 and 1.17

version 1.14.4.1, 2000/06/23 16:16:56 version 1.17, 2001/01/05 23:02:00
Line 75  _tputs_convert(ptr, affcnt)
Line 75  _tputs_convert(ptr, affcnt)
         /*          /*
          * Convert the number representing the delay.           * Convert the number representing the delay.
          */           */
         if (isdigit(*(*ptr))) {          if (isdigit(*(const unsigned char *)(*ptr))) {
                 do                  do
                         i = i * 10 + *(*ptr)++ - '0';                          i = i * 10 + *(*ptr)++ - '0';
                 while (isdigit(*(*ptr)));                  while (isdigit(*(const unsigned char *)(*ptr)));
         }          }
         i *= 10;          i *= 10;
         if (*(*ptr) == '.') {          if (*(*ptr) == '.') {
                 (*ptr)++;                  (*ptr)++;
                 if (isdigit(*(*ptr)))                  if (isdigit(*(const unsigned char *)(*ptr)))
                         i += *(*ptr) - '0';                          i += *(*ptr) - '0';
                 /*                  /*
                  * Only one digit to the right of the decimal point.                   * Only one digit to the right of the decimal point.
                  */                   */
                 while (isdigit(*(*ptr)))                  while (isdigit(*(const unsigned char *)(*ptr)))
                         (*ptr)++;                          (*ptr)++;
         }          }
   

Legend:
Removed from v.1.14.4.1  
changed lines
  Added in v.1.17

CVSweb <webmaster@jp.NetBSD.org>