Use ANSI function decls.

This commit is contained in:
thorpej 2004-08-26 21:09:52 +00:00
parent a41fd2dbc8
commit 54fe33a634
5 changed files with 40 additions and 52 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: crt0.c,v 1.10 2003/07/26 19:24:28 salo Exp $ */
/* $NetBSD: crt0.c,v 1.11 2004/08/26 21:09:52 thorpej Exp $ */
/*
* Copyright (c) 1999 Klaus Klein
@ -37,8 +37,8 @@
#include "common.h"
void __start __P((int, char **, char **, void (*cleanup) __P((void)),
const Obj_Entry *, struct ps_strings *));
void __start(int, char **, char **, void (*cleanup)(void),
const Obj_Entry *, struct ps_strings *);
__asm("\n"
" .text \n"
@ -57,13 +57,10 @@ __asm("\n"
" jsr __start");
void
__start(argc, argv, envp, cleanup, obj, ps_strings)
int argc;
char **argv;
char **envp;
void (*cleanup) __P((void)); /* from shared loader */
const Obj_Entry *obj; /* from shared loader */
struct ps_strings *ps_strings;
__start(int argc, char **argv, char **envp,
void (*cleanup)(void), /* from shared loader */
const Obj_Entry *obj, /* from shared loader */
struct ps_strings *ps_strings)
{
environ = envp;
@ -97,7 +94,7 @@ __start(argc, argv, envp, cleanup, obj, ps_strings)
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
*/
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: crt0.c,v 1.10 2003/07/26 19:24:28 salo Exp $");
__RCSID("$NetBSD: crt0.c,v 1.11 2004/08/26 21:09:52 thorpej Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"

View File

@ -1,4 +1,4 @@
/* $NetBSD: crt0.c,v 1.16 2000/06/14 06:49:00 cgd Exp $ */
/* $NetBSD: crt0.c,v 1.17 2004/08/26 21:13:01 thorpej Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -52,17 +52,16 @@
* as well as the usual registers (pc, sp, and t9 == pc for ABI).
*/
void __start __P((u_long, void (*) __P((void)), const Obj_Entry *,
struct ps_strings *));
void __start(u_long, void (*)(void), const Obj_Entry *,
struct ps_strings *);
asm(".text; .align 4; .globl _start; _start:");
void
__start(sp, cleanup, obj, ps_strings)
u_long sp;
void (*cleanup) __P((void)); /* from shared loader */
const Obj_Entry *obj; /* from shared loader */
struct ps_strings *ps_strings;
__start(u_long sp,
void (*cleanup)(void), /* from shared loader */
const Obj_Entry *obj, /* from shared loader */
struct ps_strings *ps_strings)
{
char **ksp;
char **argv, *namep;
@ -158,7 +157,7 @@ __start(sp, cleanup, obj, ps_strings)
* is the entrypoint. (Only needed for old toolchains).
*/
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: crt0.c,v 1.16 2000/06/14 06:49:00 cgd Exp $");
__RCSID("$NetBSD: crt0.c,v 1.17 2004/08/26 21:13:01 thorpej Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"

View File

@ -1,4 +1,4 @@
/* $NetBSD: crt0.c,v 1.24 2003/07/26 19:24:28 salo Exp $ */
/* $NetBSD: crt0.c,v 1.25 2004/08/26 21:15:05 thorpej Exp $ */
/*
* Copyright (c) 1997 Jason R. Thorpe.
@ -50,16 +50,14 @@ __weak_extern(_SDA2_BASE_);
* First 5 arguments are specified by the PowerPC SVR4 ABI. The
* last argument, ps_strings, is a NetBSD extension.
*/
void _start __P((int, char **, char **, const Obj_Entry *,
void (*) __P((void)), struct ps_strings *));
void _start(int, char **, char **, const Obj_Entry *,
void (*)(void), struct ps_strings *);
void
_start(argc, argv, envp, obj, cleanup, ps_strings)
int argc;
char **argv, **envp;
const Obj_Entry *obj; /* from shared loader */
void (*cleanup) __P((void)); /* from shared loader */
struct ps_strings *ps_strings; /* NetBSD extension */
_start(int argc, char **argv, char **envp,
const Obj_Entry *obj, /* from shared loader */
void (*cleanup)(void), /* from shared loader */
struct ps_strings *ps_strings) /* NetBSD extension */
{
char *namep;
@ -105,7 +103,7 @@ _start(argc, argv, envp, obj, cleanup, ps_strings)
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
*/
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: crt0.c,v 1.24 2003/07/26 19:24:28 salo Exp $");
__RCSID("$NetBSD: crt0.c,v 1.25 2004/08/26 21:15:05 thorpej Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"

View File

@ -1,4 +1,4 @@
/* $NetBSD: crt0.c,v 1.9 2003/07/26 19:24:29 salo Exp $ */
/* $NetBSD: crt0.c,v 1.10 2004/08/26 21:16:41 thorpej Exp $ */
/*
* Copyright (c) 1998 Christos Zoulas
@ -37,8 +37,8 @@
#include "common.h"
void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
const Obj_Entry *, struct ps_strings *));
void ___start(int, char **, char **, void (*cleanup)(void),
const Obj_Entry *, struct ps_strings *);
__asm( " .text \n"
" .align 2 \n"
@ -51,13 +51,10 @@ __asm( " .text \n"
" mov.l r8,@-r15");
void
___start(argc, argv, envp, cleanup, obj, ps_strings)
int argc;
char **argv;
char **envp;
void (*cleanup) __P((void)); /* from shared loader */
const Obj_Entry *obj; /* from shared loader */
struct ps_strings *ps_strings;
___start(int argc, char **argv, char **envp,
void (*cleanup)(void), /* from shared loader */
const Obj_Entry *obj, /* from shared loader */
struct ps_strings *ps_strings)
{
environ = envp;
@ -91,7 +88,7 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
*/
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: crt0.c,v 1.9 2003/07/26 19:24:29 salo Exp $");
__RCSID("$NetBSD: crt0.c,v 1.10 2004/08/26 21:16:41 thorpej Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"

View File

@ -1,4 +1,4 @@
/* $NetBSD: crt0.c,v 1.11 2003/07/26 19:24:30 salo Exp $ */
/* $NetBSD: crt0.c,v 1.12 2004/08/26 21:18:36 thorpej Exp $ */
/*
* Copyright (c) 1998 Christos Zoulas
@ -37,8 +37,8 @@
#include "common.h"
void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
const Obj_Entry *, struct ps_strings *));
void ___start(int, char **, char **, void (*cleanup)(void),
const Obj_Entry *, struct ps_strings *);
__asm(" .text\n\
.align 4\n\
@ -61,13 +61,10 @@ _start:\n\
");
void
___start(argc, argv, envp, cleanup, obj, ps_strings)
int argc;
char **argv;
char **envp;
void (*cleanup) __P((void)); /* from shared loader */
const Obj_Entry *obj; /* from shared loader */
struct ps_strings *ps_strings;
___start(int argc, char **argv, char **envp,
void (*cleanup)(void), /* from shared loader */
const Obj_Entry *obj, /* from shared loader */
struct ps_strings *ps_strings)
{
environ = envp;
@ -101,7 +98,7 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
*/
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: crt0.c,v 1.11 2003/07/26 19:24:30 salo Exp $");
__RCSID("$NetBSD: crt0.c,v 1.12 2004/08/26 21:18:36 thorpej Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"