From 8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 14 Apr 2007 22:20:10 +0000 Subject: DB4 & Postponed processing - New DB4 database type - Postponed processing in external module + User may allow external module to finish required processing before termination. This could be useful for translation services while using console applications (if network connection is slow, the external will never finish translation before program termination) - SKIP_PARRENT options are renamed to SKIP_PARENT --- src/rccxml.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/rccxml.c') diff --git a/src/rccxml.c b/src/rccxml.c index db13750..e5283af 100644 --- a/src/rccxml.c +++ b/src/rccxml.c @@ -31,6 +31,7 @@ #include "internal.h" #include "rccconfig.h" #include "plugin.h" +#include "rcchome.h" #define MAX_HOME_CHARS 96 #define XPATH_LANGUAGE "//Language[@name]" @@ -58,7 +59,7 @@ int rccXmlInit(int LoadConfiguration) { xmlAttrPtr attr; const char *lang, *engine_name; unsigned int pos, lpos, epos, cpos; - const char *alias, *parrent; + const char *alias, *parent; unsigned int j, apos, rpos; rcc_engine *engine; @@ -115,9 +116,9 @@ int rccXmlInit(int LoadConfiguration) { if (pos == (rcc_language_id)-1) { for (rpos=0;rcc_default_relations[rpos].lang;rpos++); if (rpos < RCC_MAX_RELATIONS) { - rcc_default_relations[rpos].parrent = rcc_english_language_sn; + rcc_default_relations[rpos].parent = rcc_english_language_sn; rcc_default_relations[rpos++].lang = lang; - rcc_default_relations[rpos].parrent = NULL; + rcc_default_relations[rpos].parent = NULL; rcc_default_relations[rpos].lang = NULL; } @@ -172,11 +173,11 @@ int rccXmlInit(int LoadConfiguration) { for (enode=node->children;enode;enode=enode->next) { if (enode->type != XML_ELEMENT_NODE) continue; if ((!xmlStrcmp(enode->name, "Parrent"))&&(rpos