mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
genmarshal: Use fewer magic numbers
https://bugzilla.gnome.org/show_bug.cgi?id=781755
This commit is contained in:
parent
a8b5192d16
commit
616cff7c87
@ -1020,7 +1020,7 @@ parse_args (gint *argc_p,
|
||||
else if ((strcmp ("--prefix", argv[i]) == 0) ||
|
||||
(strncmp ("--prefix=", argv[i], 9) == 0))
|
||||
{
|
||||
gchar *equal = argv[i] + 8;
|
||||
gchar *equal = argv[i] + strlen ("--prefix");
|
||||
|
||||
if (*equal == '=')
|
||||
marshaller_prefix = equal + 1;
|
||||
@ -1035,7 +1035,7 @@ parse_args (gint *argc_p,
|
||||
else if ((strcmp ("--output", argv[i]) == 0) ||
|
||||
(strncmp ("--output=", argv[i], 9) == 0))
|
||||
{
|
||||
gchar *equal = argv[i] + 8;
|
||||
gchar *equal = argv[i] + strlen ("--output");
|
||||
|
||||
if (*equal == '=')
|
||||
output_fn = equal + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user