1. 08 Jan, 2011 4 commits
    • Fixed two buffer handling errors in vector.c · a17777d1
      - remove() would read one-past array bounds.
      - resize() would fail if the initial size was 1, because it multiplied by 1.75
        and truncated the resulting value. The buffer would always remain at size 1,
        but elements would repeatedly be appended (via insert()) causing a crash.
      Alex Budovski committed
    • Revised build configuration for MSVC. · 9ace34c8
      Major changes and rationale:
      - /WX: absolutely vital when compiling in C-mode as the compiler is
        incredibly lenient on what is allowed to compile. It allows functions to be
        called without prototypes declared, treating them as functions returning int
        taking an unspecified (read: unrestricted) list of arguments, without any
        type checking! It will simply issue a warning, which is easily overlooked.
      
        A real example: it will allow you to call ceil(1.75) without first including
        <math.h> causing UB, returning bogus results like 1023 on the machine I
        tested on.
      
      - Release build separate from debug.
        Presently release builds don't exist.  Consequently they are completely
        untested. Many bugs may only manifest themselves in release mode. The current
        configuration sets debug-only flags like /RTC1 which are incompatible with
        optimization (/O2).
      
        In addition, the Windows build of libgit2 has no optimized version. This
        change resolves this.
      
      - Added checksum generation in image headers. This is so debuggers don't
        complain about checksum mismatches and provides a small amount of consistency
        to binaries.
      Alex Budovski committed
    • Add Delphi bindings to the readme · 6f9024a7
      Signed-off-by: Vicent Marti <tanoku@gmail.com>
      Vicent Marti committed
  2. 03 Jan, 2011 4 commits
  3. 29 Dec, 2010 1 commit
    • Add generic hash function to util.c · e0646b38
      It's MurmurHash3 slightly edited to make it
      cross-platform. Fast and neat.
      
      Use this for hashing strings on hash tables instead
      of a full SHA1 hash. It's very fast and well distributed.
      
      Obviously not crypto-secure.
      
      Signed-off-by: Vicent Marti <tanoku@gmail.com>
      Vicent Marti committed
  4. 26 Dec, 2010 1 commit
  5. 23 Dec, 2010 1 commit
  6. 22 Dec, 2010 11 commits
  7. 21 Dec, 2010 3 commits
  8. 20 Dec, 2010 3 commits
  9. 19 Dec, 2010 3 commits
  10. 18 Dec, 2010 4 commits
  11. 17 Dec, 2010 5 commits