[config] constants

This commit is contained in:
Al
2015-07-01 13:01:22 -04:00
parent fa643f7a3a
commit af56c3cd09
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
#ifndef CONFIG_H
#define CONFIG_H
#define LIBPOSTAL_DATA_DIR "../data"
#include "file_utils.h"
#define LIBPOSTAL_DATA_DIR ".." PATH_SEPARATOR "data"
#define LIBPOSTAL_DICTIONARIES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "dictionaries"
#define LIBPOSTAL_GEONAMES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geonames"
#endif

View File

@@ -7,6 +7,9 @@
#define NAMESPACE_SEPARATOR_CHAR "|"
#define NAMESPACE_SEPARATOR_CHAR_LEN strlen(NAMESPACE_SEPARATOR_CHAR)
#define LANGUAGE_SEPARATOR_CHAR "|"
#define LANGUAGE_SEPARATOR_CHAR_LEN strlen(LANGUAGE_SEPARATOR_CHAR)
// Supports ISO 639 alpha 2 and alpha 3 codes
#define MAX_LANGUAGE_LEN 4