Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8fd182ed
...
8fd182ed2bc66cb1658bfcb82d272c2881673959
authored
2003-01-15 17:30:46 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_argp_parse): Fixed parsing order: global profile arguments first,
then the command line arguments.
1 parent
44b67ddb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
mh/mh_argp.c
mh/mh_argp.c
View file @
8fd182e
...
...
@@ -106,7 +106,7 @@ mh_argp_parse (int argc, char **argv,
char
**
_argv
;
int
xargc
;
char
**
xargv
;
int
i
;
int
i
,
j
;
argcv_get
(
p
,
""
,
NULL
,
&
xargc
,
&
xargv
);
...
...
@@ -117,14 +117,20 @@ mh_argp_parse (int argc, char **argv,
mh_error
(
_
(
"not enough memory"
));
abort
();
}
for
(
i
=
0
;
i
<
argc
;
i
++
)
_argv
[
i
]
=
argv
[
i
];
for
(;
i
<
_argc
;
i
++
)
_argv
[
i
]
=
xargv
[
i
-
argc
];
i
=
0
;
_argv
[
i
++
]
=
argv
[
0
];
for
(
j
=
0
;
j
<
xargc
;
i
++
,
j
++
)
_argv
[
i
]
=
xargv
[
j
];
for
(
j
=
1
;
i
<
_argc
;
i
++
,
j
++
)
_argv
[
i
]
=
argv
[
j
];
_argv
[
i
]
=
NULL
;
argp_parse
(
&
argp
,
_argc
,
_argv
,
0
,
&
index
,
&
data
);
free
(
_argv
);
extra
=
index
<
_argc
;
index
-=
xargc
;
if
(
index
<
0
)
index
=
argc
;
}
else
{
...
...
Please
register
or
sign in
to post a comment