version: add size information

Add `sizeof-long` and `sizeof-size_t` information to `version` command.
This commit is contained in:
Edward Thomson
2025-01-09 23:18:01 +00:00
parent 1509637751
commit 6330ca3c0f

View File

@@ -91,6 +91,9 @@ int cmd_version(int argc, char **argv)
printf("%s: %s\n", i->name, value);
}
printf("sizeof-long: %" PRIuZ "\n", sizeof(long));
printf("sizeof-size_t: %" PRIuZ "\n", sizeof(size_t));
for (i = feature_names; i->key; i++) {
if (!(supported_features & i->key))
continue;