clean conditional compilation for file support on FXCG50 (not supported on FX9860G yet, sorry)
This commit is contained in:
parent
e13412be98
commit
27773fb200
|
@ -55,8 +55,6 @@ ifeq ($(TARGETCASIO),"FXCG50")
|
|||
ports/sh/numworks/time.c
|
||||
|
||||
|
||||
|
||||
|
||||
$(info *********** Add µlab modules *********** )
|
||||
CFLAGS_EXTRA += -DMODULE_ULAB_ENABLED=1
|
||||
|
||||
|
@ -132,8 +130,8 @@ endif
|
|||
|
||||
ifeq ($(TARGETCASIO),"FX9860G")
|
||||
$(info *********** FX9860G VERSION *********** )
|
||||
|
||||
|
||||
|
||||
$(info ********* No extra module yet! ********* )
|
||||
endif
|
||||
|
||||
|
||||
|
|
|
@ -589,8 +589,12 @@ mp_import_stat_t mp_import_stat(const char *path)
|
|||
}
|
||||
|
||||
|
||||
// FIXME: Check if the removal of this function (replaced by mp_builtin_open() does not break anything)
|
||||
/*
|
||||
// FIXME: TODO: check if we can have file support also on FX9860G
|
||||
// currently we need this function that is replaced by
|
||||
// the equivalent method in /fileio/file.c/mp_builtin_open() for FXCG50
|
||||
|
||||
#ifdef FX9860G
|
||||
|
||||
// TODO: See branch 'posix-open' for a relevant attempt at using the POSIX API
|
||||
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs)
|
||||
{
|
||||
|
@ -608,4 +612,5 @@ mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs)
|
|||
return mp_const_none;
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
|
||||
*/
|
||||
|
||||
#endif
|
|
@ -129,7 +129,10 @@ typedef long mp_off_t;
|
|||
#define MP_STATE_PORT MP_STATE_VM
|
||||
|
||||
|
||||
#define MICROPY_PY_IO_FILEIO (1)
|
||||
#define MICROPY_PORT_BUILTINS \
|
||||
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
|
||||
#ifdef FXCG50
|
||||
|
||||
#define MICROPY_PY_IO_FILEIO (1)
|
||||
#define MICROPY_PORT_BUILTINS \
|
||||
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue