Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Schneider <oliver@assarbad.net>2013-12-10 08:29:38 +0400
committerOliver Schneider <oliver@assarbad.net>2013-12-10 08:29:38 +0400
commitb4976a75732c7f5364e70f7f2eb8e5720be2c29f (patch)
treed9d93cd33d16011126c11910821c6239f76f29b9
parent27835e2fe033b88d9fb1314e89c685149da117f6 (diff)
- Intermediate commit (adding language resource projects)
- Fixed warnings in embedded resource code
-rw-r--r--.hgignore1
-rw-r--r--lua/src/modules/w32resembed.c5
-rw-r--r--premake4.lua135
3 files changed, 138 insertions, 3 deletions
diff --git a/.hgignore b/.hgignore
index 8906b34..4c97013 100644
--- a/.hgignore
+++ b/.hgignore
@@ -19,3 +19,4 @@ src/*
Visual Lint/*
*.aqt
windirstat/windirstat_prof/*
+*.sdf
diff --git a/lua/src/modules/w32resembed.c b/lua/src/modules/w32resembed.c
index 57f39af..a328e75 100644
--- a/lua/src/modules/w32resembed.c
+++ b/lua/src/modules/w32resembed.c
@@ -19,6 +19,7 @@
static int luaC_registerPreloader_(lua_State* L, const int winresidx, LPCTSTR lpszName)
{
const int oldTop = lua_gettop(L);
+ UNREFERENCED_PARAMETER(winresidx);
// Expects the winres table at -1
lua_getfield(L, LUA_GLOBALSINDEX, "package");
if(!lua_istable(L, -1))
@@ -104,10 +105,10 @@ static BOOL getResourcePointer(HINSTANCE Instance, LPCTSTR ResName, LPCTSTR ResT
if(ppRes && pdwResSize)
{
HRSRC hRsrc;
- if(hRsrc = FindResource((HMODULE)Instance, ResName, ResType))
+ if(NULL != (hRsrc = FindResource((HMODULE)Instance, ResName, ResType)))
{
HGLOBAL hGlob;
- if(hGlob = LoadResource(Instance, hRsrc))
+ if(NULL != (hGlob = LoadResource(Instance, hRsrc)))
{
*ppRes = LockResource(hGlob);
*pdwResSize = SizeofResource(Instance, hRsrc);
diff --git a/premake4.lua b/premake4.lua
index 64222a6..0c177f4 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -50,7 +50,7 @@ do
end
return r
end
- -- Silently don't generate the .user files ...
+ -- Silently suppress generation of the .user files ...
local orig_generate = premake.generate
premake.generate = function(obj, filename, callback)
if filename:find('.vcproj.user') or filename:find('.vcxproj.user') then
@@ -155,3 +155,136 @@ solution ("windirstat")
configuration {"vs2005", "windirstat/WDS_Lua_C.c"}
defines ("_CRT_SECURE_NO_WARNINGS") -- _CRT_SECURE_NO_DEPRECATE, _SCL_SECURE_NO_WARNINGS, _AFX_SECURE_NO_WARNINGS and _ATL_SECURE_NO_WARNINGS???
+
+ -- Czech
+ project ("wdsr0405")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("C3F39C58-7FC4-4243-82B2-A3572235AE02")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr0405")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- German
+ project ("wdsr0407")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("C8D9E4F9-7051-4B41-A5AB-F68F3FCE42E8")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr0407")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- Spanish
+ project ("wdsr040a")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("23B76347-204C-4DE6-A311-F562CEF5D89C")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr040a")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- Finnish
+ project ("wdsr040b")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("C7A5D1EC-35D3-4754-A815-2C527CACD584")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr040b")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- French
+ project ("wdsr040c")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("DA4DDD24-67BC-4A9D-87D3-18C73E5CAF31")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr040c")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- Hungarian
+ project ("wdsr040e")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("2A75AA20-BFFE-4D1C-8AEC-274823223919")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr040e")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+--[[ ICELANDIC doesn't exist, yet
+ project ("wdsr040f")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("8CBD9125-53CC-4c69-B5F3-ECBAB708F0DF")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr040f")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""} ]]
+ -- Italian
+ project ("wdsr0410")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("FD4194A7-EA1E-4466-A80B-AB4D8D17F33C")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr0410")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- Dutch
+ project ("wdsr0413")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("70A55EB7-E109-41DE-81B4-0DF2B72DCDE9")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr0413")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- Polish
+ project ("wdsr0415")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("70C09DAA-6F6D-4AAC-955F-ACD602A667CE")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr0415")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- Russian
+ project ("wdsr0419")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("7F06AAC4-9FBE-412F-B1D7-CB37AB8F311D")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr0419")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}
+ -- Estonian
+ project ("wdsr0425")
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid ("2FADC62C-C670-4963-8B69-70ECA7987B93")
+ language ("C++")
+ kind ("WindowedApp")
+ location ("wdsr0425")
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {""}