* textconf.c: mc --version prints the size of commonly used data
types.
Этот коммит содержится в:
родитель
db1e5ef53c
Коммит
148f56adcd
@ -5,6 +5,8 @@
|
|||||||
* file.c: Likewise.
|
* file.c: Likewise.
|
||||||
* view.c (view_load): Don't try to use fcntl() with VFS file
|
* view.c (view_load): Don't try to use fcntl() with VFS file
|
||||||
handles. That cannot work.
|
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>
|
2005-07-03 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
#include "ecs.h"
|
||||||
|
|
||||||
#ifdef USE_VFS
|
#ifdef USE_VFS
|
||||||
static const char *const vfs_supported[] = {
|
static const char *const vfs_supported[] = {
|
||||||
@ -137,5 +138,14 @@ show_version (int verbose)
|
|||||||
for (i = 0; features[i]; i++)
|
for (i = 0; features[i]; i++)
|
||||||
printf ("%s", _(features[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");
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user