summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-01-31 00:44:04 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-01-31 00:44:04 +0000
commit4c64086f6cee60fb5275b8fabf2a465212ab8420 (patch)
treed8bcf6e7ba91e91a8c8e7009a828c0c53d91cfc5 /pango/pango-utils.c
parent71f0113fe55447c026fb00115c552a8762bf9e91 (diff)
downloadpango-4c64086f6cee60fb5275b8fabf2a465212ab8420.tar.gz
Improve error handling in high-frequency functions: Only warn once.
2006-01-30 Behdad Esfahbod <behdad@gnome.org> * pango/shape.c (pango_shape): * pango/fonts.c (pango_font_get_glyph_extents): * pango/pangocairo-font.c (_pango_cairo_font_install): Improve error handling in high-frequency functions: Only warn once. * pango-impl-utils.h, pangoutils.h: * pangocairo-private.h, pangocairo-font.c: Add machinery for above: _pango_warning_history and _pango_cairo_warning_history.
Diffstat (limited to 'pango/pango-utils.c')
-rw-r--r--pango/pango-utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index fce42896..5ae1246f 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -25,8 +25,9 @@
#include <string.h>
#include <stdlib.h>
-#include "pango-font.h"
+#include "pango-impl-utils.h"
#include "pango-utils.h"
+#include "pango-font.h"
#include <glib/gstdio.h>
@@ -57,6 +58,8 @@ struct PangoAlias
static GHashTable *pango_aliases_ht = NULL;
+PangoWarningHistory _pango_warning_history = {};
+
/**
* pango_trim_string:
* @str: a string
@@ -1461,7 +1464,6 @@ pango_log2vis_get_embedding_levels (const gchar *str,
PangoDirection *pbase_dir)
{
FriBidiCharType fribidi_base_dir;
- gboolean result;
guint8 *embedding_levels_list;
switch (*pbase_dir)