summaryrefslogtreecommitdiffstats
path: root/src/rcclist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcclist.c')
-rw-r--r--src/rcclist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rcclist.c b/src/rcclist.c
index dc26d7e..522077e 100644
--- a/src/rcclist.c
+++ b/src/rcclist.c
@@ -8,11 +8,17 @@ rcc_language_ptr *rccGetLanguageList(rcc_context ctx) {
rcc_charset *rccGetCharsetList(rcc_context ctx, rcc_language_id language_id) {
if ((!ctx)||(language_id<0)||(language_id>=ctx->n_languages)) return NULL;
+ if (!language_id) language_id = rccGetCurrentLanguage(ctx);
+ printf("=====> LanguageID: %i\n", language_id);
+
return ctx->languages[language_id]->charsets;
}
rcc_engine_ptr *rccGetEngineList(rcc_context ctx, rcc_language_id language_id) {
if ((!ctx)||(language_id<0)||(language_id>=ctx->n_languages)) return NULL;
+ if (!language_id) language_id = rccGetCurrentLanguage(ctx);
+ printf("=====> LanguageID: %i\n", language_id);
+
return ctx->languages[language_id]->engines;
}