Changeset 79f191a in nscp


Ignore:
Timestamp:
07/07/11 07:18:46 (23 months ago)
Author:
Michael Medin <michael@…>
Branches:
stable
Children:
e9dddad
Parents:
24a46ab
Message:

Release of 0.3.9

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • AutoBuild.h

    r24a46ab r79f191a  
    33// change the FALSE to TRUE for autoincrement of build number 
    44#define INCREMENT_VERSION TRUE 
    5 #define FILEVER        0,3,9,315 
    6 #define PRODUCTVER     0,3,9,315 
    7 #define STRFILEVER     _T("0.3.9.315") 
    8 #define STRPRODUCTVER  _T("0.3.9.315") 
    9 #define STRPRODUCTDATE  _T("2011-06-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") 
    1010#endif // AUTOBUILD_H 
  • NSClient++-2005.sln

    r84963e0 r79f191a  
    390390    {BA246C01-063A-4548-8957-32D5CC76171B}.Debug|Win32.ActiveCfg = Debug|Win32 
    391391    {BA246C01-063A-4548-8957-32D5CC76171B}.Debug|x64.ActiveCfg = Debug|x64 
    392     {BA246C01-063A-4548-8957-32D5CC76171B}.Debug|x64.Build.0 = Debug|x64 
    393392    {BA246C01-063A-4548-8957-32D5CC76171B}.Debug-MemCheck|Any CPU.ActiveCfg = Debug-MemCheck|x64 
    394393    {BA246C01-063A-4548-8957-32D5CC76171B}.Debug-MemCheck|Itanium.ActiveCfg = Debug-MemCheck|x64 
     
    862861    {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug|Win32.ActiveCfg = Debug|Win32 
    863862    {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug|x64.ActiveCfg = Debug|x64 
    864     {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug|x64.Build.0 = Debug|x64 
    865863    {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug-MemCheck|Any CPU.ActiveCfg = Debug-MemCheck|x64 
    866864    {F3401E75-60FB-4A0E-A18C-6505587D5B1A}.Debug-MemCheck|Itanium.ActiveCfg = Debug-MemCheck|x64 
     
    11491147    {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug|Win32.Build.0 = Debug|Win32 
    11501148    {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug|x64.ActiveCfg = Debug|x64 
    1151     {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug|x64.Build.0 = Debug|x64 
    11521149    {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug-MemCheck|Any CPU.ActiveCfg = Debug-MemCheck|x64 
    11531150    {BAEB04F1-E73C-4803-B510-27D49D72A6AD}.Debug-MemCheck|Itanium.ActiveCfg = Debug-MemCheck|x64 
  • NSClient++.cpp

    r41ca52e r79f191a  
    12231223void log_broken_message(std::wstring msg) { 
    12241224  OutputDebugString(msg.c_str()); 
    1225   std::wcout << msg << std::endl; 
     1225  std::wcout << "broken: " << msg << std::endl; 
    12261226} 
    12271227/** 
  • changelog

    r24a46ab r79f191a  
    77 * Fix RtlStringFromGUID problem on NT4 
    88 
    9 2011-06-27 MickeM 
     92011-06-28 MickeM - 0.3.9 rc5 
     10 * CheckDisk: Fixed time comparissons for files 
     11 * where filters: Fixed le beeing interpreted as lt 
     12 
     132011-06-27 MickeM - 0.3.9 rc4 
    1014 * Fixed issue where parsers and () which was broken 
    1115 * 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  
    66  namespace where { 
    77    static bool debug_enabled = false; 
    8     static int debug_level = 5; 
     8    static int debug_level = 15; 
    99    namespace operator_impl { 
    1010      template<typename THandler> 
     
    108108      struct operator_lt : public simple_bool_binary_operator_impl<THandler> { 
    109109        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; 
    111112          return left.get_int(handler) < right.get_int(handler); 
    112113        } 
  • include/parsers/where/grammar/grammar_impl.hpp

    r24a46ab r79f191a  
    175175          | qi::lit(">")                    [_val = op_gt] 
    176176          | ascii::no_case[qi::lit("le")]           [_val = op_le] 
    177           | ascii::no_case[qi::lit("lt")]           [_val = op_le] 
     177          | ascii::no_case[qi::lit("lt")]           [_val = op_lt] 
    178178          | ascii::no_case[qi::lit("eq")]           [_val = op_eq] 
    179179          | ascii::no_case[qi::lit("ne")]           [_val = op_ne] 
  • modules/CheckDisk/CheckDisk-2005.vcproj

    r84963e0 r79f191a  
    18691869      > 
    18701870    </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> 
    18711943    <File 
    18721944      RelativePath=".\ReadMe.txt" 
  • modules/CheckDisk/CheckDisk.cpp

    r84963e0 r79f191a  
    713713    return NSCAPI::returnUNKNOWN; 
    714714  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)); 
    716716 
    717717  file_filter::filter_result result = file_filter::factories::create_result(args); 
  • modules/CheckDisk/filter.cpp

    r84963e0 r79f191a  
    312312  GetSystemTimeAsFileTime(&ft_now); 
    313313  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))); 
    316314} 
    317315 
  • modules/CheckDisk/filter.hpp

    r84963e0 r79f191a  
    5858    //long long get_write(); 
    5959 
    60     __int64 get_creation() { 
    61       std::cout << ullNow << " ? " << ullCreationTime << " => " << ullNow-ullCreationTime << " (" << (ullNow-ullCreationTime)/MSECS_TO_100NS << ")" << std::endl; 
     60    long long get_creation() { 
    6261      return (ullNow-ullCreationTime)/MSECS_TO_100NS; 
    6362    } 
    64     __int64 get_access() { 
     63    long long get_access() { 
    6564      return (ullNow-ullLastAccessTime)/MSECS_TO_100NS; 
    6665    } 
    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; 
    6972    } 
    7073    unsigned long long get_size() { return ullSize; } 
     
    125128 
    126129    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; 
    127132 
    128133  }; 
  • rc.py

    r84963e0 r79f191a  
    77elif len(sys.argv) == 2: 
    88  rc = sys.argv[1] 
     9 
     10if rc == "--release": 
     11  rc = "" 
    912 
    1013   
     
    2124      found.append(key) 
    2225      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) 
    2430      if os.path.exists(tgt): 
    2531        print 'ERR: File already exists: %s'%tgt 
Note: See TracChangeset for help on using the changeset viewer.