Damien George
|
addf60b2e6
|
Merge pull request #228 from pfalcon/gen-send
Implement send() method for generators.
|
11 years ago |
Paul Sokolovsky
|
bf38e2a03a
|
Implement send() method for generators.
|
11 years ago |
Damien George
|
56bb636014
|
Change -Og to -O0 in unix-cpy/Makefile; cast to small int in socket.c.
|
11 years ago |
Damien George
|
554a75b689
|
Merge pull request #226 from pfalcon/make-debug
unix Makefile: -Og doesn't work (at least) with gcc 4.6 below.
|
11 years ago |
Damien George
|
5bd56fbf13
|
Merge branch 'master' of github.com:micropython/micropython
|
11 years ago |
Damien George
|
75abee206d
|
stm: USB host mode working! Restructure stm library directories.
|
11 years ago |
Paul Sokolovsky
|
4795c58f3c
|
sock-server.py: Use SO_REUSEADDR to avoid errors on quick restart.
|
11 years ago |
Paul Sokolovsky
|
a88c30c64a
|
unix socket: Add setsockopt() method.
|
11 years ago |
Paul Sokolovsky
|
9d95a2b21d
|
Functions of fixed number of args are special-cased only for 3 or less args.
|
11 years ago |
Paul Sokolovsky
|
2ca84aa01e
|
Add MP_OBJ_IS_INT(), for symmetry with MP_OBJ_IS_STR().
|
11 years ago |
Paul Sokolovsky
|
5d362d3209
|
unix socket: Add few more socket constants.
|
11 years ago |
Paul Sokolovsky
|
db0b282d45
|
unix socket: Store module constants in data structure.
-147 bytes on x86.
|
11 years ago |
Paul Sokolovsky
|
e2febe90e3
|
unix Makefile: -Og doesn't work (at least) with gcc 4.6 below.
Also, don't try to force debug info format, use native.
|
11 years ago |
Damien George
|
8fcf7b858d
|
Merge pull request #225 from dhylands/fix-make-dep
Fixed dependency problem for qstrdefs.generated.h
|
11 years ago |
Dave Hylands
|
1a3b0d5fed
|
Fixed dependency problem for qstrdefs.generated.h
The problem manifests itself in make 4.0
I also fixed the LINK message when linking the final executable for unix and unix-cpy.
|
11 years ago |
Damien George
|
51f3a6becd
|
stm: Improved ADC module; add BOARD_NAME config value.
|
11 years ago |
Damien George
|
b829b5caec
|
Implement mp_parse_node_free; print properly repr(string).
|
11 years ago |
Damien George
|
e0722ee9d9
|
Merge branch 'free-parse-tree' of github.com:pfalcon/micropython into pfalcon-free-parse-tree
|
11 years ago |
Damien George
|
28eb57786d
|
py: Optimise generated code for working out line numbers.
|
11 years ago |
Damien George
|
449dd0a69e
|
stm: Put gc_collect code in separate file; define _ram_start in .ld.
To partly address Issue #220.
|
11 years ago |
Damien George
|
2259e62c37
|
Remove obsoleted comment.
|
11 years ago |
Damien George
|
0f5e8b151f
|
Merge branch 'master' of github.com:micropython/micropython
|
11 years ago |
Damien George
|
7c9c667633
|
py: Implement iterator support for object that has __getitem__.
Addresses Issue #203.
|
11 years ago |
Paul Sokolovsky
|
aee2ba70de
|
Add parse_node_free_struct() and use it to free parse tree after compilation.
TODO: Check lexer/parse/compile error path for leaks too.
|
11 years ago |
Paul Sokolovsky
|
c1d200ef74
|
rt_deinit(): Finalize some maps.
|
11 years ago |
Paul Sokolovsky
|
9a24a0465f
|
Add mp_map_deinit() & mp_map_free() to finalize maps.
mp_map_deinit() finalizes static map, mp_map_free() - dynamic.
|
11 years ago |
Damien George
|
fcd4ae8271
|
Merge pull request #221 from pfalcon/basic-bytes
Add basic implementation of bytes type, piggybacking on str.
|
11 years ago |
Damien George
|
58b8a6202a
|
Merge pull request #219 from dhylands/add-deps
Rework makefiles. Add proper dependency checking.
|
11 years ago |
Damien George
|
0004a84ec0
|
Revert "Move gc_collect to py/gc.c"
This reverts commit a215b09c0d .
|
11 years ago |
Damien George
|
baba08bff9
|
Merge pull request #218 from iabdalkader/master
Move file obj to separate module
|
11 years ago |
Damien George
|
41d02b654e
|
py: Improve freeing of emitters in mp_compile.
There can be multiple emitters allocated during compile (eg byte code
and native).
|
11 years ago |
Damien George
|
ceb87835fe
|
Merge pull request #217 from pfalcon/free-emitter
Add support for freeing code emitter objects at the end of compilation.
|
11 years ago |
Damien George
|
4461970da0
|
Small edits to examples to get them working again with unix/micropython.
|
11 years ago |
Damien George
|
389cb950e8
|
Merge pull request #216 from ugurthemaster/patch-1
Update conwaylife.py
|
11 years ago |
Damien George
|
1976baeeb7
|
Retain file order of qstr definitions.
Want common qstrs to be first in the list so they have the lowest ids,
so that in the byte code they take up the least room.
|
11 years ago |
Damien George
|
60aca4810f
|
Merge pull request #215 from pfalcon/qstr-special-chars
Allow qstr's with non-ident chars, construct good identifier for them.
|
11 years ago |
Paul Sokolovsky
|
91fb1c9b13
|
Add basic implementation of bytes type, piggybacking on str.
This reuses as much str implementation as possible, from this we
can make them more separate as needed.
|
11 years ago |
mux
|
a215b09c0d
|
Move gc_collect to py/gc.c
* Move gc_collect from main to py/gc.c
* Define GC's memory boundaries in linker script
* Issue #220
|
11 years ago |
Dave Hylands
|
c89c681a9f
|
Rework makefiles. Add proper dependency checking.
|
11 years ago |
mux
|
40048adabc
|
Move file obj to separate module
|
11 years ago |
Paul Sokolovsky
|
f46d87a30d
|
Add support for freeing code emitter objects at the end of compilation.
|
11 years ago |
Paul Sokolovsky
|
2b2cb7b7f4
|
unix main: Free input line.
Also, readline uses system malloc, so for symmetry, use the same for
non-readline case.
|
11 years ago |
ugurthemaster
|
b94a209d1f
|
Update conwaylife.py
Import statements have been moved to the top of the file.
|
11 years ago |
Paul Sokolovsky
|
39763c6cb0
|
lexerstr: Free mp_lexer_str_buf_t structure itself.
|
11 years ago |
Paul Sokolovsky
|
ab5d08280b
|
Allow qstr's with non-ident chars, construct good identifier for them.
Also, add qstr's for string appearing in unix REPL loop, gross effect
being less allocations for each command run.
|
11 years ago |
Damien George
|
d552db426b
|
Merge pull request #214 from pfalcon/compile-mem-leaks
Memory leaks in lexer/compiler
|
11 years ago |
Damien George
|
3257d3543b
|
stm: Remove unnecessary #includes; small other changes.
|
11 years ago |
Damien George
|
82fd302f1a
|
Merge pull request #213 from iabdalkader/master
Move LED defs to mpconfigport.h
|
11 years ago |
Paul Sokolovsky
|
fd31358505
|
mp_compile(): Properly free module_scope and all nested scopes.
|
11 years ago |
Paul Sokolovsky
|
624ed5d563
|
mp_lexer_free(): Free lex->indent_level array.
|
11 years ago |