summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/unicodedata.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 36c6566..e15ff27 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -13,17 +13,7 @@ Copyright (c) Corporation for National Research Initiatives.
#include "Python.h"
#include "unicodedatabase.h"
-/* --- Helpers ------------------------------------------------------------ */
-
-static
-const _PyUnicode_DatabaseRecord *unicode_db(register int i)
-{
- register int page = i >> 12;
-
- if (page < sizeof(_PyUnicode_Database))
- return &_PyUnicode_Database[page][i & 0x0fff];
- return &_PyUnicode_Database[0][0];
-}
+#define unicode_db _PyUnicode_Database_GetRecord
/* --- Module API --------------------------------------------------------- */