开发者

Question regarding pragma Ident

开发者 https://www.devze.com 2023-01-14 02:22 出处:网络
Can you please e开发者_StackOverflow中文版xplain what is the meaning of each key in the following declaration

Can you please e开发者_StackOverflow中文版xplain what is the meaning of each key in the following declaration

#pragma ident "%Z% %M% v%I% (c) GEMS %G%"

I am using Clearcase Revision Control System


Pragmas are compiler dependent stuff. This one looks specific to Sun Studio's compiler. From the documentation:

Use ident to place string in the .comment section of the executable.

This would mean the executable will contain a string after suitable transformation of the variables (i.e. %Z% etc).


These are key words used by the UNIX SCCS source control system. On a UNIX system run man sccs-get and it will tell you what all the keywords mean. When you check a file in with sccs delget it will replace the keywords with strings. %Z% get replaced with @{#} which the what program uses to display information from an executable. See man what.

0

精彩评论

暂无评论...
验证码 换一张
取 消