* at the beginning of any C function.
*/
#define MCOUNT \
-extern void mcount() asm("mcount"); \
+extern void mcount __P((void)) asm("mcount"); \
void \
mcount() \
{ \
- register int selfpc, frompcindex; \
+ register int selfpc, frompcindex; \
/* \
* find the return address for mcount, \
* and the return address for mcount's caller. \
#define _MCOUNT_DECL static __inline void _mcount
#define MCOUNT \
-extern void mcount() __asm("mcount"); \
+extern void mcount __P((void)) __asm("mcount"); \
void \
mcount() \
{ \
-/* $OpenBSD: profile.h,v 1.3 1996/05/29 18:38:33 niklas Exp $ */
+/* $OpenBSD: profile.h,v 1.4 1997/01/27 20:34:15 deraadt Exp $ */
/* $NetBSD: profile.h,v 1.3 1995/03/26 17:08:37 briggs Exp $ */
/*
#define _MCOUNT_DECL static __inline void _mcount
#define MCOUNT \
-extern void mcount() __asm("mcount"); void mcount() { \
+extern void mcount __P((void)) __asm("mcount"); void mcount() { \
int selfpc, frompcindex; \
__asm("movl a6@(4),%0" : "=r" (selfpc)); \
__asm("movl a6@(0)@(4),%0" : "=r" (frompcindex)); \
* SUCH DAMAGE.
*
* from: @(#)profile.h 8.1 (Berkeley) 6/11/93
- * $Id: profile.h,v 1.2 1996/03/24 16:52:34 tholo Exp $
+ * $Id: profile.h,v 1.3 1997/01/27 20:34:17 deraadt Exp $
*/
#define _MCOUNT_DECL static inline void _mcount
#define MCOUNT \
-extern void mcount() __asm("mcount"); \
+extern void mcount __P((void)) __asm("mcount"); \
void \
mcount() \
{ \
#define _MCOUNT_DECL static __inline void _mcount
#define MCOUNT \
-extern void mcount() __asm("mcount"); \
+extern void mcount __P((void)) __asm("mcount"); \
void \
mcount() \
{ \
* both frompcindex and frompc. Any reasonable, modern compiler will
* perform this optimization.
*/
+_MCOUNT_DECL(u_long frompc, u_long selfpc);
_MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
register u_long frompc, selfpc;
{