Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b9f8d427
Commit
b9f8d427
authored
Feb 24, 2002
by
Anthony Green
Committed by
Anthony Green
Feb 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jar -C fix
From-SVN: r50009
parent
3387d36e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
fastjar/ChangeLog
+4
-0
fastjar/jartool.c
+6
-4
No files found.
fastjar/ChangeLog
View file @
b9f8d427
2002-02-23 Anthony Green <green@redhat.com>
* jartool.c (main): Fix handling of -C.
2002-01-30 Tom Tromey <tromey@redhat.com>
* jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
...
...
fastjar/jartool.c
View file @
b9f8d427
...
...
@@ -303,8 +303,8 @@ int number_of_entries; /* number of entries in the linked list */
#define OPT_HELP LONG_OPT (0)
/* This holds all options
except `-C', which is handled specially
. */
#define OPTION_STRING "-ctxuvVf:m:0ME@"
/* This holds all options. */
#define OPTION_STRING "-ctxuvVf:m:
C:
0ME@"
static
const
struct
option
options
[]
=
{
...
...
@@ -348,9 +348,11 @@ int main(int argc, char **argv){
while
((
opt
=
getopt_long
(
argc
,
argv
,
OPTION_STRING
,
options
,
NULL
))
!=
-
1
)
{
switch
(
opt
){
case
'C'
:
new_argv
[
new_argc
++
]
=
(
char
*
)
"-C"
;
/* ... fall through ... */
case
1
:
/* File name or unparsed option, due to RETURN_IN_ORDER. In
particular `-C' is handled here and not elsewhere. */
/* File name or unparsed option, due to RETURN_IN_ORDER. */
new_argv
[
new_argc
++
]
=
optarg
;
break
;
case
'c'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment