"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/modules.c" between
irssi-1.2.2.tar.gz and irssi-1.2.3.tar.gz

About: irssi is a terminal based IRC client that also supports SILC and ICB protocols via plugins.

modules.c  (irssi-1.2.2):modules.c  (irssi-1.2.3)
skipping to change at line 217 skipping to change at line 217
const char *defined_module_name) const char *defined_module_name)
{ {
MODULE_REC *module; MODULE_REC *module;
MODULE_FILE_REC *file; MODULE_FILE_REC *file;
module = module_find(name); module = module_find(name);
if (module == NULL) { if (module == NULL) {
module = g_new0(MODULE_REC, 1); module = g_new0(MODULE_REC, 1);
module->name = g_strdup(name); module->name = g_strdup(name);
modules = g_slist_append(modules, module); modules = g_slist_prepend(modules, module);
} }
file = module_file_find(module, submodule); file = module_file_find(module, submodule);
if (file != NULL) if (file != NULL)
return file; return file;
file = g_new0(MODULE_FILE_REC, 1); file = g_new0(MODULE_FILE_REC, 1);
file->root = module; file->root = module;
file->name = g_strdup(submodule); file->name = g_strdup(submodule);
file->defined_module_name = g_strdup(defined_module_name); file->defined_module_name = g_strdup(defined_module_name);
module->files = g_slist_append(module->files, file); module->files = g_slist_prepend(module->files, file);
return file; return file;
} }
MODULE_REC *module_find(const char *name) MODULE_REC *module_find(const char *name)
{ {
GSList *tmp; GSList *tmp;
for (tmp = modules; tmp != NULL; tmp = tmp->next) { for (tmp = modules; tmp != NULL; tmp = tmp->next) {
MODULE_REC *rec = tmp->data; MODULE_REC *rec = tmp->data;
if (g_ascii_strcasecmp(rec->name, name) == 0) if (g_ascii_strcasecmp(rec->name, name) == 0)
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)