mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Add __SCCSID. And add the NO__SCCSID, NO__RCSID, NO__RCSID_SOURCE, and
NO__COPYRIGHT knobs to more easily deal with imported vendor sources.
This commit is contained in:
parent
2ce84795da
commit
1730dab2e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93993
1 changed files with 10 additions and 6 deletions
|
@ -230,10 +230,6 @@
|
|||
#define __IDSTRING(name,string) static const char name[] __unused = string
|
||||
#endif
|
||||
|
||||
#ifndef __RCSID
|
||||
#define __RCSID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Embed the rcs id of a source file in the resulting library. Note that in
|
||||
* more recent ELF binutils, we use .ident allowing the ID to be stripped.
|
||||
|
@ -248,11 +244,19 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef __RCSID_SOURCE
|
||||
#if !defined(__SCCSID) && !defined(NO__SCCSID)
|
||||
#define __SCCSID(s) __IDSTRING(__CONCAT(__sccsid_,__LINE__),s)
|
||||
#endif
|
||||
|
||||
#if !defined(__RCSID) && !defined(NO__RCSID)
|
||||
#define __RCSID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
|
||||
#endif
|
||||
|
||||
#if !defined(__RCSID_SOURCE) && !defined(NO__RCSID_SOURCE)
|
||||
#define __RCSID_SOURCE(s) __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s)
|
||||
#endif
|
||||
|
||||
#ifndef __COPYRIGHT
|
||||
#if !defined(__COPYRIGHT) && !defined(NO__COPYRIGHT)
|
||||
#define __COPYRIGHT(s) __IDSTRING(__CONCAT(__copyright_,__LINE__),s)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue