aboutsummaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-12-20 23:36:17 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-20 23:36:17 +1100
commit5e431188db5e23a6fef5e6b3892e17354f1aac59 (patch)
treeab265cd58e7e93893d2d6a6c56f439404c22a600 /py/obj.h
parent035180ca015d01934094adea52affbf867e4cdc6 (diff)
py/obj.h: Remove comments about additional mp_buffer_info_t entries.
These entries are unlikely to be needed, so remove them to clean up the struct definition.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/py/obj.h b/py/obj.h
index 5b54892ce..7c6815a3c 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -435,18 +435,9 @@ typedef mp_obj_t (*mp_getiter_fun_t)(mp_obj_t self_in, mp_obj_iter_buf_t *iter_b
// Buffer protocol
typedef struct _mp_buffer_info_t {
- // if we'd bother to support various versions of structure
- // (with different number of fields), we can distinguish
- // them with ver = sizeof(struct). Cons: overkill for *micro*?
- //int ver; // ?
-
void *buf; // can be NULL if len == 0
size_t len; // in bytes
int typecode; // as per binary.h
-
- // Rationale: to load arbitrary-sized sprites directly to LCD
- // Cons: a bit adhoc usecase
- // int stride;
} mp_buffer_info_t;
#define MP_BUFFER_READ (1)
#define MP_BUFFER_WRITE (2)