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
f5188608
Commit
f5188608
authored
May 23, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1064
parent
7b7bceeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
14 deletions
+24
-14
gcc/protoize.c
+24
-14
No files found.
gcc/protoize.c
View file @
f5188608
...
@@ -39,14 +39,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -39,14 +39,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
#include "config.h"
#ifdef POSIX
/* We should be able to define _POSIX_SOURCE unconditionally,
but some systems respond in buggy ways to it,
including Sunos 4.1.1. Which we don't classify as POSIX. */
/* In case this is a POSIX system with an ANSI C compiler,
ask for definition of all POSIX facilities. */
#define _POSIX_SOURCE
#endif
#if 0
#if 0
/* Users are not supposed to use _POSIX_SOURCE to say the
/* Users are not supposed to use _POSIX_SOURCE to say the
system is a POSIX system. That is not what _POSIX_SOURCE means! -- rms */
system is a POSIX system. That is not what _POSIX_SOURCE means! -- rms */
...
@@ -56,12 +48,25 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -56,12 +48,25 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif
#endif
#endif /* 0 */
#endif /* 0 */
#ifdef POSIX
/* We should be able to define _POSIX_SOURCE unconditionally,
but some systems respond in buggy ways to it,
including Sunos 4.1.1. Which we don't classify as POSIX. */
/* In case this is a POSIX system with an ANSI C compiler,
ask for definition of all POSIX facilities. */
#undef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#include <stdio.h>
#include <stdio.h>
#include <ctype.h>
#include <ctype.h>
#include <errno.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#ifdef POSIX
#include <dirent.h>
#else
#include <sys/dir.h>
#include <sys/dir.h>
#endif
#if ! defined (USG) || defined (SVR4)
#if ! defined (USG) || defined (SVR4)
#include <sys/wait.h>
#include <sys/wait.h>
#endif
#endif
...
@@ -93,10 +98,11 @@ extern char *version_string;
...
@@ -93,10 +98,11 @@ extern char *version_string;
#define my_open(file, mode, flag) open((char *)file, mode, flag)
#define my_open(file, mode, flag) open((char *)file, mode, flag)
#define my_chmod(file, mode) chmod((char *)file, mode)
#define my_chmod(file, mode) chmod((char *)file, mode)
char
*
getpwd
();
extern
char
*
getpwd
();
/* Aliases for pointers to void.
/* Aliases for pointers to void.
These were made to facilitate compilation with other compilers. */
These were made to facilitate compilation with old brain-dead DEC C
compilers which didn't properly grok `void*' types. */
#ifdef __STDC__
#ifdef __STDC__
typedef
void
*
pointer_type
;
typedef
void
*
pointer_type
;
...
@@ -135,6 +141,7 @@ extern int creat ();
...
@@ -135,6 +141,7 @@ extern int creat ();
#if 0 /* These conflict with stdio.h on some systems. */
#if 0 /* These conflict with stdio.h on some systems. */
extern int fprintf (FILE *, const char *, ...);
extern int fprintf (FILE *, const char *, ...);
extern int printf (const char *, ...);
extern int printf (const char *, ...);
extern int open (const char *, int, ...);
#endif /* 0 */
#endif /* 0 */
extern
void
exit
();
extern
void
exit
();
extern
pointer_type
malloc
();
extern
pointer_type
malloc
();
...
@@ -148,6 +155,10 @@ extern int atoi ();
...
@@ -148,6 +155,10 @@ extern int atoi ();
extern
int
puts
();
extern
int
puts
();
extern
int
fputs
();
extern
int
fputs
();
extern
int
fputc
();
extern
int
fputc
();
extern
int
link
();
extern
int
unlink
();
extern
int
access
();
extern
int
execvp
();
#ifndef setjmp
#ifndef setjmp
extern
int
setjmp
();
extern
int
setjmp
();
#endif
#endif
...
@@ -159,9 +170,8 @@ extern char * strcat ();
...
@@ -159,9 +170,8 @@ extern char * strcat ();
extern
int
strcmp
();
extern
int
strcmp
();
extern
char
*
strcpy
();
extern
char
*
strcpy
();
#if 0 /* size_t from sys/types.h may fail to match GCC.
#if 0 /* size_t from sys/types.h may fail to match GCC.
If so, we would get a warning from this.
If so, we would get a warning from this. */
So do without the prototype. */
extern size_t strlen ()
extern size_t strlen (const char *);
#endif
#endif
extern
int
strncmp
();
extern
int
strncmp
();
extern
char
*
strncpy
();
extern
char
*
strncpy
();
...
@@ -4430,7 +4440,7 @@ main (argc, argv)
...
@@ -4430,7 +4440,7 @@ main (argc, argv)
{
{
int
longind
;
int
longind
;
int
c
;
int
c
;
char
*
params
=
""
;
c
onst
c
har
*
params
=
""
;
pname
=
strrchr
(
argv
[
0
],
'/'
);
pname
=
strrchr
(
argv
[
0
],
'/'
);
pname
=
pname
?
pname
+
1
:
argv
[
0
];
pname
=
pname
?
pname
+
1
:
argv
[
0
];
...
...
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