remove obsolete register declarations
This commit is contained in:
parent
4a374620e0
commit
43498a0a88
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: crt0.c,v 1.11 1997/10/20 20:41:09 thorpej Exp $ */
|
/* $NetBSD: crt0.c,v 1.12 1998/02/03 20:01:34 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Christopher G. Demetriou
|
* Copyright (c) 1995 Christopher G. Demetriou
|
||||||
|
@ -147,14 +147,14 @@ __start(sp, cleanup, obj, ps_strings)
|
||||||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||||
*/
|
*/
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: crt0.c,v 1.11 1997/10/20 20:41:09 thorpej Exp $");
|
__RCSID("$NetBSD: crt0.c,v 1.12 1998/02/03 20:01:34 perry Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_strrchr(p, ch)
|
_strrchr(p, ch)
|
||||||
register char *p, ch;
|
char *p, ch;
|
||||||
{
|
{
|
||||||
register char *save;
|
char *save;
|
||||||
|
|
||||||
for (save = NULL;; ++p) {
|
for (save = NULL;; ++p) {
|
||||||
if (*p == ch)
|
if (*p == ch)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: crt0.c,v 1.3 1997/10/05 23:12:21 mark Exp $ */
|
/* $NetBSD: crt0.c,v 1.4 1998/02/03 20:01:35 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1997 Mark Brinicombe
|
* Copyright (C) 1997 Mark Brinicombe
|
||||||
|
@ -59,10 +59,10 @@ start(void)
|
||||||
* ALL REGISTER VARIABLES!!!
|
* ALL REGISTER VARIABLES!!!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
register struct kframe *kfp;
|
struct kframe *kfp;
|
||||||
register char **targv;
|
char **targv;
|
||||||
register char **argv;
|
char **argv;
|
||||||
register int *ptr;
|
int *ptr;
|
||||||
|
|
||||||
/* just above the saved frame pointer */
|
/* just above the saved frame pointer */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: common.c,v 1.6 1997/01/03 22:37:58 scottr Exp $ */
|
/* $NetBSD: common.c,v 1.7 1998/02/03 20:01:32 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1993,1995 Paul Kranenburg
|
* Copyright (c) 1993,1995 Paul Kranenburg
|
||||||
|
@ -219,8 +219,8 @@ dlerror()
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static int
|
static int
|
||||||
_strncmp(s1, s2, n)
|
_strncmp(s1, s2, n)
|
||||||
register char *s1, *s2;
|
char *s1, *s2;
|
||||||
register int n;
|
int n;
|
||||||
{
|
{
|
||||||
|
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
|
@ -236,11 +236,11 @@ _strncmp(s1, s2, n)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_getenv(name)
|
_getenv(name)
|
||||||
register char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
register int len;
|
int len;
|
||||||
register char **P, *C;
|
char **P, *C;
|
||||||
|
|
||||||
for (C = name, len = 0; *C && *C != '='; ++C, ++len);
|
for (C = name, len = 0; *C && *C != '='; ++C, ++len);
|
||||||
for (P = environ; *P; ++P)
|
for (P = environ; *P; ++P)
|
||||||
|
@ -254,9 +254,9 @@ _getenv(name)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_strrchr(p, ch)
|
_strrchr(p, ch)
|
||||||
register char *p, ch;
|
char *p, ch;
|
||||||
{
|
{
|
||||||
register char *save;
|
char *save;
|
||||||
|
|
||||||
for (save = NULL;; ++p) {
|
for (save = NULL;; ++p) {
|
||||||
if (*p == ch)
|
if (*p == ch)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: common.c,v 1.6 1997/01/03 22:37:58 scottr Exp $ */
|
/* $NetBSD: common.c,v 1.7 1998/02/03 20:01:32 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1993,1995 Paul Kranenburg
|
* Copyright (c) 1993,1995 Paul Kranenburg
|
||||||
|
@ -219,8 +219,8 @@ dlerror()
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static int
|
static int
|
||||||
_strncmp(s1, s2, n)
|
_strncmp(s1, s2, n)
|
||||||
register char *s1, *s2;
|
char *s1, *s2;
|
||||||
register int n;
|
int n;
|
||||||
{
|
{
|
||||||
|
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
|
@ -236,11 +236,11 @@ _strncmp(s1, s2, n)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_getenv(name)
|
_getenv(name)
|
||||||
register char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
register int len;
|
int len;
|
||||||
register char **P, *C;
|
char **P, *C;
|
||||||
|
|
||||||
for (C = name, len = 0; *C && *C != '='; ++C, ++len);
|
for (C = name, len = 0; *C && *C != '='; ++C, ++len);
|
||||||
for (P = environ; *P; ++P)
|
for (P = environ; *P; ++P)
|
||||||
|
@ -254,9 +254,9 @@ _getenv(name)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_strrchr(p, ch)
|
_strrchr(p, ch)
|
||||||
register char *p, ch;
|
char *p, ch;
|
||||||
{
|
{
|
||||||
register char *save;
|
char *save;
|
||||||
|
|
||||||
for (save = NULL;; ++p) {
|
for (save = NULL;; ++p) {
|
||||||
if (*p == ch)
|
if (*p == ch)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: crt0.c,v 1.5 1997/10/20 03:24:49 jonathan Exp $ */
|
/* $NetBSD: crt0.c,v 1.6 1998/02/03 20:01:37 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Christopher G. Demetriou
|
* Copyright (c) 1995 Christopher G. Demetriou
|
||||||
|
@ -124,14 +124,14 @@ asm(".text; .align 4; .globl _start; _start:");
|
||||||
|
|
||||||
void
|
void
|
||||||
__start(sp, cleanup, obj, ps_strings)
|
__start(sp, cleanup, obj, ps_strings)
|
||||||
register u_long sp;
|
u_long sp;
|
||||||
register void (*cleanup) __P((void)); /* from shared loader */
|
void (*cleanup) __P((void)); /* from shared loader */
|
||||||
register const Obj_Entry *obj; /* from shared loader */
|
const Obj_Entry *obj; /* from shared loader */
|
||||||
register struct ps_strings *ps_strings;
|
struct ps_strings *ps_strings;
|
||||||
{
|
{
|
||||||
register char **ksp;
|
char **ksp;
|
||||||
register char **argv, *namep;
|
char **argv, *namep;
|
||||||
register int argc;
|
int argc;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Grab the argc, argv, and envp set up by the kernel.
|
* Grab the argc, argv, and envp set up by the kernel.
|
||||||
|
@ -227,15 +227,15 @@ __start(sp, cleanup, obj, ps_strings)
|
||||||
* is the entrypoint. (Only needed for old toolchains).
|
* is the entrypoint. (Only needed for old toolchains).
|
||||||
*/
|
*/
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: crt0.c,v 1.5 1997/10/20 03:24:49 jonathan Exp $");
|
__RCSID("$NetBSD: crt0.c,v 1.6 1998/02/03 20:01:37 perry Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_strrchr(p, ch)
|
_strrchr(p, ch)
|
||||||
register char *p, ch;
|
char *p, ch;
|
||||||
{
|
{
|
||||||
register char *save;
|
char *save;
|
||||||
|
|
||||||
for (save = NULL; ; ++p) {
|
for (save = NULL; ; ++p) {
|
||||||
if (*p == ch)
|
if (*p == ch)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: crt0.c,v 1.10 1997/10/09 12:29:32 lukem Exp $ */
|
/* $NetBSD: crt0.c,v 1.11 1998/02/03 20:01:38 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1993 Paul Kranenburg
|
* Copyright (c) 1993 Paul Kranenburg
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: crt0.c,v 1.10 1997/10/09 12:29:32 lukem Exp $");
|
__RCSID("$NetBSD: crt0.c,v 1.11 1998/02/03 20:01:38 perry Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -58,7 +58,7 @@ extern void start __P((char *)) __asm("start");
|
||||||
* The address of PS_STRINGS is passed in r7 by the kernel.
|
* The address of PS_STRINGS is passed in r7 by the kernel.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
register struct ps_strings *kps_strings __asm("r7");
|
struct ps_strings *kps_strings __asm("r7");
|
||||||
|
|
||||||
void
|
void
|
||||||
start(arg0)
|
start(arg0)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: crt0.c,v 1.6 1997/10/20 20:40:27 thorpej Exp $ */
|
/* $NetBSD: crt0.c,v 1.7 1998/02/03 20:01:41 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Christopher G. Demetriou
|
* Copyright (c) 1995 Christopher G. Demetriou
|
||||||
|
@ -149,14 +149,14 @@ _start(argc, argv, envp, obj, cleanup, ps_strings)
|
||||||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||||
*/
|
*/
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: crt0.c,v 1.6 1997/10/20 20:40:27 thorpej Exp $");
|
__RCSID("$NetBSD: crt0.c,v 1.7 1998/02/03 20:01:41 perry Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_strrchr(p, ch)
|
_strrchr(p, ch)
|
||||||
register char *p, ch;
|
char *p, ch;
|
||||||
{
|
{
|
||||||
register char *save;
|
char *save;
|
||||||
|
|
||||||
for (save = NULL;; ++p) {
|
for (save = NULL;; ++p) {
|
||||||
if (*p == ch)
|
if (*p == ch)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: crt0.c,v 1.5 1997/10/20 16:09:27 christos Exp $ */
|
/* $NetBSD: crt0.c,v 1.6 1998/02/03 20:01:43 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1993 Paul Kranenburg
|
* Copyright (c) 1993 Paul Kranenburg
|
||||||
|
@ -50,8 +50,8 @@ start()
|
||||||
/*
|
/*
|
||||||
* ALL REGISTER VARIABLES!!!
|
* ALL REGISTER VARIABLES!!!
|
||||||
*/
|
*/
|
||||||
register struct kframe *kfp;
|
struct kframe *kfp;
|
||||||
register char **argv, *ap;
|
char **argv, *ap;
|
||||||
|
|
||||||
#ifdef lint
|
#ifdef lint
|
||||||
kfp = 0;
|
kfp = 0;
|
||||||
|
@ -106,7 +106,7 @@ asm ("__callmain:"); /* Defined for the benefit of debuggers */
|
||||||
#include "common.c"
|
#include "common.c"
|
||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: crt0.c,v 1.5 1997/10/20 16:09:27 christos Exp $");
|
__RCSID("$NetBSD: crt0.c,v 1.6 1998/02/03 20:01:43 perry Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#ifdef MCRT0
|
#ifdef MCRT0
|
||||||
|
|
Loading…
Reference in New Issue