Be nicer to software that insists on -ansi and use __inline.

This commit is contained in:
joerg 2011-02-25 14:07:12 +00:00
parent 29a080d47e
commit 13b2e74237
8 changed files with 16 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.6 2011/02/24 04:28:44 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.7 2011/02/25 14:07:12 joerg Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -101,7 +101,7 @@ typedef struct {
#define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc)
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
register void *__tmp __asm("$0");

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.13 2011/02/24 04:28:44 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.14 2011/02/25 14:07:12 joerg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -84,7 +84,7 @@ typedef struct {
#define __UCONTEXT_SIZE 784
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
void *__tmp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.5 2011/02/24 04:28:45 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.6 2011/02/25 14:07:12 joerg Exp $ */
#ifndef _HPPA_MCONTEXT_H_
#define _HPPA_MCONTEXT_H_
@ -57,7 +57,7 @@ do { \
(uc)->uc_mcontext.__gregs[_REG_PCOQT] = (pc) + 4; \
} while (/*CONSTCOND*/0)
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
register void *__tmp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.9 2011/02/24 04:28:46 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.10 2011/02/25 14:07:13 joerg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -127,7 +127,7 @@ typedef struct {
#define __UCONTEXT_SIZE 776
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
void *__tmp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.15 2011/02/24 04:28:47 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.16 2011/02/25 14:07:13 joerg Exp $ */
/*-
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@ -187,7 +187,7 @@ typedef struct {
#endif
#ifndef __ASSEMBLER__
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
register void *__tcb;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.11 2011/02/24 04:28:47 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.12 2011/02/25 14:07:13 joerg Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -122,7 +122,7 @@ typedef struct {
#define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc)
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
register void *__tcb;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.8 2011/02/24 04:28:47 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.9 2011/02/25 14:07:13 joerg Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -93,7 +93,7 @@ typedef struct {
#define _UC_SETSTACK 0x10000
#define _UC_CLRSTACK 0x20000
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
register void *__gbr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.11 2011/02/24 04:28:48 joerg Exp $ */
/* $NetBSD: mcontext.h,v 1.12 2011/02/25 14:07:13 joerg Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -160,7 +160,7 @@ do { \
(uc)->uc_mcontext.__gregs[_REG_nPC] = (pc) + 4; \
} while (/*CONSTCOND*/0)
static inline void *
static __inline void *
__lwp_getprivate_fast(void)
{
register void *__tmp;