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
586c5437
Commit
586c5437
authored
Jun 26, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(string.h): Fix return value for mem{ccpy,chr,cpy,set} and
str{len,spn,cspn} on sysV68. From-SVN: r10054
parent
9d03c0de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/fixincludes
+9
-1
No files found.
gcc/fixincludes
View file @
586c5437
...
...
@@ -1834,6 +1834,8 @@ if [ -r ${LIB}/$file ]; then
fi
fi
# Fix return value of mem{ccpy,chr,cpy,set} and str{len,spn,cspn}
# in string.h on sysV68
# Correct the return type for strlen in string.h on Lynx.
# Correct the argument type for ffs in string.h on Alpha OSF/1 V2.0.
# Add missing const for strdup on OSF/1 V3.0.
...
...
@@ -1845,10 +1847,16 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
fi
if
[
-r
${
LIB
}
/
$file
]
;
then
echo
Fixing
$file
echo
Fixing
$file
, mem
{
ccpy,chr,cpy,set
}
and str
{
len,spn,cspn
}
return
value
sed
-e
's/extern[ ]*int[ ]*strlen();/extern unsigned int strlen();/'
\
-e
's/extern[ ]*int[ ]*ffs[ ]*(long);/extern int ffs(int);/'
\
-e
's/strdup(char \*s1);/strdup(const char *s1);/'
\
-e
'/^extern char$/N'
\
-e
's/^extern char\(\n \*memccpy(),\)$/extern void\1/'
\
-e
'/^ strncmp(),$/N'
\
-e
's/^\( strncmp()\),\n\( strlen(),\)$/\1;\
extern unsigned int\
\2/'
\
${
LIB
}
/
$file
>
${
LIB
}
/
${
file
}
.sed
rm
-f
${
LIB
}
/
$file
;
mv
${
LIB
}
/
${
file
}
.sed
${
LIB
}
/
$file
if
cmp
$file
${
LIB
}
/
$file
>
/dev/null 2>&1
;
then
...
...
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