1. 29 Jan, 2020 1 commit
  2. 04 Oct, 2019 1 commit
  3. 16 Jan, 2019 1 commit
  4. 10 Jul, 2018 2 commits
  5. 28 Jun, 2018 2 commits
  6. 22 Jun, 2018 1 commit
  7. 21 Jun, 2018 5 commits
  8. 20 Jun, 2018 2 commits
  9. 29 Sep, 2017 1 commit
  10. 05 Sep, 2017 5 commits
    • Nick Mathewson's avatar
      Refactor buffer APIs to put a buf_t first. · 6ec50597
      Nick Mathewson authored
      By convention, a function that frobs a foo_t should be called
      foo_frob, and it should have a foo_t * as its first argument.  But
      for many of the buf_t functions, the buf_t was the final argument,
      which is silly.
      6ec50597
    • Nick Mathewson's avatar
      Repair wide lines from previous commit. · d61da9e6
      Nick Mathewson authored
      d61da9e6
    • Nick Mathewson's avatar
      Repair buffer API so everything starts with buf_. · 4a7e90ad
      Nick Mathewson authored
      Our convention is that functions which manipulate a type T should be
      named T_foo.  But the buffer functions were super old, and followed
      all kinds of conventions.  Now they're uniform.
      
      Here's the perl I used to do this:
      
      \#!/usr/bin/perl -w -i -p
      
      s/read_to_buf\(/buf_read_from_socket\(/;
      s/flush_buf\(/buf_flush_to_socket\(/;
      s/read_to_buf_tls\(/buf_read_from_tls\(/;
      s/flush_buf_tls\(/buf_flush_to_tls\(/;
      s/write_to_buf\(/buf_add\(/;
      s/write_to_buf_compress\(/buf_add_compress\(/;
      s/move_buf_to_buf\(/buf_move_to_buf\(/;
      s/peek_from_buf\(/buf_peek\(/;
      s/fetch_from_buf\(/buf_get_bytes\(/;
      s/fetch_from_buf_line\(/buf_get_line\(/;
      s/fetch_from_buf_line\(/buf_get_line\(/;
      s/buf_remove_from_front\(/buf_drain\(/;
      s/peek_buf_startswith\(/buf_peek_startswith\(/;
      s/assert_buf_ok\(/buf_assert_ok\(/;
      4a7e90ad
    • Nick Mathewson's avatar
      Move buffers.c and buffers_tls.c into src/common · 336aa21e
      Nick Mathewson authored
      These are no longer tor-specific, so they can be part of the
      infrastructure.
      336aa21e
    • Nick Mathewson's avatar
      150089cb