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;
return;
}
+ /* Otherwise, using a dynamically loaded one. */
if (valid_table) free(valid_table);
DEBUG(2,("creating default valid table\n"));
}
+
/*******************************************************************
Write a string in (little-endian) unicode format. src is in
the current DOS codepage. len is the length in bytes of the