summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-04-08 22:14:23 +0000
committerRoland McGrath <roland@redhat.com>1993-04-08 22:14:23 +0000
commit542a0f8112637040b64292734c9ef4701fb881e8 (patch)
tree0a7adca4f556ca3885f305d03f033236a8d80535
parent2ed0333f3c752d81f10c76560750a01e90bfebcd (diff)
downloadgunmake-542a0f8112637040b64292734c9ef4701fb881e8.tar.gz
Formerly main.c.~77~
-rw-r--r--main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/main.c b/main.c
index c311044..a76b479 100644
--- a/main.c
+++ b/main.c
@@ -1300,7 +1300,7 @@ positive integral argument",
{
unsigned int i;
sprintf (p, "%s--%s%s",
- cs->c == -1 ? "" : ", ",
+ cs->c == -1 ? " " : ", ",
cs->long_name, arg);
p += strlen (p);
for (i = 0; i < (sizeof (long_option_aliases) /
@@ -1426,7 +1426,7 @@ define_makeflags (all, makefile)
struct flag
{
struct flag *next;
- struct command_switch *switch;
+ struct command_switch *cs;
char *arg;
unsigned int arglen;
};
@@ -1435,7 +1435,7 @@ define_makeflags (all, makefile)
#define ADD_FLAG(ARG, LEN) \
do { \
struct flag *new = (struct flag *) alloca (sizeof (struct flag)); \
- new->switch = cs; \
+ new->cs = cs; \
new->arg = (ARG); \
new->arglen = (LEN); \
new->next = flags; \
@@ -1543,14 +1543,14 @@ define_makeflags (all, makefile)
do
{
/* Add the flag letter or name to the string. */
- if (flags->switch->c == -1)
+ if (flags->cs->c == -1)
{
*p++ = '-';
- strcpy (p, flags->switch->long_name);
+ strcpy (p, flags->cs->long_name);
p += strlen (p);
}
else
- *p++ = flags->c;
+ *p++ = flags->cs->c;
if (flags->arg != 0)
{
/* A flag that takes an optional argument which in this case
@@ -1560,7 +1560,7 @@ define_makeflags (all, makefile)
if (flags->arglen > 0)
{
/* Add its argument too. */
- *p++ = flags->switch->c == -1 ? '=' : ' ';
+ *p++ = flags->cs->c == -1 ? '=' : ' ';
bcopy (flags->arg, p, flags->arglen);
p += flags->arglen;
}
@@ -1568,7 +1568,7 @@ define_makeflags (all, makefile)
*p++ = ' ';
*p++ = '-';
}
- else if (flags->switch->c == -1)
+ else if (flags->cs->c == -1)
{
/* Long options must each go in their own word,
so we write the following space and dash. */