diff options
Diffstat (limited to 'src/rccstring.c')
-rw-r--r-- | src/rccstring.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rccstring.c b/src/rccstring.c index d6c6805..9c4c19f 100644 --- a/src/rccstring.c +++ b/src/rccstring.c @@ -58,6 +58,14 @@ int rccStringFixID(rcc_string string, rcc_context ctx) { return 0; } +int rccStringChangeID(rcc_string string, rcc_language_id language_id) { + if ((!string)&&(language_id != (rcc_language_id)-1)) return -1; + + ((rcc_string_header*)string)->language_id = language_id; + return 0; +} + + void rccStringFree(rcc_string str) { if (str) free(str); } |