tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_versioncheck.rst (989B)


      1 PR_VersionCheck
      2 ===============
      3 
      4 Compares the version of NSPR assumed by the caller (the imported
      5 version) with the version being offered by the runtime (the exported
      6 version).
      7 
      8 
      9 Syntax
     10 ------
     11 
     12 .. code::
     13 
     14   #include <prinit.h>
     15 
     16   PRBool PR_VersionCheck(const char *importedVersion);
     17 
     18 
     19 Parameter
     20 ~~~~~~~~~
     21 
     22 :ref:`PR_VersionCheck` has one parameter:
     23 
     24 ``importedVersion``
     25   The version of the shared library being imported.
     26 
     27 
     28 Returns
     29 ~~~~~~~
     30 
     31 The function returns one of the following values:
     32 
     33 -  If the version of the shared library is compatible with that expected
     34   by the caller, ``PR_TRUE``.
     35 -  If the versions are not compatible, ``PR_FALSE``.
     36 
     37 
     38 Description
     39 -----------
     40 
     41 :ref:`PR_VersionCheck` tests whether the version of the library being
     42 imported (``importedVersion``) is compatible with the running version of
     43 the shared library. This is a string comparison of sorts, though the
     44 details of the comparison will vary over time.
     45 
     46 
     47 See Also
     48 --------
     49 
     50 -  `PR_VERSION <PR_VERSION>`__