1. 06 May, 2020 2 commits
    • Nick Mathewson's avatar
      Use __attribute__((fallthrough)) rather than magic GCC comments. · 28ac17f4
      Nick Mathewson authored
      GCC added an implicit-fallthrough warning a while back, where it
      would complain if you had a nontrivial "case:" block that didn't end
      with break, return, or something like that.  Clang recently added
      the same thing.
      
      GCC, however, would let you annotate a fall-through as intended by
      any of various magic "/* fall through */" comments.  Clang, however,
      only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
      accepts that too.
      
      A previous commit in this branch defined a FALLTHROUGH macro to do
      the right thing if GNUC is defined; here we replace all of our "fall
      through" comments with uses of that macro.
      
      This is an automated commit, made with the following perl one-liner:
      
        #!/usr/bin/perl -i -p
        s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;
      
      (In order to avoid conflicts, I'm applying this script separately to
      each maint branch. This is the 0.4.2 version.)
      28ac17f4
    • Nick Mathewson's avatar
      Use __attribute__((fallthrough)) rather than magic GCC comments. · 79ff2b6a
      Nick Mathewson authored
      GCC added an implicit-fallthrough warning a while back, where it
      would complain if you had a nontrivial "case:" block that didn't end
      with break, return, or something like that.  Clang recently added
      the same thing.
      
      GCC, however, would let you annotate a fall-through as intended by
      any of various magic "/* fall through */" comments.  Clang, however,
      only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
      accepts that too.
      
      A previous commit in this branch defined a FALLTHROUGH macro to do
      the right thing if GNUC is defined; here we replace all of our "fall
      through" comments with uses of that macro.
      
      This is an automated commit, made with the following perl one-liner:
      
        #!/usr/bin/perl -i -p
        s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;
      
      (In order to avoid conflicts, I'm applying this script separately to
      each maint branch. This is the 0.4.1 version.)
      79ff2b6a
  2. 03 Oct, 2019 1 commit
  3. 17 Sep, 2019 1 commit
  4. 11 Sep, 2019 1 commit
  5. 05 Sep, 2019 1 commit
  6. 25 Jun, 2019 2 commits
  7. 29 May, 2019 1 commit
  8. 23 May, 2019 1 commit
  9. 30 Apr, 2019 4 commits
  10. 25 Apr, 2019 13 commits
  11. 12 Apr, 2019 3 commits
  12. 25 Mar, 2019 3 commits
  13. 24 Jan, 2019 1 commit
  14. 16 Jan, 2019 2 commits
  15. 03 Jan, 2019 1 commit
  16. 21 Dec, 2018 1 commit
    • Taylor Yu's avatar
      Add origin circuit event pubsub system · a0b4fa1f
      Taylor Yu authored
      Add a publish-subscribe subsystem to publish messages about changes to
      origin circuits.
      
      Functions in circuitbuild.c and circuitlist.c publish messages to this
      subsystem.
      
      Move circuit event constants out of control.h so that subscribers
      don't have to include all of control.h to take actions based on
      messages they receive.
      
      Part of ticket 27167.
      a0b4fa1f
  17. 20 Dec, 2018 2 commits