mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
seq(1): Move long_opts up with globals
This commit is contained in:
parent
4899b94bac
commit
ad4e78b50a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333155
@ -57,6 +57,15 @@ __FBSDID("$FreeBSD$");
|
||||
static const char *decimal_point = "."; /* default */
|
||||
static char default_format[] = { "%g" }; /* default */
|
||||
|
||||
static const struct option long_opts[] =
|
||||
{
|
||||
{"format", required_argument, NULL, 'f'},
|
||||
{"separator", required_argument, NULL, 's'},
|
||||
{"terminator", required_argument, NULL, 't'},
|
||||
{"equal-width", no_argument, NULL, 'w'},
|
||||
{NULL, no_argument, NULL, 0}
|
||||
};
|
||||
|
||||
/* Prototypes */
|
||||
|
||||
static double e_atof(const char *);
|
||||
@ -68,15 +77,6 @@ static int valid_format(const char *);
|
||||
static char *generate_format(double, double, double, int, char);
|
||||
static char *unescape(char *);
|
||||
|
||||
static const struct option long_opts[] =
|
||||
{
|
||||
{"format", required_argument, NULL, 'f'},
|
||||
{"separator", required_argument, NULL, 's'},
|
||||
{"terminator", required_argument, NULL, 't'},
|
||||
{"equal-width", no_argument, NULL, 'w'},
|
||||
{NULL, no_argument, NULL, 0}
|
||||
};
|
||||
|
||||
/*
|
||||
* The seq command will print out a numeric sequence from 1, the default,
|
||||
* to a user specified upper limit by 1. The lower bound and increment
|
||||
|
Loading…
Reference in New Issue
Block a user