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.
dict.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 DICT_H |
| gignops | 0:4ab1392a0142 | 2 | #define DICT_H |
| gignops | 0:4ab1392a0142 | 3 | |
| gignops | 0:4ab1392a0142 | 4 | #include "tp.h" |
| gignops | 0:4ab1392a0142 | 5 | |
| gignops | 0:4ab1392a0142 | 6 | int tp_lua_hash(void const *v,int l); |
| gignops | 0:4ab1392a0142 | 7 | void _tp_dict_free(_tp_dict *self); |
| gignops | 0:4ab1392a0142 | 8 | int tp_hash(TP,tp_obj v); |
| gignops | 0:4ab1392a0142 | 9 | void _tp_dict_hash_set(TP,_tp_dict *self, int hash, tp_obj k, tp_obj v); |
| gignops | 0:4ab1392a0142 | 10 | void _tp_dict_tp_realloc(TP,_tp_dict *self,int len); |
| gignops | 0:4ab1392a0142 | 11 | int _tp_dict_hash_find(TP,_tp_dict *self, int hash, tp_obj k); |
| gignops | 0:4ab1392a0142 | 12 | int _tp_dict_find(TP,_tp_dict *self,tp_obj k); |
| gignops | 0:4ab1392a0142 | 13 | void _tp_dict_setx(TP,_tp_dict *self,tp_obj k, tp_obj v); |
| gignops | 0:4ab1392a0142 | 14 | void _tp_dict_set(TP,_tp_dict *self,tp_obj k, tp_obj v); |
| gignops | 0:4ab1392a0142 | 15 | tp_obj _tp_dict_get(TP,_tp_dict *self,tp_obj k, const char *error); |
| gignops | 0:4ab1392a0142 | 16 | void _tp_dict_del(TP,_tp_dict *self,tp_obj k, const char *error); |
| gignops | 0:4ab1392a0142 | 17 | _tp_dict *_tp_dict_new(void); |
| gignops | 0:4ab1392a0142 | 18 | tp_obj _tp_dict_copy(TP,tp_obj rr); |
| gignops | 0:4ab1392a0142 | 19 | int _tp_dict_next(TP,_tp_dict *self); |
| gignops | 0:4ab1392a0142 | 20 | tp_obj tp_merge(TP); |
| gignops | 0:4ab1392a0142 | 21 | tp_obj tp_dict(TP); |
| gignops | 0:4ab1392a0142 | 22 | tp_obj tp_dict_n(TP,int n, tp_obj* argv); |
| gignops | 0:4ab1392a0142 | 23 | |
| gignops | 0:4ab1392a0142 | 24 | #endif |