1. 02 Aug, 2015 1 commit
  2. 20 Jun, 2015 1 commit
    • Damien George's avatar
      py: Use a wrapper to explicitly check self argument of builtin methods. · 06593fb0
      Damien George authored
      Previous to this patch a call such as list.append(1, 2) would lead to a
      seg fault.  This is because list.append is a builtin method and the first
      argument to such methods is always assumed to have the correct type.
      
      Now, when a builtin method is extracted like this it is wrapped in a
      checker object which checks the the type of the first argument before
      calling the builtin function.
      
      This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and
      is enabled by default.
      
      See issue #1216.
      06593fb0
  3. 21 Apr, 2015 1 commit
  4. 16 Apr, 2015 1 commit
    • Damien George's avatar
      py: Overhaul and simplify printf/pfenv mechanism. · 7f9d1d6a
      Damien George authored
      Previous to this patch the printing mechanism was a bit of a tangled
      mess.  This patch attempts to consolidate printing into one interface.
      
      All (non-debug) printing now uses the mp_print* family of functions,
      mainly mp_printf.  All these functions take an mp_print_t structure as
      their first argument, and this structure defines the printing backend
      through the "print_strn" function of said structure.
      
      Printing from the uPy core can reach the platform-defined print code via
      two paths: either through mp_sys_stdout_obj (defined pert port) in
      conjunction with mp_stream_write; or through the mp_plat_print structure
      which uses the MP_PLAT_PRINT_STRN macro to define how string are printed
      on the platform.  The former is only used when MICROPY_PY_IO is defined.
      
      With this new scheme printing is generally more efficient (less layers
      to go through, less arguments to pass), and, given an mp_print_t*
      structure, one can call mp_print_str for efficiency instead of
      mp_printf("%s", ...).  Code size is also reduced by around 200 bytes on
      Thumb2 archs.
      7f9d1d6a
  5. 06 Apr, 2015 2 commits
  6. 14 Mar, 2015 1 commit
  7. 13 Feb, 2015 1 commit
  8. 20 Jan, 2015 1 commit
  9. 15 Jan, 2015 1 commit
  10. 13 Jan, 2015 2 commits
    • Paul Sokolovsky's avatar
      minimal: Convert "bare-arm" port to "minimal" port. · 5ebabcda
      Paul Sokolovsky authored
      This enable libc functions, GC, and line-editing function. Also, UART
      emulation for POSIX systems is added. Emulation build is set as default.
      5ebabcda
    • Paul Sokolovsky's avatar
      minimal: New port, intended to represent minimal working code. · d511a20a
      Paul Sokolovsky authored
      Unlike bare-arm, which is mostly intended to show raw interpreter size,
      without library and support code dependencies. This port is intended to
      be a better base to start new ports, and also will include emulation
      build to allow debug some aspects of embedded targets on POSIX systems.
      
      This initial commit is verbatim copy of bare-arm code.
      d511a20a
  11. 10 Jan, 2015 1 commit
  12. 16 Nov, 2014 1 commit
  13. 06 Nov, 2014 1 commit
  14. 23 Oct, 2014 1 commit
  15. 08 Sep, 2014 1 commit
  16. 24 Aug, 2014 1 commit
  17. 12 Aug, 2014 1 commit
  18. 03 Jul, 2014 1 commit
  19. 27 Jun, 2014 2 commits
  20. 08 Jun, 2014 1 commit
  21. 01 Jun, 2014 2 commits
  22. 24 May, 2014 1 commit
  23. 21 May, 2014 1 commit
    • Damien George's avatar
      Tidy up some configuration options. · 58ebde46
      Damien George authored
      MP_ALLOC_* -> MICROPY_ALLOC_*
      MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
      MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
      MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
      MICROPY_EXTRA_* -> MICROPY_PORT_*
      
      See issue #35.
      58ebde46
  24. 26 Apr, 2014 1 commit
  25. 13 Apr, 2014 1 commit
  26. 12 Apr, 2014 1 commit