summaryrefslogtreecommitdiff
path: root/source3/lib/util_unistr.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-24 03:09:08 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-24 03:09:08 +0000
commit266ec4aac04cb8666234f18baa38ff6387f40cb3 (patch)
tree4d9d7c402de541088943102072b26bba14d480d8 /source3/lib/util_unistr.c
parentecad7bea2cf9af30fa492ba943081275db16c0ee (diff)
downloadsamba-266ec4aac04cb8666234f18baa38ff6387f40cb3.tar.gz
samba-266ec4aac04cb8666234f18baa38ff6387f40cb3.tar.bz2
samba-266ec4aac04cb8666234f18baa38ff6387f40cb3.zip
Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.
Andrew Bartlett (This used to be commit 9ef0d40c3f8aef52ab321dc065264c42065bc876)
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r--source3/lib/util_unistr.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 5c9b4c783b..522ab7eb40 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -95,9 +95,14 @@ static int check_dos_char(smb_ucs2_t c)
return (c == c2);
}
-/*******************************************************************
-load the valid character map table
-********************************************************************/
+/**
+ * Load the valid character map table from <tt>valid.dat</tt> or
+ * create from the configured codepage.
+ *
+ * This function is called whenever the configuration is reloaded.
+ * However, the valid character table is not changed if it's loaded
+ * from a file, because we can't unmap files.
+ **/
void init_valid_table(void)
{
static int initialised;
@@ -114,6 +119,7 @@ void init_valid_table(void)
return;
}
+ /* Otherwise, using a dynamically loaded one. */
if (valid_table) free(valid_table);
DEBUG(2,("creating default valid table\n"));
@@ -128,6 +134,7 @@ void init_valid_table(void)
}
+
/*******************************************************************
Write a string in (little-endian) unicode format. src is in
the current DOS codepage. len is the length in bytes of the