fixed the strerror_r issue arising for implementation difference
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-02-16 08:39:33 +09:00
parent bd8bf36485
commit dc8f0102a8
2 changed files with 18 additions and 4 deletions

View File

@ -637,7 +637,10 @@ int main (int argc, char* argv[])
if (argc < 2)
{
print_usage:
fprintf (stderr, "Usage: %s filename ...\n", argv[0]);
fprintf (stderr, "Usage: %s [options] script-filename [output-filename]\n", argv[0]);
fprintf (stderr, "Options are:\n");
fprintf (stderr, " -b enable block construct with {}\n");
fprintf (stderr, " -n enable line-break as expression terminator\n");
return -1;
}
@ -700,7 +703,7 @@ int main (int argc, char* argv[])
}
}
if ((opt.ind + 1) != argc && !show_info) goto print_usage;
if ((opt.ind + 1) != argc && (opt.ind + 2) != argc && !show_info) goto print_usage;
#endif
hcl = hcl_openstd(HCL_SIZEOF(xtn_t), HCL_NULL);