# HG changeset patch
# User Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Date 1575239685 -3600
# Node ID 5e9a1a75f8a7960123474ca56cdcd22c15724f64
# Parent  28755107c2f4be33e617b00d892303779bdc6792
util.encodings: Don’t export unneeded symbols

This reduces the binary size from 22704 B to 18592 B.

diff -r 28755107c2f4 -r 5e9a1a75f8a7 util-src/encodings.c
--- a/util-src/encodings.c	Sun Dec 01 12:21:26 2019 +0100
+++ b/util-src/encodings.c	Sun Dec 01 23:34:45 2019 +0100
@@ -216,7 +216,7 @@
  * Check that a string is valid UTF-8
  * Returns NULL if not
  */
-const char *check_utf8(lua_State *L, int idx, size_t *l) {
+static const char *check_utf8(lua_State *L, int idx, size_t *l) {
 	size_t pos, len;
 	const char *s = luaL_checklstring(L, idx, &len);
 	pos = 0;
@@ -323,12 +323,12 @@
 	}
 }
 
-UStringPrepProfile *icu_nameprep;
-UStringPrepProfile *icu_nodeprep;
-UStringPrepProfile *icu_resourceprep;
-UStringPrepProfile *icu_saslprep;
-USpoofChecker *icu_spoofcheck;
-UIDNA *icu_idna2008;
+static UStringPrepProfile *icu_nameprep;
+static UStringPrepProfile *icu_nodeprep;
+static UStringPrepProfile *icu_resourceprep;
+static UStringPrepProfile *icu_saslprep;
+static USpoofChecker *icu_spoofcheck;
+static UIDNA *icu_idna2008;
 
 #if (U_ICU_VERSION_MAJOR_NUM < 58)
 /* COMPAT */
@@ -336,7 +336,7 @@
 #endif
 
 /* initialize global ICU stringprep profiles */
-void init_icu(void) {
+static void init_icu(void) {
 	UErrorCode err = U_ZERO_ERROR;
 	utrace_setLevel(UTRACE_VERBOSE);
 	icu_nameprep = usprep_openByType(USPREP_RFC3491_NAMEPREP, &err);