1. 13 Oct, 2016 3 commits
    • Deomid Ryabkov's avatar
      Rename MG_DISABLE_CGI -> MG_ENABLE_CGI · 75059d1b
      Deomid Ryabkov authored
      Also factor out CGI-related code from http.c, it's getting too big.
      
      Build tests with -Wundef
      
      PUBLISHED_FROM=a1e82fafba73812c249db0b49c59d1b48417b60d
      75059d1b
    • Deomid Ryabkov's avatar
      Run V7 tests with -Wundef · 15e9a927
      Deomid Ryabkov authored
      PUBLISHED_FROM=e2375c5b10be12a75f6a5f9df56ebe9f5faa9331
      15e9a927
    • 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
  2. 12 Oct, 2016 1 commit
  3. 11 Oct, 2016 2 commits
    • Deomid Ryabkov's avatar
      esp_mg_net_if refactoring: split LWIP & ESP parts · ab48174b
      Deomid Ryabkov authored
      esp_mg_net_if was a rat's nest of mongoose net_if and event manager
      implementaions and the event loop task for the ESP8266 miot port.
      From that, pieces that are related to LWIP support have been pulled out,
      separated into net_if and event manager files, and event loop task
      has been moved under the miot esp8266 dirrectory.
      
      This is done to facilitate LWIP code reuse. This may not be the end of
      it, but it's a start.
      
      Note: custom retransmit logic has been removed for now. Can be
      reintroduced later is necessary.
      
      PUBLISHED_FROM=fd5bbf75714583ce95776d4c76b6c5b5dc535364
      ab48174b
    • Marko Mikulicic's avatar
      Add MBED as platform · 4439251f
      Marko Mikulicic authored
      Currently this allows V7 to be built on MBED; more
      work is likely required to port mongoose.
      
      PUBLISHED_FROM=32cd0a38349c8e9019af46d4ce7e1429e660db25
      4439251f
  4. 04 Oct, 2016 1 commit
    • Deomid Ryabkov's avatar
      Add MG_EV_SSI_CALL_CTX · f9a6403b
      Deomid Ryabkov authored
      This is the variant of MG_EV_SSI_CALL with context of the SSI call being
      processed in addition to the tag argument. Specifically, call handler
      now gets access to the HTTP request and the name of the file being processed.
      
      MG_EV_SSI_CALL is preserved for backward compatibility.
      
      PUBLISHED_FROM=eeea7487c062505abdb23b6f64994ff7a6b60ff8
      f9a6403b
  5. 03 Oct, 2016 3 commits
  6. 30 Sep, 2016 6 commits
  7. 29 Sep, 2016 3 commits
  8. 28 Sep, 2016 2 commits
  9. 27 Sep, 2016 2 commits
  10. 26 Sep, 2016 2 commits
  11. 23 Sep, 2016 5 commits
  12. 22 Sep, 2016 3 commits
  13. 16 Sep, 2016 1 commit
  14. 15 Sep, 2016 4 commits
  15. 13 Sep, 2016 2 commits