Home | History | Annotate | Line # | Download | only in include
cdefs.h revision 1.5
      1  1.5    ragge /*	$NetBSD: cdefs.h,v 1.5 1998/08/22 12:12:38 ragge Exp $	*/
      2  1.1      jtc 
      3  1.1      jtc /*
      4  1.1      jtc  * Written by J.T. Conklin <jtc (at) wimsey.com> 01/17/95.
      5  1.1      jtc  * Public domain.
      6  1.1      jtc  */
      7  1.1      jtc 
      8  1.1      jtc #ifndef	_MACHINE_CDEFS_H_
      9  1.1      jtc #define	_MACHINE_CDEFS_H_
     10  1.1      jtc 
     11  1.4  thorpej #define	_C_LABEL(x)	__CONCAT(_,x)
     12  1.3  thorpej 
     13  1.3  thorpej #ifdef __GNUC__
     14  1.4  thorpej #define	__RENAME(x)	__asm__(___STRING(_C_LABEL(x)))
     15  1.1      jtc #endif
     16  1.1      jtc 
     17  1.1      jtc #ifdef __GNUC__
     18  1.1      jtc #ifdef __STDC__
     19  1.2      jtc #define __indr_reference(sym,alias)	\
     20  1.1      jtc 	__asm__(".stabs \"_" #alias "\",11,0,0,0");	\
     21  1.4  thorpej 	__asm__(".stabs \"_" #sym "\",1,0,0,0");
     22  1.1      jtc #define __warn_references(sym,msg)	\
     23  1.1      jtc 	__asm__(".stabs \"" msg "\",30,0,0,0");		\
     24  1.4  thorpej 	__asm__(".stabs \"_" #sym "\",1,0,0,0");
     25  1.1      jtc #else
     26  1.2      jtc #define __indr_reference(sym,alias)	\
     27  1.1      jtc 	__asm__(".stabs \"_/**/alias\",11,0,0,0");	\
     28  1.4  thorpej 	__asm__(".stabs \"_/**/sym\",1,0,0,0");
     29  1.1      jtc #define __warn_references(sym,msg)	\
     30  1.1      jtc 	__asm__(".stabs msg,30,0,0,0");			\
     31  1.4  thorpej 	__asm__(".stabs \"_/**/sym\",1,0,0,0");
     32  1.1      jtc #endif
     33  1.5    ragge #else
     34  1.5    ragge #define	__warn_references(sym,msg)
     35  1.1      jtc #endif
     36  1.1      jtc 
     37  1.1      jtc #endif /* !_MACHINE_CDEFS_H_ */
     38