Skip to content

Commit

Permalink
make varnam_find_symbols_file_directory() publicly accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Sep 28, 2020
1 parent c212df5 commit 682aa03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions api.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ varnam_set_symbols_dir (const char *dir);
VARNAM_EXPORT strbuf*
varnam_get_symbols_dir ();

VARNAM_EXPORT extern const char*
varnam_find_symbols_file_directory ();

/**
* Sets the suggestions directory where all the learning data will be stored. This value will be used
* when initializing using varnam_init_from_id
Expand Down
6 changes: 3 additions & 3 deletions varnam.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static const char* symbolsFileSearchPath[] = {
};

const char*
find_symbols_file_directory()
varnam_find_symbols_file_directory()
{
int i;

Expand All @@ -235,7 +235,7 @@ static strbuf*
find_symbols_file_path (const char *langCode)
{
strbuf *path;
const char* dir = find_symbols_file_directory();
const char* dir = varnam_find_symbols_file_directory();
if (dir == NULL) {
return NULL;
}
Expand Down Expand Up @@ -522,7 +522,7 @@ varnam_get_all_handles()
int rc;
char *msg;

const char* symbolsFileDir = find_symbols_file_directory();
const char* symbolsFileDir = varnam_find_symbols_file_directory();
if (symbolsFileDir == NULL)
return NULL;

Expand Down

0 comments on commit 682aa03

Please sign in to comment.