X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxstrtol.c;h=7bc733545c2ae8efc7ec1d7aea597cb4455b87cb;hb=e6d6498c6caf7642510024fefbf64e9d477b19cf;hp=e7b20618910bdecf7c5fbcdf87ac42b14c1b8192;hpb=f60f928185cf71b24a1fe1ad8ddf9aa4290f3ea9;p=gnulib.git diff --git a/lib/xstrtol.c b/lib/xstrtol.c index e7b206189..7bc733545 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -1,5 +1,5 @@ /* A more useful interface to strtol. - Copyright 1995, 1996, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1998-2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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;