From 6462b4e6f2389cc000801282da1e3cefefd83ca3 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 4 Jan 2001 09:07:26 +0000 Subject: i2001-01-04 Alexander Larsson * modules/arabic/arabic-x.c: * modules/arabic/arabic-xft.c: * modules/basic/basic-ft2.c: * modules/basic/basic-win32.c: * modules/basic/basic-x.c: * modules/hangul/hangul-x.c: * modules/indic/bengali-x.c: * modules/indic/devanagari-x.c: * modules/indic/gujarati-x.c: * modules/indic/gurmukhi-x.c: * modules/indic/myanmar-x.c: * modules/tamil/tamil-x.c: * modules/thai/thai-x.c: Change all modules to use a define to the script engine name. Also Fixes some errors in the names (they were different in the same module). * pango/.cvsignore: add module-defs*.[ch] --- modules/thai/thai-x.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/thai') diff --git a/modules/thai/thai-x.c b/modules/thai/thai-x.c index c32e3386..f3299b69 100644 --- a/modules/thai/thai-x.c +++ b/modules/thai/thai-x.c @@ -86,6 +86,8 @@ #define char_class(wc) TAC_char_class[(unsigned int)(wc)] #define is_char_type(wc, mask) (char_type_table[ucs2tis ((wc))] & (mask)) +#define SCRIPT_ENGINE_NAME "ThaiScriptEngineX" + /* We handle the range U+0e01 to U+0e5b exactly */ static PangoEngineRange thai_ranges[] = { @@ -94,7 +96,7 @@ static PangoEngineRange thai_ranges[] = { static PangoEngineInfo script_engines[] = { { - "ThaiScriptEngineX", + SCRIPT_ENGINE_NAME, PANGO_ENGINE_TYPE_SHAPE, PANGO_RENDER_TYPE_X, thai_ranges, G_N_ELEMENTS(thai_ranges) @@ -854,7 +856,7 @@ thai_engine_x_new () result = g_new (PangoEngineShape, 1); - result->engine.id = "ThaiScriptEngine"; + result->engine.id = SCRIPT_ENGINE_NAME; result->engine.type = PANGO_ENGINE_TYPE_SHAPE; result->engine.length = sizeof (result); result->script_shape = thai_engine_shape; @@ -890,7 +892,7 @@ MODULE_ENTRY(script_engine_list) (PangoEngineInfo **engines, gint *n_engines) PangoEngine * MODULE_ENTRY(script_engine_load) (const char *id) { - if (!strcmp (id, "ThaiScriptEngineX")) + if (!strcmp (id, SCRIPT_ENGINE_NAME)) return thai_engine_x_new (); else return NULL; -- cgit v1.2.1