nsprpub/pr/src/prvrsion.c

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

michael@0 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "prinit.h"
michael@0 7 #include "prvrsion.h"
michael@0 8
michael@0 9 /************************************************************************/
michael@0 10 /**************************IDENTITY AND VERSIONING***********************/
michael@0 11 /************************************************************************/
michael@0 12 #include "_pr_bld.h"
michael@0 13 #if !defined(_BUILD_TIME)
michael@0 14 #ifdef HAVE_LONG_LONG
michael@0 15 #define _BUILD_TIME 0
michael@0 16 #else
michael@0 17 #define _BUILD_TIME {0, 0}
michael@0 18 #endif
michael@0 19 #endif
michael@0 20 #if !defined(_BUILD_STRING)
michael@0 21 #define _BUILD_STRING ""
michael@0 22 #endif
michael@0 23 #if !defined(_PRODUCTION)
michael@0 24 #define _PRODUCTION ""
michael@0 25 #endif
michael@0 26 #if defined(DEBUG)
michael@0 27 #define _DEBUG_STRING " (debug)"
michael@0 28 #else
michael@0 29 #define _DEBUG_STRING ""
michael@0 30 #endif
michael@0 31
michael@0 32 /*
michael@0 33 * A trick to expand the PR_VMAJOR macro before concatenation.
michael@0 34 */
michael@0 35 #define CONCAT(x, y) x ## y
michael@0 36 #define CONCAT2(x, y) CONCAT(x, y)
michael@0 37 #define VERSION_DESC_NAME CONCAT2(prVersionDescription_libnspr, PR_VMAJOR)
michael@0 38
michael@0 39 PRVersionDescription VERSION_DESC_NAME =
michael@0 40 {
michael@0 41 /* version */ 2, /* this is the only one supported */
michael@0 42 /* buildTime */ _BUILD_TIME, /* usecs since midnight 1/1/1970 GMT */
michael@0 43 /* buildTimeString */ _BUILD_STRING, /* ditto, but human readable */
michael@0 44 /* vMajor */ PR_VMAJOR, /* NSPR's version number */
michael@0 45 /* vMinor */ PR_VMINOR, /* and minor version */
michael@0 46 /* vPatch */ PR_VPATCH, /* and patch */
michael@0 47 /* beta */ PR_BETA, /* beta build boolean */
michael@0 48 #if defined(DEBUG)
michael@0 49 /* debug */ PR_TRUE, /* a debug build */
michael@0 50 #else
michael@0 51 /* debug */ PR_FALSE, /* an optomized build */
michael@0 52 #endif
michael@0 53 /* special */ PR_FALSE, /* they're all special, but ... */
michael@0 54 /* filename */ _PRODUCTION, /* the produced library name */
michael@0 55 /* description */ "Portable runtime", /* what we are */
michael@0 56 /* security */ "N/A", /* not applicable here */
michael@0 57 /* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
michael@0 58 /* comment */ "License information: http://www.mozilla.org/MPL/",
michael@0 59 /* specialString */ ""
michael@0 60 };
michael@0 61
michael@0 62 #ifdef XP_UNIX
michael@0 63
michael@0 64 /*
michael@0 65 * Version information for the 'ident' and 'what commands
michael@0 66 *
michael@0 67 * NOTE: the first component of the concatenated rcsid string
michael@0 68 * must not end in a '$' to prevent rcs keyword substitution.
michael@0 69 */
michael@0 70 static char rcsid[] = "$Header: NSPR " PR_VERSION _DEBUG_STRING
michael@0 71 " " _BUILD_STRING " $";
michael@0 72 static char sccsid[] = "@(#)NSPR " PR_VERSION _DEBUG_STRING
michael@0 73 " " _BUILD_STRING;
michael@0 74
michael@0 75 #endif /* XP_UNIX */
michael@0 76
michael@0 77 PR_IMPLEMENT(const PRVersionDescription*) libVersionPoint(void)
michael@0 78 {
michael@0 79 #ifdef XP_UNIX
michael@0 80 /*
michael@0 81 * Add dummy references to rcsid and sccsid to prevent them
michael@0 82 * from being optimized away as unused variables.
michael@0 83 */
michael@0 84 const char *dummy;
michael@0 85
michael@0 86 dummy = rcsid;
michael@0 87 dummy = sccsid;
michael@0 88 #endif
michael@0 89 return &VERSION_DESC_NAME;
michael@0 90 } /* versionEntryPointType */
michael@0 91
michael@0 92 /* prvrsion.c */
michael@0 93

mercurial