[config] constants
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user