diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-08-28 18:18:23 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-08-28 18:18:23 -0400 |
commit | 894940b81f0272a2993d3a785fd505b3a4375e6e (patch) | |
tree | 82ab202956fd234f3e4225318e55d2ad9aa06fe8 /src/cairo-misc.c | |
parent | ab5c528de2fc744d77c44ea1a9a3467f1ec5f81d (diff) |
Some nasty tracks to make changing version number not cause a total rebuild
Quite slick! This comes handy when git-bisect'ing. The canonical version
number is in toplevel cairo-version.h now.
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r-- | src/cairo-misc.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c index 960a8b60..9a0ede08 100644 --- a/src/cairo-misc.c +++ b/src/cairo-misc.c @@ -126,50 +126,6 @@ cairo_status_to_string (cairo_status_t status) /** - * cairo_version: - * - * Returns the version of the cairo library encoded in a single - * integer as per %CAIRO_VERSION_ENCODE. The encoding ensures that - * later versions compare greater than earlier versions. - * - * A run-time comparison to check that cairo's version is greater than - * or equal to version X.Y.Z could be performed as follows: - * - * <informalexample><programlisting> - * if (cairo_version() >= CAIRO_VERSION_ENCODE(X,Y,Z)) {...} - * </programlisting></informalexample> - * - * See also cairo_version_string() as well as the compile-time - * equivalents %CAIRO_VERSION and %CAIRO_VERSION_STRING. - * - * Return value: the encoded version. - **/ -int -cairo_version (void) -{ - return CAIRO_VERSION; -} - -/** - * cairo_version_string: - * - * Returns the version of the cairo library as a human-readable string - * of the form "X.Y.Z". - * - * See also cairo_version() as well as the compile-time equivalents - * %CAIRO_VERSION_STRING and %CAIRO_VERSION. - * - * Return value: a string containing the version. - **/ -const char* -cairo_version_string (void) -{ - return CAIRO_VERSION_STRING; -} -slim_hidden_def (cairo_version_string); - - -/** * cairo_glyph_allocate: * @num_glyphs: number of glyphs to allocate * |