Revision: 933
Author: mdevaev
Date: Sun Feb 14 01:37:32 2010
Log: Рефакторинг
http://code.google.com/p/lightlang/source/detail?r=933
Modified:
/trunk/lightlang/apps/sl/src/manager.c
=======================================
--- /trunk/lightlang/apps/sl/src/manager.c Wed Jan 20 08:11:40 2010
+++ /trunk/lightlang/apps/sl/src/manager.c Sun Feb 14 01:37:32 2010
@@ -61,8 +61,10 @@
// Opredelyaem imya slovarya ...
- if ( (ptr = strrchr(in_dict_path, '/')) == NULL ) dict_name = (char *)
in_dict_path;
- else dict_name = ptr + 1;
+ if ( (ptr = strrchr(in_dict_path, '/')) == NULL )
+ dict_name = (char *) in_dict_path;
+ else
+ dict_name = ptr + 1;
// dict_name = (char *) in_dict_path;
// Eta strochka potencialno opasnaya, poskolku <in_dict_path> - konstanta,
// a <dict_name> - net. Tut bylo ispolzovano privedenie tipov, chtoby
@@ -311,7 +313,8 @@
if ( (str[0] == '#') || (str[0] == '\n') ) continue;
// Filtruem ...
- if ( (ptr = strstr(str, " ")) != NULL ) (*ptr) = '\0';
+ if ( (ptr = strstr(str, " ")) != NULL )
+ (*ptr) = '\0';
else continue;
// Sravnivaem predydushiy simvol i tekushiy