site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9Ua1pN4ua2EeMfe7yxThbL516hY1frfUduINLMEd1lY=; b=N1PDpGhxwh0EWV0Xm4Mcm7b9A04yUsPKGHBo8im7gF2usGzNVPz29qAGLsG+6m6iIF6SYNfJmVJj7V9tASNgaLFHMBf3eL096gsMG+isKd61IrkoLhUWTtF2nL4VOfonDlp9ixEDqHteXxGzTon7zuEFmpqkZNFIN9AX8yDhDUE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o74h5uq3mFL3yxN+Y2ggmb5vtaNcqQcKcFuoQlMZk4JTxa8qsd5odA9vp7EKXbelO/rVf/rRciz2raOZeQADED9MgKz5uMVQSzGuEPren4WkDdh3ZDKKXy0ILHtY6JmPMe43U73CTaygeD7bpDJL1Qvt7Y33vLQC7SS9uxBmQuM= On Mon, Apr 14, 2008 at 11:59 AM, Chris Inacio <nacho319@gmail.com> wrote:
I work on developing cross platform software, (YAF, libfixbuf,) which runs on multiple varieties of Unix/POSIX. We have started to put:
#ident "$Id$
into our code to be able to use the ident command to find version numbers. This works on all platforms I've tested with all the compilers I've tested, (Linux, Solaris, gcc, Sun Pro, Intel C) except for Mac OS. It doesn't cause an error on Mac OS, it just doesn't work.
<http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/ident.1.html> --- <http://gcc.gnu.org/onlinedocs/cpp/Other-Directives.html> 8 Other Directives The '#ident' directive takes one argument, a string constant. On some systems, that string constant is copied into a special segment of the ob ject file. On other systems, the directive is ignored. The '#sccs' directive is a synonym for '#ident'. These directives are not part of the C standard, but they are not official GNU extensions either. What historical information we have been able to find, suggests they originated with System V. The null directive consists of a '#' followed by a newline, with only whitespace (including comments) in between. A null directive is understood as a preprocessing directive but has no effect on the preprocessor output. The primary significance of the existence of the null directive is that an input line consisting of just a '#' will produce no output, rather than a line of output containing just a '#'. Supposedly some old C programs contain such lines. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com