1
1

* textconf.c: mc --version prints the size of commonly used data

types.
Этот коммит содержится в:
Roland Illig 2005-07-05 20:57:38 +00:00
родитель db1e5ef53c
Коммит 148f56adcd
2 изменённых файлов: 13 добавлений и 1 удалений

@ -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 <roland.illig@gmx.de>

@ -25,6 +25,7 @@
#include <sys/types.h>
#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");
}