aboutsummaryrefslogtreecommitdiff
path: root/libiberty/argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/argv.c')
-rw-r--r--libiberty/argv.c28
1 files changed, 5 insertions, 23 deletions
diff --git a/libiberty/argv.c b/libiberty/argv.c
index 31d8ef5..7650205 100644
--- a/libiberty/argv.c
+++ b/libiberty/argv.c
@@ -29,26 +29,10 @@ Boston, MA 02111-1307, USA. */
/* Routines imported from standard C runtime libraries. */
-#ifdef ANSI_PROTOTYPES
-
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
-#else /* !ANSI_PROTOTYPES */
-
-#if !defined _WIN32 || defined __GNUC__
-extern char *memcpy (); /* Copy memory region */
-extern int strlen (); /* Count length of string */
-extern char *malloc (); /* Standard memory allocater */
-extern char *realloc (); /* Standard memory reallocator */
-extern void free (); /* Free malloc'd memory */
-extern char *strdup (); /* Duplicate a string */
-#endif
-
-#endif /* ANSI_PROTOTYPES */
-
-
#ifndef NULL
#define NULL 0
#endif
@@ -75,8 +59,7 @@ argument vector.
*/
char **
-dupargv (argv)
- char **argv;
+dupargv (char **argv)
{
int argc;
char **copy;
@@ -119,8 +102,7 @@ itself.
*/
-void freeargv (vector)
-char **vector;
+void freeargv (char **vector)
{
register char **scan;
@@ -174,8 +156,7 @@ returned, as appropriate.
*/
-char **buildargv (input)
- const char *input;
+char **buildargv (const char *input)
{
char *arg;
char *copybuf;
@@ -325,7 +306,8 @@ static const char *const tests[] =
NULL
};
-int main ()
+int
+main (void)
{
char **argv;
const char *const *test;