mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-12-16 00:01:37 -05:00
Formerly main.c.~80~
This commit is contained in:
parent
0986bb2c43
commit
fba3960a6a
13
main.c
13
main.c
@ -1510,7 +1510,7 @@ define_makeflags (all, makefile)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *buf = (char *) alloca (100);
|
char *buf = (char *) alloca (100);
|
||||||
sprintf (buf, "%f", *(double *) cs->value_ptr);
|
sprintf (buf, "%g", *(double *) cs->value_ptr);
|
||||||
ADD_FLAG (buf, strlen (buf));
|
ADD_FLAG (buf, strlen (buf));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1592,9 +1592,14 @@ define_makeflags (all, makefile)
|
|||||||
*p = '\0';
|
*p = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On Sun, the value of MFLAGS starts with a `-' but the
|
(void) define_variable ("MAKEFLAGS", 9,
|
||||||
value of MAKEFLAGS lacks the `-'. Be compatible. */
|
/* On Sun, the value of MFLAGS starts with a `-' but
|
||||||
(void) define_variable ("MAKEFLAGS", 9, &flagstring[1], o_env, 0);
|
the value of MAKEFLAGS lacks the `-'.
|
||||||
|
Be compatible with this unless FLAGSTRING starts
|
||||||
|
with a long option `--foo', since removing the
|
||||||
|
first dash would result in the bogus `-foo'. */
|
||||||
|
flagstring[1] == '-' ? flagstring : &flagstring[1],
|
||||||
|
o_env, 0);
|
||||||
(void) define_variable ("MFLAGS", 6, flagstring, o_env, 0);
|
(void) define_variable ("MFLAGS", 6, flagstring, o_env, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user