1. 30 Jan, 2017 1 commit
  2. 09 Jan, 2017 1 commit
  3. 25 Nov, 2016 1 commit
  4. 14 Nov, 2016 1 commit
  5. 11 Nov, 2016 1 commit
  6. 10 Nov, 2016 1 commit
  7. 09 Nov, 2016 1 commit
  8. 08 Nov, 2016 1 commit
  9. 01 Nov, 2016 1 commit
  10. 26 Oct, 2016 1 commit
  11. 17 Oct, 2016 3 commits
  12. 14 Oct, 2016 1 commit
  13. 13 Oct, 2016 1 commit
    • Deomid Ryabkov's avatar
      Change from using #ifdef to #if for features tests · bafc30be
      Deomid Ryabkov authored
      "#if FOO" still works with simple -DFOO, but gives more flexibility.
      Specifically, if user expressed no preference (FOO is not defined),
      we can apply reasonable defaults (this is the legitimate use of ifdef).
      
      In short, from now on, please use
      
       #if MG_ENABLE_FOO
      
      instead of
      
       #ifdef MG_ENABLE_FOO
      
      Since we are all used to #ifdef, this change also adds a precommit check
      to police this. Specifically, in *.h and *.c files that are Copyright Cesanta,
      "ifdef" and "if defined()" are not allowed to be used with macros that contain
      ENABLE or DISABLE, unless the like also contains "ifdef-ok".
      
      Hence, if you are sure you want to use ifdef, use this:
      
       #ifdef MG_ENABLE_FOO /* ifdef-ok */
      
      PUBLISHED_FROM=9be829448f53cff575d6cae8b9945fb12531c15a
      bafc30be
  14. 13 Sep, 2016 3 commits
  15. 12 Sep, 2016 2 commits
  16. 05 Sep, 2016 1 commit
  17. 01 Sep, 2016 1 commit
  18. 26 Jul, 2016 1 commit
  19. 22 Jul, 2016 17 commits