| 25 | extern void* __service_ptr; |
| 26 | |
| 27 | static int __name_cmp(const char* a, const char* b) { |
| 28 | u32 i; |
| 29 | |
| 30 | for(i=0; i<8; i++) { |
| 31 | if(a[i] != b[i]) |
| 32 | return 1; |
| 33 | if(a[i] == '\0') |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | Handle __attribute__((weak)) envGetHandle(const char* name) { |
| 41 | if(__service_ptr == NULL) |