summaryrefslogtreecommitdiff
path: root/pango/modules.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-12-06 23:17:41 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-12-06 23:17:41 +0000
commit41bd5bb015197c84cbd7065fd6ef95675966f259 (patch)
tree020818c458470ab3b510cfbf510ea37d9ee58627 /pango/modules.c
parent03e6a3893c2f590f28b1816ae80bea49cf03b451 (diff)
downloadpango-41bd5bb015197c84cbd7065fd6ef95675966f259.tar.gz
Convert [sf]printf to g_[sf]printf, or, where appropriate g_printerr().
Fri Dec 6 18:07:48 2002 Owen Taylor <otaylor@redhat.com> * modules/indic/devanagari-x.c, pango/modules.c pango/pango-utils.c pango/pangoft2.c pango/querymodules.c: Convert [sf]printf to g_[sf]printf, or, where appropriate g_printerr(). (Based on patch from Matthias Clasen, #99321) * configure.in: Require glib-2.1.3.
Diffstat (limited to 'pango/modules.c')
-rw-r--r--pango/modules.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/pango/modules.c b/pango/modules.c
index 32ae2533..fd36243a 100644
--- a/pango/modules.c
+++ b/pango/modules.c
@@ -21,7 +21,6 @@
#include "config.h"
-#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
@@ -157,16 +156,16 @@ pango_engine_pair_get_engine (PangoEnginePair *pair)
module = g_module_open (module_name, 0);
if (!module)
{
- fprintf(stderr, "Cannot load module %s: %s\n",
- module_name, g_module_error());
+ g_printerr ("Cannot load module %s: %s\n",
+ module_name, g_module_error());
return NULL;
}
g_module_symbol (module, "script_engine_load", (gpointer *) &load);
if (!load)
{
- fprintf(stderr, "cannot retrieve script_engine_load from %s: %s\n",
- module_name, g_module_error());
+ g_printerr ("cannot retrieve script_engine_load from %s: %s\n",
+ module_name, g_module_error());
g_module_close (module);
return NULL;
}
@@ -279,14 +278,14 @@ process_module_file (FILE *module_file)
range = g_new (PangoEngineRange, 1);
if (sscanf(tmp_buf->str, "%d-%d:", &start, &end) != 2)
{
- fprintf(stderr, "Error reading modules file");
+ g_printerr ("Error reading modules file");
have_error = TRUE;
goto error;
}
q = strchr (tmp_buf->str, ':');
if (!q)
{
- fprintf(stderr, "Error reading modules file");
+ g_printerr ( "Error reading modules file");
have_error = TRUE;
goto error;
}
@@ -306,7 +305,7 @@ process_module_file (FILE *module_file)
if (i<3)
{
- fprintf(stderr, "Error reading modules file");
+ g_printerr ("Error reading modules file");
have_error = TRUE;
goto error;
}