Add __IDSTRING, __RCSID, and __COPYRIGHT macros.

This commit is contained in:
christos 1997-06-18 19:09:50 +00:00
parent 1f54dc36dd
commit 9ffb3adca4
1 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cdefs.h,v 1.17 1997/01/22 07:09:07 mikel Exp $ */
/* $NetBSD: cdefs.h,v 1.18 1997/06/18 19:09:50 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@ -129,4 +129,15 @@
#define __pure
#endif
#define __IDSTRING(name,string) \
static const char name[] __attribute__((__unused__)) = string
#ifndef __RCSID
#define __RCSID(s) __IDSTRING(rcsid,s)
#endif
#ifndef __COPYRIGHT
#define __COPYRIGHT(s) __IDSTRING(copyright,s)
#endif
#endif /* !_SYS_CDEFS_H_ */