diff options
author | Eike Rathke <erack@redhat.com> | 2019-08-19 18:28:19 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-08-19 19:50:03 +0200 |
commit | 3eb837565878ebb2da5a11c3286a1f1ef0899183 (patch) | |
tree | 9f1ec60928f5b07bf709b131c0a8a4e00ec8291d /include/i18npool | |
parent | 8efd46ed867b66f9fbc31dbaa1d46bc91ea29ae2 (diff) |
Add build time check for NF_INDEX_TABLE_ENTRIES <= nFirstFreeFormatIndex
This was just tribal knowledge..
Change-Id: I3d4d93d6eae01c2f3f73a309043bf59dcca10ff6
Reviewed-on: https://gerrit.libreoffice.org/77749
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'include/i18npool')
-rw-r--r-- | include/i18npool/reservedconstants.hxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/i18npool/reservedconstants.hxx b/include/i18npool/reservedconstants.hxx new file mode 100644 index 000000000000..400344ce5a8d --- /dev/null +++ b/include/i18npool/reservedconstants.hxx @@ -0,0 +1,21 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <sal/types.h> + +/** Constant values shared between i18npool and, for example, the number formatter. */ +namespace i18npool +{ +/** The number of reserved (with defined meaning) built-in format code indices, + additional locale data format codes can be defined starting at this index + value. */ +constexpr sal_Int16 nFirstFreeFormatIndex = 60; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |