From a4f441aa328ba40ab543ed1ad6be9bcd2865270e Mon Sep 17 00:00:00 2001 From: Evgeniy Dushistov Date: Sun, 7 Jul 2013 19:45:37 +0000 Subject: [PATCH] rename lib module to more specific name stardict_lib --- src/lib/{lib.cpp => stardict_lib.cpp} | 4 ++-- src/lib/{lib.hpp => stardict_lib.hpp} | 0 src/libwrapper.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/lib/{lib.cpp => stardict_lib.cpp} (99%) rename src/lib/{lib.hpp => stardict_lib.hpp} (100%) diff --git a/src/lib/lib.cpp b/src/lib/stardict_lib.cpp similarity index 99% rename from src/lib/lib.cpp rename to src/lib/stardict_lib.cpp index e7e2b3a..29f0a33 100644 --- a/src/lib/lib.cpp +++ b/src/lib/stardict_lib.cpp @@ -14,7 +14,7 @@ #include "file.hpp" #include "mapfile.hpp" -#include "lib.hpp" +#include "stardict_lib.hpp" // Notice: read src/tools/DICTFILE_FORMAT for the dictionary // file's format information! @@ -45,7 +45,7 @@ namespace { static inline gint stardict_strcmp(const gchar *s1, const gchar *s2) { - gint a=g_ascii_strcasecmp(s1, s2); + const gint a = g_ascii_strcasecmp(s1, s2); if (a == 0) return strcmp(s1, s2); else diff --git a/src/lib/lib.hpp b/src/lib/stardict_lib.hpp similarity index 100% rename from src/lib/lib.hpp rename to src/lib/stardict_lib.hpp diff --git a/src/libwrapper.hpp b/src/libwrapper.hpp index 4eb3f62..b9c2180 100644 --- a/src/libwrapper.hpp +++ b/src/libwrapper.hpp @@ -4,7 +4,7 @@ #include #include "file.hpp" -#include "lib.hpp" +#include "stardict_lib.hpp" #include "readline.hpp" //this structure is wrapper and it need for unification