Skip to content
Snippets Groups Projects
  1. May 10, 2019
    • Alex Willmer's avatar
      Fix uses of retired builtins and builtin methods · 287f71d5
      Alex Willmer authored
      In Python 3.x
      
      - int and long types are unified. The unified type is called int.
      - the text string type (unicode) is renamed to str.
      - the byte string type (str) is renamed to bytes.
      - chr returns a text string (i.e. str)
      - xrange is renamed to range.
      - dict.has_key() is removed
      -
      287f71d5
    • Alex Willmer's avatar
      Enable absolute imports, true division, & print() · 0f3cadcc
      Alex Willmer authored
      These have no effect in Python 3.x, they are the default. Enabling them
      in Python 2.x, enabling them in Python 2.x allows single source
      compatiblity.
      0f3cadcc
  2. May 22, 2016
    • nicolas's avatar
      Port scons build files for Windows users · 69d3e702
      nicolas authored
      We disable:
      - the tests (which require glib) although they can be
        reactivated with the `--tests` command line flag
      - shared library (lack of export symbol declarations
        means that although it can be built, no symbol is
        exported and therefore it can't be used)
      
      The `install` target installs the library and headers
      under the `build` folder, because it's a traditional practice
      to move libraries to a central location on Windows, unless
      you are using cygwin. In which case pass `prefix` to the
      command line.
      
      We adapt tools\windows\build_examples.bat to take the library
      that is built using scons or using tools\windows\build.bat
      69d3e702
  3. Jan 31, 2016
    • Nicolas Léveillé's avatar
      Finish porting hammer's library to windows · 9a7752b9
      Nicolas Léveillé authored
      We port registry by importing the (public domain) openbsd implementation
      of the tfind/tsearch POSIX binary tree search functions.
      
      These are only necessary when building on non-posix platforms
      9a7752b9
    • Nicolas Léveillé's avatar
      Remove warning about tail "potentially uninitialized" · 206f5044
      Nicolas Léveillé authored
      MSVC was complaining that the `tail` variable was potentially
      uninitialized in the while branch. Since the while loop is actually
      coupled to the if (head != NULL) that initializes the tail variable,
      we move them together, which makes the warning disappear.
      206f5044
  4. Dec 20, 2015
  5. Dec 08, 2015
  6. Aug 16, 2015
  7. Aug 15, 2015
  8. Aug 09, 2015
    • Nicolas Léveillé's avatar
      Don't build all of Hammer on AppVeyor just now · 226cad2a
      Nicolas Léveillé authored
      Since the port is not finished yet, we remove some source files
      and the compilation of examples.
      226cad2a
    • Nicolas Léveillé's avatar
      Deactivate compiler warnings from CL.EXE that fire in hammer · c0ab0673
      Nicolas Léveillé authored
      Some of them are completely spurious however some (marked FIXME(windows))
      may benefit from being looked at.
      c0ab0673
    • Nicolas Léveillé's avatar
      Allow windows users to include hammer.h · 6b9ba603
      Nicolas Léveillé authored
      We substitute H_GCC_ATTRIBUTE to any occurence of __attribute__ and
      disable its function with non gcc, non clang compilers.
      
      We use a H_ macro so as to not pollute users' namespaces.
      
      On windows build without c4201 so as to allow anonymous struct. This
      shows hammer is not C99 compliant but rather C11.
      6b9ba603
    • Nicolas Léveillé's avatar
      e7620e3e
    • Nicolas Léveillé's avatar
      windows build: Add build scripts + appveyor.yml · be308200
      Nicolas Léveillé authored
      In order to guarantee that Hammer can build on Windows, an appveyor.yml
      and associated build scripts will build hammer and its examples. The idea
      is that as soon as the appveyor.yml exists in the repository, pull
      requests that would impede Windows portability would be immediately
      detected.
      
      The scripts expect CL.EXE to be in the path, and will produce their
      results in build/
      
      The highest level of warning is enabled on CL.EXE, minus warnings that
      bring CL.EXE to a level that ressembles C99. The only notable warning
      that was disabled is the one that tells you about implicit truncating
      conversions.
      
      Hammer's source code has quite a few implicit conversions say from a 64bit
      unsigned integer to a integer of a lesser size (signed or otherwise)
      be308200
  9. Jan 04, 2014
  10. Nov 20, 2013
Loading