Changeset 79f191a in nscp
- Timestamp:
- 07/07/11 07:18:46 (23 months ago)
- Branches:
- stable
- Children:
- e9dddad
- Parents:
- 24a46ab
- Files:
-
- 11 edited
-
AutoBuild.h (modified) (1 diff)
-
NSClient++-2005.sln (modified) (3 diffs)
-
NSClient++.cpp (modified) (1 diff)
-
changelog (modified) (1 diff)
-
include/parsers/eval.hpp (modified) (2 diffs)
-
include/parsers/where/grammar/grammar_impl.hpp (modified) (1 diff)
-
modules/CheckDisk/CheckDisk-2005.vcproj (modified) (1 diff)
-
modules/CheckDisk/CheckDisk.cpp (modified) (1 diff)
-
modules/CheckDisk/filter.cpp (modified) (1 diff)
-
modules/CheckDisk/filter.hpp (modified) (2 diffs)
-
rc.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
AutoBuild.h
r24a46ab r79f191a 3 3 // change the FALSE to TRUE for autoincrement of build number 4 4 #define INCREMENT_VERSION TRUE 5 #define FILEVER 0,3,9,3 156 #define PRODUCTVER 0,3,9,3 157 #define STRFILEVER _T("0.3.9.3 15")8 #define STRPRODUCTVER _T("0.3.9.3 15")9 #define STRPRODUCTDATE _T("2011-0 6-27")5 #define FILEVER 0,3,9,322 6 #define PRODUCTVER 0,3,9,322 7 #define STRFILEVER _T("0.3.9.322") 8 #define STRPRODUCTVER _T("0.3.9.322") 9 #define STRPRODUCTDATE _T("2011-07-04") 10 10 #endif // AUTOBUILD_H -
NSClient++-2005.sln
r84963e0 r79f191a 390 390 {BA246C01-063A-4548-8957-32D5CC76171B}.Debug|Win32.ActiveCfg = Debug|Win32 391 391 {BA246C01-063A-4548-8957-32D5CC76171B}.Debug|x64.ActiveCfg = Debug|x64 392 {BA246C01-063A-4548-8957-32D5CC76171B}.Debug|x64.Build.0 = Debug|x64393 392 {BA246C01-063A-4548-8957-32D5CC76171B}.Debug-MemCheck|Any CPU.ActiveCfg = Debug-MemCheck|x64 394 393 {BA246C01-063A-4548-8957-32D5CC76171B}.Debug-MemCheck|Itanium.ActiveCfg = Debug-MemCheck|x64 … … 862 861 {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug|Win32.ActiveCfg = Debug|Win32 863 862 {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug|x64.ActiveCfg = Debug|x64 864 {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug|x64.Build.0 = Debug|x64865 863 {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug-MemCheck|Any CPU.ActiveCfg = Debug-MemCheck|x64 866 864 {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug-MemCheck|Itanium.ActiveCfg = Debug-MemCheck|x64 … … 1149 1147 {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug|Win32.Build.0 = Debug|Win32 1150 1148 {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug|x64.ActiveCfg = Debug|x64 1151 {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug|x64.Build.0 = Debug|x641152 1149 {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug-MemCheck|Any CPU.ActiveCfg = Debug-MemCheck|x64 1153 1150 {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug-MemCheck|Itanium.ActiveCfg = Debug-MemCheck|x64 -
NSClient++.cpp
r41ca52e r79f191a 1223 1223 void log_broken_message(std::wstring msg) { 1224 1224 OutputDebugString(msg.c_str()); 1225 std::wcout << msg << std::endl;1225 std::wcout << "broken: " << msg << std::endl; 1226 1226 } 1227 1227 /** -
changelog
r24a46ab r79f191a 7 7 * Fix RtlStringFromGUID problem on NT4 8 8 9 2011-06-27 MickeM 9 2011-06-28 MickeM - 0.3.9 rc5 10 * CheckDisk: Fixed time comparissons for files 11 * where filters: Fixed le beeing interpreted as lt 12 13 2011-06-27 MickeM - 0.3.9 rc4 10 14 * Fixed issue where parsers and () which was broken 11 15 * Made most keywords in the where parser case insensitive so NOT and not as well as AND and AnD should now all work -
include/parsers/eval.hpp
r84963e0 r79f191a 6 6 namespace where { 7 7 static bool debug_enabled = false; 8 static int debug_level = 5;8 static int debug_level = 15; 9 9 namespace operator_impl { 10 10 template<typename THandler> … … 108 108 struct operator_lt : public simple_bool_binary_operator_impl<THandler> { 109 109 bool eval_int(value_type type, typename THandler::object_type &handler, const expression_ast<THandler> &left, const expression_ast<THandler> & right) const { 110 std::wcout << left.get_int(handler) << _T(" - ") << right.get_int(handler) << std::endl; 110 if (debug_enabled && debug_level > 10) 111 std::cout << "(op_lt) " << left.get_int(handler) << " < " << right.get_int(handler) << std::endl; 111 112 return left.get_int(handler) < right.get_int(handler); 112 113 } -
include/parsers/where/grammar/grammar_impl.hpp
r24a46ab r79f191a 175 175 | qi::lit(">") [_val = op_gt] 176 176 | ascii::no_case[qi::lit("le")] [_val = op_le] 177 | ascii::no_case[qi::lit("lt")] [_val = op_l e]177 | ascii::no_case[qi::lit("lt")] [_val = op_lt] 178 178 | ascii::no_case[qi::lit("eq")] [_val = op_eq] 179 179 | ascii::no_case[qi::lit("ne")] [_val = op_ne] -
modules/CheckDisk/CheckDisk-2005.vcproj
r84963e0 r79f191a 1869 1869 > 1870 1870 </Filter> 1871 <Filter 1872 Name="filter" 1873 > 1874 <File 1875 RelativePath="..\..\include\parsers\ast.hpp" 1876 > 1877 </File> 1878 <File 1879 RelativePath="..\..\include\parsers\where\ast_bind.hpp" 1880 > 1881 </File> 1882 <File 1883 RelativePath="..\..\include\parsers\where\ast_static_eval.hpp" 1884 > 1885 </File> 1886 <File 1887 RelativePath="..\..\include\parsers\where\ast_type_inference.hpp" 1888 > 1889 </File> 1890 <File 1891 RelativePath="..\..\include\parsers\where\ast_visitors.hpp" 1892 > 1893 </File> 1894 <File 1895 RelativePath="..\..\include\parsers\where\expression_ast.hpp" 1896 > 1897 </File> 1898 <File 1899 RelativePath="..\..\include\parsers\where\expression_ast_impl.hpp" 1900 > 1901 </File> 1902 <File 1903 RelativePath="..\..\include\parsers\where\grammar\grammar.hpp" 1904 > 1905 </File> 1906 <File 1907 RelativePath="..\..\include\parsers\where\grammar\grammar_impl.hpp" 1908 > 1909 </File> 1910 <File 1911 RelativePath="..\..\include\parsers\where\list_value.hpp" 1912 > 1913 </File> 1914 <File 1915 RelativePath="..\..\include\parsers\where\operators.hpp" 1916 > 1917 </File> 1918 <File 1919 RelativePath="..\..\include\parsers\where\operators_impl.hpp" 1920 > 1921 </File> 1922 <File 1923 RelativePath="..\..\include\parsers\where\unary_fun.hpp" 1924 > 1925 </File> 1926 <File 1927 RelativePath="..\..\include\parsers\where\variable.hpp" 1928 > 1929 </File> 1930 <File 1931 RelativePath="..\..\include\parsers\where\varible_handler.hpp" 1932 > 1933 </File> 1934 <File 1935 RelativePath="..\..\include\parsers\where.hpp" 1936 > 1937 </File> 1938 <File 1939 RelativePath="..\..\include\parsers\where_parser.hpp" 1940 > 1941 </File> 1942 </Filter> 1871 1943 <File 1872 1944 RelativePath=".\ReadMe.txt" -
modules/CheckDisk/CheckDisk.cpp
r84963e0 r79f191a 713 713 return NSCAPI::returnUNKNOWN; 714 714 if (args->debug) 715 NSC_DEBUG_MSG_STD(_T(" NOW: ") + strEx::format_filetime(args->now));715 NSC_DEBUG_MSG_STD(_T("xNOW: ") + strEx::format_filetime(args->now)); 716 716 717 717 file_filter::filter_result result = file_filter::factories::create_result(args); -
modules/CheckDisk/filter.cpp
r84963e0 r79f191a 312 312 GetSystemTimeAsFileTime(&ft_now); 313 313 now = ((ft_now.dwHighDateTime * ((unsigned long long)MAXDWORD+1)) + (unsigned long long)ft_now.dwLowDateTime); 314 std::cout << "NOW: " << now << std::endl;315 //this->set_result(parent_type::result_type(new where_filter::simple_count_result<file_info>(this)));316 314 } 317 315 -
modules/CheckDisk/filter.hpp
r84963e0 r79f191a 58 58 //long long get_write(); 59 59 60 __int64 get_creation() { 61 std::cout << ullNow << " ? " << ullCreationTime << " => " << ullNow-ullCreationTime << " (" << (ullNow-ullCreationTime)/MSECS_TO_100NS << ")" << std::endl; 60 long long get_creation() { 62 61 return (ullNow-ullCreationTime)/MSECS_TO_100NS; 63 62 } 64 __int64get_access() {63 long long get_access() { 65 64 return (ullNow-ullLastAccessTime)/MSECS_TO_100NS; 66 65 } 67 __int64 get_write() { 68 return (ullNow-ullLastWriteTime)/MSECS_TO_100NS; 66 long long get_write() { 67 //std::wcout << _T("written: ") << (ullNow-ullLastWriteTime)/MSECS_TO_100NS; 68 //return (ullNow-ullLastWriteTime)/MSECS_TO_100NS; 69 return strEx::filetime_to_time(ullLastWriteTime); 70 //return ullLastWriteTime / windows_tick - sec_to_unix_epoch; 71 //return ullLastWriteTime/MSECS_TO_100NS; 69 72 } 70 73 unsigned long long get_size() { return ullSize; } … … 125 128 126 129 static const __int64 MSECS_TO_100NS = 10000; 130 static const long long windows_tick = 10000000; 131 static const long long sec_to_unix_epoch = 11644473600; 127 132 128 133 }; -
rc.py
r84963e0 r79f191a 7 7 elif len(sys.argv) == 2: 8 8 rc = sys.argv[1] 9 10 if rc == "--release": 11 rc = "" 9 12 10 13 … … 21 24 found.append(key) 22 25 src ='%s/%s'%(path, name) 23 tgt = '%s/%s-%s-%s-%s.%s'%(path, names[0], names[1], names[2], rc, ext) 26 if rc: 27 tgt = '%s/%s-%s-%s-%s.%s'%(path, names[0], names[1], names[2], rc, ext) 28 else: 29 tgt = '%s/%s-%s-%s.%s'%(path, names[0], names[1], names[2], ext) 24 30 if os.path.exists(tgt): 25 31 print 'ERR: File already exists: %s'%tgt
Note: See TracChangeset
for help on using the changeset viewer.








