Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:04:02

0001 /*
0002  * Copyright © 2011  Google, Inc.
0003  *
0004  *  This is part of HarfBuzz, a text shaping library.
0005  *
0006  * Permission is hereby granted, without written agreement and without
0007  * license or royalty fees, to use, copy, modify, and distribute this
0008  * software and its documentation for any purpose, provided that the
0009  * above copyright notice and the following two paragraphs appear in
0010  * all copies of this software.
0011  *
0012  * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
0013  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
0014  * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
0015  * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
0016  * DAMAGE.
0017  *
0018  * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
0019  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
0020  * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
0021  * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
0022  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
0023  *
0024  * Google Author(s): Behdad Esfahbod
0025  */
0026 
0027 #if !defined(HB_H_IN) && !defined(HB_NO_SINGLE_HEADER_ERROR)
0028 #error "Include <hb.h> instead."
0029 #endif
0030 
0031 #ifndef HB_VERSION_H
0032 #define HB_VERSION_H
0033 
0034 #include "hb-common.h"
0035 
0036 HB_BEGIN_DECLS
0037 
0038 
0039 /**
0040  * HB_VERSION_MAJOR:
0041  *
0042  * The major component of the library version available at compile-time.
0043  */
0044 #define HB_VERSION_MAJOR 10
0045 /**
0046  * HB_VERSION_MINOR:
0047  *
0048  * The minor component of the library version available at compile-time.
0049  */
0050 #define HB_VERSION_MINOR 0
0051 /**
0052  * HB_VERSION_MICRO:
0053  *
0054  * The micro component of the library version available at compile-time.
0055  */
0056 #define HB_VERSION_MICRO 1
0057 
0058 /**
0059  * HB_VERSION_STRING:
0060  *
0061  * A string literal containing the library version available at compile-time.
0062  */
0063 #define HB_VERSION_STRING "10.0.1"
0064 
0065 /**
0066  * HB_VERSION_ATLEAST:
0067  * @major: the major component of the version number
0068  * @minor: the minor component of the version number
0069  * @micro: the micro component of the version number
0070  *
0071  * Tests the library version at compile-time against a minimum value,
0072  * as three integer components.
0073  */
0074 #define HB_VERSION_ATLEAST(major,minor,micro) \
0075     ((major)*10000+(minor)*100+(micro) <= \
0076      HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO)
0077 
0078 
0079 HB_EXTERN void
0080 hb_version (unsigned int *major,
0081         unsigned int *minor,
0082         unsigned int *micro);
0083 
0084 HB_EXTERN const char *
0085 hb_version_string (void);
0086 
0087 HB_EXTERN hb_bool_t
0088 hb_version_atleast (unsigned int major,
0089             unsigned int minor,
0090             unsigned int micro);
0091 
0092 
0093 HB_END_DECLS
0094 
0095 #endif /* HB_VERSION_H */