added mipsel cross file, tested on a dm800se
Across_mipsel.txt
| @@ -0,0 +1,16 @@ | |||
|---|---|---|---|
| 1 | + | [binaries] | |
| 2 | + | c = '/usr/bin/mipsel-linux-gnu-gcc' | |
| 3 | + | ar = '/usr/bin/mipsel-linux-gnu-gcc-ar' | |
| 4 | + | ||
| 5 | + | [properties] | |
| 6 | + | ||
| 7 | + | c_args = ['-std=c89', '-Wall', '-Wextra', '-Wpedantic'] | |
| 8 | + | c_link_args = [] | |
| 9 | + | needs_exe_wrapper = true | |
| 10 | + | default_library='static' | |
| 11 | + | ||
| 12 | + | [host_machine] | |
| 13 | + | system = 'linux' | |
| 14 | + | cpu_family = 'mipsel' | |
| 15 | + | cpu = 'mipsel' | |
| 16 | + | endian = 'little' | |
Minclude/cutils/dyn_string.h
| @@ -29,6 +29,8 @@ void string_remove(String* string, size_t index); | |||
|---|---|---|---|
| 29 | 29 | void string_remove_range(String* string, size_t index, size_t length); | |
| 30 | 30 | ||
| 31 | 31 | bool string_adjust_size(String* string, size_t size); | |
| 32 | + | /* TODO: rework find functions to take extra argument of result count | |
| 33 | + | * and then find that many and return them in a vector/linked list */ | |
| 32 | 34 | size_t* string_find_char(const String* haystack, const char needle); | |
| 33 | 35 | size_t* string_find_str(const String* haystack, const String* needle); | |
| 34 | 36 | ||