diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-04 04:14:58 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-04 04:14:58 +0000 |
commit | a21deef1c62467b21500f94dfb2ab3d58e69cb85 (patch) | |
tree | 742d2c1e2592fbcb580ebce9fac7f4f867e6218b /src/rcclist.c | |
parent | 97e76f4c979d7a0c4ed296c512c3024e3c6afa18 (diff) | |
download | librcc-a21deef1c62467b21500f94dfb2ab3d58e69cb85.tar.gz librcc-a21deef1c62467b21500f94dfb2ab3d58e69cb85.tar.bz2 librcc-a21deef1c62467b21500f94dfb2ab3d58e69cb85.tar.xz librcc-a21deef1c62467b21500f94dfb2ab3d58e69cb85.zip |
04.07.2005
Diffstat (limited to 'src/rcclist.c')
-rw-r--r-- | src/rcclist.c | 6 |
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; } |