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
4e760ce3
Commit
4e760ce3
authored
Sep 12, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed spawn function entry points to __spawn* instead of spawn*.
From-SVN: r10338
parent
2a9f2bb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
gcc/config/winnt/spawnv.c
+7
-9
No files found.
gcc/config/winnt/spawnv.c
View file @
4e760ce3
/* This is a kludge to get around the Microsoft C spawn functions' propensity
to remove the outermost set of double quotes from all arguments. */
#define index(s,c) strchr((s),(c))
extern
char
*
x
malloc
();
extern
char
*
malloc
();
const
char
*
const
*
fix_argv
(
argv
)
...
...
@@ -20,9 +19,8 @@ fix_argv (argv)
{
len
=
strlen
(
argv
[
i
]);
new_argv
=
x
malloc
(
2
*
len
+
3
);
new_argv
=
malloc
(
2
*
len
+
3
);
ap
=
new_argv
;
*
ap
++
=
'"'
;
for
(
p
=
argv
[
i
];
*
p
!=
'\0'
;
++
p
)
{
...
...
@@ -30,15 +28,14 @@ fix_argv (argv)
*
ap
++
=
'\\'
;
*
ap
++
=
*
p
;
}
*
ap
++
=
'"'
;
*
ap
=
'\0'
;
argv
[
i
]
=
new_argv
;
}
return
(
const
char
*
const
*
)
argv
;
return
(
const
char
*
const
*
)
argv
;
}
int
spawnv
(
mode
,
cmdname
,
argv
)
int
__
spawnv
(
mode
,
cmdname
,
argv
)
int
mode
;
const
char
*
cmdname
;
char
**
argv
;
...
...
@@ -46,7 +43,7 @@ int spawnv (mode, cmdname, argv)
_spawnv
(
mode
,
cmdname
,
fix_argv
(
argv
));
}
int
spawnvp
(
mode
,
cmdname
,
argv
)
int
__
spawnvp
(
mode
,
cmdname
,
argv
)
int
mode
;
const
char
*
cmdname
;
char
**
argv
;
...
...
@@ -63,7 +60,7 @@ int spawnve (mode, cmdname, argv, envp)
_spawnve
(
mode
,
cmdname
,
fix_argv
(
argv
),
envp
);
}
int
spawnvpe
(
mode
,
cmdname
,
argv
,
envp
)
int
__
spawnvpe
(
mode
,
cmdname
,
argv
,
envp
)
int
mode
;
const
char
*
cmdname
;
char
**
argv
;
...
...
@@ -71,3 +68,4 @@ int spawnvpe (mode, cmdname, argv, envp)
{
_spawnvpe
(
mode
,
cmdname
,
fix_argv
(
argv
),
envp
);
}
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