(__xstrtol): Add undocumented suffixes 'g' and
authorJim Meyering <jim@meyering.net>
Tue, 19 Dec 2000 08:35:20 +0000 (08:35 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 19 Dec 2000 08:35:20 +0000 (08:35 +0000)
't' for compatibility with Solaris 8 sort.

lib/xstrtol.c

index 07023d9ffdb74e8557ced00a37d7a0d5a52826ac..7bc733545c2ae8efc7ec1d7aea597cb4455b87cb 100644 (file)
@@ -199,6 +199,7 @@ __xstrtol (const char *s, char **ptr, int strtol_base,
          break;
 
        case 'G': /* Giga */
+       case 'g': /* 'g' is undocumented; for compatibility only */
          overflow = bkm_scale_by_power (&tmp, base, 3);
          break;
 
@@ -207,7 +208,7 @@ __xstrtol (const char *s, char **ptr, int strtol_base,
          break;
 
        case 'M': /* Mega */
-       case 'm': /* 'm' is undocumented; for backward compatibility only */
+       case 'm': /* 'm' is undocumented; for compatibility only */
          overflow = bkm_scale_by_power (&tmp, base, 2);
          break;
 
@@ -216,6 +217,7 @@ __xstrtol (const char *s, char **ptr, int strtol_base,
          break;
 
        case 'T': /* Tera */
+       case 't': /* 't' is undocumented; for compatibility only */
          overflow = bkm_scale_by_power (&tmp, base, 4);
          break;