1. 11 Jan, 2018 1 commit
    • Kenton Varda's avatar
      Replace all include guards with #pragma once. · 677a52ab
      Kenton Varda authored
      @kloepper pointed out a while back that every compiler you've ever heard of supports this. Plus, it's more concise, it's not prone to copy-paste errors, and it looks nicer.
      
      At the time I wanted to remain consistent and I didn't feel like spending the time to update all my existing code. But, every time I've added a new header since I've cursed the include guard, so I finally broke down and changed it.
      677a52ab
  2. 23 Dec, 2017 2 commits
    • Kenton Varda's avatar
      deb65e9a
    • Kenton Varda's avatar
      Change capnp tool to use filesystem API. · e2a9467b
      Kenton Varda authored
      In addition to cleaner code, this has the effect of fixing a number of issues:
      - Fixes #494: Windows paths are now parsed and handled a lot better. On Windows, backslashes are handled appropriately, as are absolute paths with drive letters.
      - Fixes #288: Specifing a source path starting with ".." without an appropriate --src-prefix will no longer cause output files to be generated outside of the specified output directory. Instead, the output name will be based on the absolute path, and a warning will be written since this is probably not what anyone wants.
      - It's no longer necessary for --src-prefix to exactly match character-for-character. Instead, the prefix and source paths are canonicalized before matching. It even works if one is relative and the other absolute.
      - Relative paths are now consistently always evaluated in path space, so ".." always cancels the previous path component and the OS/filesystem never even sees that it was there. This used to be the case in some places but not others. This behavior is important for symlink-heavy source trees: the path "foo/some-symlink/.." is now always designates "foo", rather than designating the parent directory of the symlink's target.
      
      This change does not update the code generator plugins nor the SchemaParser API. Those will come in separate commits.
      e2a9467b
  3. 02 Apr, 2016 1 commit
  4. 22 Nov, 2014 1 commit
  5. 20 Jun, 2014 1 commit
    • Kenton Varda's avatar
      Change license to MIT. · 889204fe
      Kenton Varda authored
      For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company).
      
      The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is.
      
      Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change:
      
      https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
      889204fe
  6. 30 Nov, 2013 1 commit
  7. 04 Aug, 2013 1 commit
  8. 02 Aug, 2013 1 commit
  9. 26 Jul, 2013 1 commit
  10. 25 Jul, 2013 1 commit
  11. 19 Jul, 2013 1 commit
  12. 13 Jul, 2013 1 commit
  13. 06 Jun, 2013 2 commits
  14. 13 Mar, 2013 1 commit
  15. 02 Mar, 2013 1 commit
  16. 01 Mar, 2013 1 commit
  17. 26 Feb, 2013 1 commit