summaryrefslogtreecommitdiff
path: root/src/cairo-font-options.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-04-03 19:26:18 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-04-03 19:26:18 -0400
commit88dc0c5f19475888c19db437661b290f3a8902f8 (patch)
tree4598404f08272bbf807b1b5cabcb9a92c9a50e48 /src/cairo-font-options.c
parent114be945db6c02aeb60cf1123b43680bd12cccdb (diff)
Make sure all nil objects start with _cairo_
Previously, the convention was that static ones started with cairo_, but renamed to start with _cairo_ when they were needed from other files and became cairo_private instead of static... This is error prune indeed, and two symbols were already violating. Now all nil objects start with _cairo_.
Diffstat (limited to 'src/cairo-font-options.c')
-rw-r--r--src/cairo-font-options.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/cairo-font-options.c b/src/cairo-font-options.c
index 316299b0..ccdffa99 100644
--- a/src/cairo-font-options.c
+++ b/src/cairo-font-options.c
@@ -36,7 +36,7 @@
#include "cairoint.h"
-static const cairo_font_options_t cairo_font_options_nil = {
+static const cairo_font_options_t _cairo_font_options_nil = {
CAIRO_ANTIALIAS_DEFAULT,
CAIRO_SUBPIXEL_ORDER_DEFAULT,
CAIRO_HINT_STYLE_DEFAULT,
@@ -52,7 +52,7 @@ static const cairo_font_options_t cairo_font_options_nil = {
void
_cairo_font_options_init_default (cairo_font_options_t *options)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return;
options->antialias = CAIRO_ANTIALIAS_DEFAULT;
@@ -89,7 +89,7 @@ cairo_font_options_create (void)
cairo_font_options_t *options = malloc (sizeof (cairo_font_options_t));
if (!options)
- return (cairo_font_options_t *)&cairo_font_options_nil;
+ return (cairo_font_options_t *)&_cairo_font_options_nil;
_cairo_font_options_init_default (options);
@@ -116,7 +116,7 @@ cairo_font_options_copy (const cairo_font_options_t *original)
cairo_font_options_t *options = malloc (sizeof (cairo_font_options_t));
if (!options)
- return (cairo_font_options_t *)&cairo_font_options_nil;
+ return (cairo_font_options_t *)&_cairo_font_options_nil;
_cairo_font_options_init_copy (options, original);
@@ -133,7 +133,7 @@ cairo_font_options_copy (const cairo_font_options_t *original)
void
cairo_font_options_destroy (cairo_font_options_t *options)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return;
free (options);
@@ -152,7 +152,7 @@ slim_hidden_def (cairo_font_options_destroy);
cairo_status_t
cairo_font_options_status (cairo_font_options_t *options)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return CAIRO_STATUS_NO_MEMORY;
else
return CAIRO_STATUS_SUCCESS;
@@ -172,7 +172,7 @@ void
cairo_font_options_merge (cairo_font_options_t *options,
const cairo_font_options_t *other)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return;
if (other->antialias != CAIRO_ANTIALIAS_DEFAULT)
@@ -240,7 +240,7 @@ void
cairo_font_options_set_antialias (cairo_font_options_t *options,
cairo_antialias_t antialias)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return;
options->antialias = antialias;
@@ -276,7 +276,7 @@ void
cairo_font_options_set_subpixel_order (cairo_font_options_t *options,
cairo_subpixel_order_t subpixel_order)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return;
options->subpixel_order = subpixel_order;
@@ -312,7 +312,7 @@ void
cairo_font_options_set_hint_style (cairo_font_options_t *options,
cairo_hint_style_t hint_style)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return;
options->hint_style = hint_style;
@@ -348,7 +348,7 @@ void
cairo_font_options_set_hint_metrics (cairo_font_options_t *options,
cairo_hint_metrics_t hint_metrics)
{
- if (options == (cairo_font_options_t *)&cairo_font_options_nil)
+ if (options == (cairo_font_options_t *)&_cairo_font_options_nil)
return;
options->hint_metrics = hint_metrics;