diff options
author | DJ Delorie <dj@redhat.com> | 2005-03-27 05:28:42 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-03-27 05:28:42 +0000 |
commit | 9334f9c6cd576128ec4fc891b5fcf267a7fca7fb (patch) | |
tree | fda195cba89e4178623ea39866f41e6e28eb67c1 /libiberty/argv.c | |
parent | 8da8e0b3f397df66d6e1c03470f4e6c31a63d292 (diff) | |
download | gdb-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.zip gdb-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.tar.gz gdb-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/argv.c')
-rw-r--r-- | libiberty/argv.c | 28 |
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; |