mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Simplify last patch slightly.
* src/getargs.c (getargs): Here.
(cherry picked from commit 9ce405ce1d)
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-11-17 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
|
Simplify last patch slightly.
|
||||||
|
* src/getargs.c (getargs): Here.
|
||||||
|
|
||||||
2008-11-17 Joel E. Denny <jdenny@ces.clemson.edu>
|
2008-11-17 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
Fix last warning from --enable-gcc-warnings.
|
Fix last warning from --enable-gcc-warnings.
|
||||||
|
|||||||
@@ -527,14 +527,10 @@ getargs (int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
char* name = optarg;
|
char* name = optarg;
|
||||||
char* value = strchr (optarg, '=');
|
char* value = strchr (optarg, '=');
|
||||||
char const * muscle_value = "";
|
|
||||||
if (value)
|
if (value)
|
||||||
{
|
*value++ = 0;
|
||||||
*value++ = 0;
|
|
||||||
muscle_value = value;
|
|
||||||
}
|
|
||||||
muscle_percent_define_insert (name, command_line_location (),
|
muscle_percent_define_insert (name, command_line_location (),
|
||||||
muscle_value);
|
value ? value : "");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user