static int yylex ();
static int yyerror ();
-#if !defined(lint) && !defined(SABER)
-static char RCS[] =
- "$Header: str2date.y,v 2.1 90/09/06 08:15:06 cronan Exp $";
-#endif /* !defined(lint) && !defined(SABER) */
-
-
#define EPOCH 1970
#define HOUR(x) ((time_t)(x) * 60)
#define SECSPERDAY (24L * 60L * 60L)
if (! (tm = gmtime (&ftz.time)))
return -1;
- gmt = *tm;
+ gmt = *tm; /* Make a copy, in case localtime modifies *tm. */
if (! (tm = localtime (&ftz.time)))
return -1;
#define F_OK 0
#endif /* R_OK */
+/* This name is used solely when printing --version information. */
+#define COMMAND_NAME "test"
+
/* The following few defines control the truth and false output of each stage.
TRUE and FALSE are what we use to compute the final output value.
SHELL_BOOLEAN is the form which returns truth or falseness in shell terms.
if (margv[0] && strcmp (margv[0], "[") == 0)
{
- parse_long_options (argc, argv, "test", usage);
+ parse_long_options (argc, argv, COMMAND_NAME, usage);
--margc;
if (pos >= argc)
test_exit (SHELL_BOOLEAN (FALSE));
- parse_long_options (argc, argv, usage);
+ parse_long_options (argc, argv, COMMAND_NAME, usage);
value = posixtest ();
if (pos != argc)