OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.c versions 1.5 and 1.6
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.c 1.5 -> 1.6

--- var.c        2001/11/13 13:29:50     1.5
+++ var.c        2001/11/13 13:32:58     1.6
@@ -799,7 +799,6 @@
         {
         if ((src->end - p) >= 3 && p[1] == '-')
             {
-            printf("Expand class.\n");
             if (*p > p[2])
                 return VAR_INCORRECT_TRANSPOSE_CLASS_SPEC;
             for (c = *p, d = p[2]; c <= d; ++c)
@@ -811,7 +810,6 @@
             }
         else
             {
-            printf("Copy verbatim.\n");
             if (!append_to_tokenbuf(dst, p, 1))
                 return VAR_OUT_OF_MEMORY;
             else
@@ -836,9 +834,6 @@
     if ((rc = expand_class_description(replace, &dstclass)) != VAR_OK)
         goto error_return;
 
-    printf("Transpose from '%s' to '%s'.\n",
-           srcclass.begin, dstclass.begin);
-
     if (srcclass.begin == srcclass.end)
         {
         rc = VAR_EMPTY_TRANSPOSE_CLASS;
@@ -1087,9 +1082,6 @@
     size_t width = tokenbuf2int(widthstr);
     int i;
 
-    printf("Padding data '%s' to width '%d' by filling in '%s' to position '%c'.\n",
-           data->begin, width, fill->begin, position);
-
     if (fill->begin == fill->end)
         return VAR_EMPTY_PADDING_FILL_STRING;
 
@@ -1100,9 +1092,7 @@
         i = width - (data->end - data->begin);
         if (i > 0)
             {
-            printf("Missing %d characters at the end of the data string.\n", i);
             i = i / (fill->end - fill->begin);
-            printf("That's %d times the padding string.\n", i);
             while(i > 0)
                 {
                 if (!append_to_tokenbuf(data, fill->begin, fill->end - fill->begin))
@@ -1110,7 +1100,6 @@
                 --i;
                 }
             i = (width - (data->end - data->begin)) % (fill->end - fill->begin);
-            printf("Plus a remainder of %d characters.\n", i);
             if (!append_to_tokenbuf(data, fill->begin, i))
                 return VAR_OUT_OF_MEMORY;
             }
@@ -1120,9 +1109,7 @@
         i = width - (data->end - data->begin);
         if (i > 0)
             {
-            printf("Missing %d characters at the beginning of the data string.\n", i);
             i = i / (fill->end - fill->begin);
-            printf("That's %d times the padding string.\n", i);
             while(i > 0)
                 {
                 if (!append_to_tokenbuf(&result, fill->begin, fill->end - fill->begin))
@@ -1133,7 +1120,6 @@
                 --i;
                 }
             i = (width - (data->end - data->begin)) % (fill->end - fill->begin);
-            printf("Plus a remainder of %d characters.\n", i);
             if (!append_to_tokenbuf(&result, fill->begin, i))
                 {
                 free_tokenbuf(&result);
@@ -1156,9 +1142,7 @@
             {
             /* Create the prefix. */
 
-            printf("Missing %d characters at the beginning of the data string.\n", i);
             i = i / (fill->end - fill->begin);
-            printf("That's %d times the padding string.\n", i);
             while(i > 0)
                 {
                 if (!append_to_tokenbuf(&result, fill->begin, fill->end - fill->begin))
@@ -1169,7 +1153,6 @@
                 --i;
                 }
             i = ((width - (data->end - data->begin)) / 2) % (fill->end - fill->begin);
-            printf("Plus a remainder of %d characters.\n", i);
             if (!append_to_tokenbuf(&result, fill->begin, i))
                 {
                 free_tokenbuf(&result);
@@ -1187,9 +1170,7 @@
             /* Append the suffix. */
 
             i = width - (result.end - result.begin);
-            printf("Missing %d characters at the end of the data string.\n", i);
             i = i / (fill->end - fill->begin);
-            printf("That's %d times the padding string.\n", i);
             while(i > 0)
                 {
                 if (!append_to_tokenbuf(&result, fill->begin, fill->end - fill->begin))
@@ -1200,7 +1181,6 @@
                 --i;
                 }
             i = width - (result.end - result.begin);
-            printf("Plus a remainder of %d characters.\n", i);
             if (!append_to_tokenbuf(&result, fill->begin, i))
                 {
                 free_tokenbuf(&result);

CVSTrac 2.0.1