| /*************************************************************************** | /*************************************************************************** | ||||
| * Copyright (C) 2005 to 2015 by Jonathan Duddington * | * Copyright (C) 2005 to 2015 by Jonathan Duddington * | ||||
| * email: [email protected] * | * email: [email protected] * | ||||
| * Copyright (C) 2015 by Reece H. Dunn * | |||||
| * * | * * | ||||
| * This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | ||||
| * it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | ||||
| new_translator->dict_min_size = dict_min; | new_translator->dict_min_size = dict_min; | ||||
| LoadDictionary(new_translator, new_dictionary, control & 4); | LoadDictionary(new_translator, new_dictionary, control & 4); | ||||
| if(dictionary_name[0]==0) | if(dictionary_name[0]==0) | ||||
| { | |||||
| DeleteTranslator(new_translator); | |||||
| return(NULL); // no dictionary loaded | return(NULL); // no dictionary loaded | ||||
| } | |||||
| new_translator->dict_condition = conditional_rules; | new_translator->dict_condition = conditional_rules; | ||||