diff --git a/src/ChangeLog b/src/ChangeLog index 6cf2b34b1..f8adafed7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,6 +5,8 @@ * file.c: Likewise. * view.c (view_load): Don't try to use fcntl() with VFS file handles. That cannot work. + * textconf.c: mc --version prints the size of commonly used data + types. 2005-07-03 Roland Illig diff --git a/src/textconf.c b/src/textconf.c index 9b879c822..666ff8c49 100644 --- a/src/textconf.c +++ b/src/textconf.c @@ -25,6 +25,7 @@ #include #include "global.h" +#include "ecs.h" #ifdef USE_VFS static const char *const vfs_supported[] = { @@ -137,5 +138,14 @@ show_version (int verbose) for (i = 0; features[i]; i++) printf ("%s", _(features[i])); - (void)printf("Using %d bits for file sizes\n", CHAR_BIT * sizeof(off_t)); + (void)printf("Data types:"); +#define TYPE_INFO(T) \ + (void)printf(" %s %d", #T, (int) (CHAR_BIT * sizeof(T))) + TYPE_INFO(char); + TYPE_INFO(int); + TYPE_INFO(long); + TYPE_INFO(void *); + TYPE_INFO(off_t); +#undef TYPE_INFO + (void)printf("\n"); }