Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
list.h@0:4ab1392a0142, 2012-10-07 (annotated)
- Committer:
- gignops
- Date:
- Sun Oct 07 11:49:09 2012 +0000
- Revision:
- 0:4ab1392a0142
This project is an adaptation of tinypy code. The aim is to run python code on Mbed.; ; Have fun !
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| gignops | 0:4ab1392a0142 | 1 | #ifndef LIST_H |
| gignops | 0:4ab1392a0142 | 2 | #define LIST_H |
| gignops | 0:4ab1392a0142 | 3 | |
| gignops | 0:4ab1392a0142 | 4 | #include "tp.h" |
| gignops | 0:4ab1392a0142 | 5 | |
| gignops | 0:4ab1392a0142 | 6 | void _tp_list_realloc(_tp_list *self,int len); |
| gignops | 0:4ab1392a0142 | 7 | void _tp_list_set(TP,_tp_list *self,int k, tp_obj v, const char *error); |
| gignops | 0:4ab1392a0142 | 8 | void _tp_list_free(_tp_list *self); |
| gignops | 0:4ab1392a0142 | 9 | tp_obj _tp_list_get(TP,_tp_list *self,int k,const char *error); |
| gignops | 0:4ab1392a0142 | 10 | void _tp_list_insertx(TP,_tp_list *self, int n, tp_obj v); |
| gignops | 0:4ab1392a0142 | 11 | void _tp_list_appendx(TP,_tp_list *self, tp_obj v); |
| gignops | 0:4ab1392a0142 | 12 | void _tp_list_insert(TP,_tp_list *self, int n, tp_obj v); |
| gignops | 0:4ab1392a0142 | 13 | void _tp_list_append(TP,_tp_list *self, tp_obj v); |
| gignops | 0:4ab1392a0142 | 14 | tp_obj _tp_list_pop(TP,_tp_list *self, int n, const char *error); |
| gignops | 0:4ab1392a0142 | 15 | int _tp_list_find(TP,_tp_list *self, tp_obj v); |
| gignops | 0:4ab1392a0142 | 16 | tp_obj tp_index(TP); |
| gignops | 0:4ab1392a0142 | 17 | _tp_list *_tp_list_new(void); |
| gignops | 0:4ab1392a0142 | 18 | tp_obj _tp_list_copy(TP, tp_obj rr); |
| gignops | 0:4ab1392a0142 | 19 | tp_obj tp_append(TP); |
| gignops | 0:4ab1392a0142 | 20 | tp_obj tp_pop(TP); |
| gignops | 0:4ab1392a0142 | 21 | tp_obj tp_insert(TP); |
| gignops | 0:4ab1392a0142 | 22 | tp_obj tp_extend(TP); |
| gignops | 0:4ab1392a0142 | 23 | tp_obj tp_list(TP); |
| gignops | 0:4ab1392a0142 | 24 | tp_obj tp_list_n(TP,int n,tp_obj *argv); |
| gignops | 0:4ab1392a0142 | 25 | int _tp_sort_cmp(tp_obj *a,tp_obj *b); |
| gignops | 0:4ab1392a0142 | 26 | tp_obj tp_sort(TP); |
| gignops | 0:4ab1392a0142 | 27 | |
| gignops | 0:4ab1392a0142 | 28 | #endif |