46 Commits (e3f8777ee8b50ef8ed45493812a6c0bf94ed38fa)

Author SHA1 Message Date
Paul Sokolovsky 696eee9475 modffi: dlsym() doesn't set errno, so use ENOENT for OSError. 9 years ago
Damien George a9afcb159a unix/modffi.c: get_buffer is allowed to return NULL if len=0. 10 years ago
Damien George 6bbbb1ab41 unix/modffi: Support passing float/double args. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Paul Sokolovsky bbaf68f2cb modffi: Implement 'O' type handling for func arguments. 10 years ago
Paul Sokolovsky 99bcaa2fb6 modffi: Add toplevel func() function to create a function by pointer. 10 years ago
Paul Sokolovsky 8775caf9f1 modffi: Add .addr() method to just get symbol address. 10 years ago
Paul Sokolovsky 31c1f1300e modffi: 's' (string) return type: handle NULL properly (return None). 10 years ago
Paul Sokolovsky 2e526ff1a1 modffi: Support return values of mp_obj_t type. 10 years ago
Paul Sokolovsky 0ab3fc3805 modffi: Support open own executable using open(None). 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 115187f7ce unix: Allow to compile with float support disabled. 10 years ago
Damien George 6d7e47087f unix: Prefix includes with py/; remove need for -I../py. 10 years ago
Paul Sokolovsky 0078561303 modffi: Support void (None) return value for Python callback functions. 10 years ago
Paul Sokolovsky b62371e8fb modffi: 64-bit cleanness (fixes actual bug in callback arg handling). 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 10 years ago
Damien George be6d8be91e py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. 10 years ago
Damien George 3b603f29ec Use MP_DEFINE_CONST_DICT macro to define module dicts. 10 years ago
Damien George 91fe0d4880 unix: Fix modffi to be able to return double on x86 machines. 10 years ago
Damien George 17598d49e1 unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning. 10 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky e95b6b5e07 modffi: Add special 'C' code for passing a callback function pointer. 11 years ago
Paul Sokolovsky a23475979b modffi: Support short types. 11 years ago
Emmanuel Blot f6932d6506 Prefix ARRAY_SIZE with micropython prefix MP_ 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky 9b71b16a94 unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Damien George 6d3c5e4301 Add ARRAY_SIZE macro, and use it where possible. 11 years ago
Paul Sokolovsky fa6f0506c1 unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues. 11 years ago
Paul Sokolovsky acb13886fc unix: OSError's args[0] should be errno numeric value. 11 years ago
Paul Sokolovsky b418b6fb0d modffi: Don't use OSError for clearly unrelated errors. 11 years ago
Paul Sokolovsky 88972b0d94 modffi: Describe typecodes where they differ from used by struct module. 11 years ago
Paul Sokolovsky 9ae0912496 modffi: Update for MP_OBJ_STOP_ITERATION refactor. 11 years ago
Paul Sokolovsky 752d2080b7 modffi: Mark 'p' type spec deprecated, replace with 'P'. 11 years ago
Damien George 738bdeb73a unix: Update to use new buffer protocol interface with typecode. 11 years ago
Paul Sokolovsky 4abaa1b12b unix modffi: Convert to static module structures. 11 years ago
Paul Sokolovsky f200c30d53 modffi: Support float types. 11 years ago
Paul Sokolovsky 263853ef84 modffi: Update for latest binary API refactors. 11 years ago
Paul Sokolovsky f898a95cba unix modffi: Support any object implementing buffer protocol as a native arg. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Paul Sokolovsky c39368427c unix: Rename module sources per latest naming conventions (mod*.c). 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 918638ec6e unix: Fix ffi.c to compile with latest changes to API. 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago