mirror of
https://github.com/MariaDB/server.git
synced 2025-07-21 23:50:01 +00:00
WL#5486: Remove code for unsupported platforms
Remove MS-DOS specific code.
This commit is contained in:
@ -25,8 +25,8 @@
|
||||
#include <my_sys.h>
|
||||
#include "m_string.h"
|
||||
|
||||
uchar NEAR to_upper[256];
|
||||
uchar NEAR to_lower[256],NEAR sort_order[256];
|
||||
uchar to_upper[256];
|
||||
uchar to_lower[256], sort_order[256];
|
||||
|
||||
static int ascii_output=1;
|
||||
static string tab_names[]={ "to_lower[]={","to_upper[]={","sort_order[]={" };
|
||||
@ -47,7 +47,7 @@ char *argv[];
|
||||
puts("Tabells for caseconverts and sorttest of characters\n");
|
||||
for (i=0 ; i < 3 ; i++)
|
||||
{
|
||||
printf("uchar NEAR %s\n",tab_names[i]);
|
||||
printf("uchar %s\n",tab_names[i]);
|
||||
for (j=0 ; j <= 255 ; j++)
|
||||
{
|
||||
ch=(int) tabell[i][j];
|
||||
@ -140,10 +140,6 @@ void init_case_convert()
|
||||
to_upper[i]= sort_order[i]= to_lower[i]= (char) i;
|
||||
#endif
|
||||
|
||||
#ifdef MSDOS
|
||||
higher_pos= (uchar *) "\217\216\231\232\220"; /* Extra chars to konv. */
|
||||
lower_pos= (uchar *) "\206\204\224\201\202";
|
||||
#else
|
||||
#if defined(HPUX10) && ASCII_BITS_USED == 8
|
||||
higher_pos= (uchar *) "\xd0\xd8\xda\xdb\xdc\xd3";
|
||||
lower_pos= (uchar *) "\xd4\xcc\xce\xdf\xc9\xd7";
|
||||
@ -160,7 +156,6 @@ void init_case_convert()
|
||||
#endif
|
||||
#endif /* USE_INTERNAL_CTYPE */
|
||||
#endif /* HPUX10 */
|
||||
#endif /* MSDOS */
|
||||
|
||||
while (*higher_pos)
|
||||
{
|
||||
@ -171,10 +166,6 @@ void init_case_convert()
|
||||
/* sets upp sortorder; higer_pos character (upper and lower) is */
|
||||
/* changed to lower_pos character */
|
||||
|
||||
#ifdef MSDOS
|
||||
higher_pos= (uchar *) "\217\216\231\232\220";
|
||||
lower_pos= (uchar *) "\216\217\231YE";
|
||||
#else
|
||||
#if defined(HPUX10) && ASCII_BITS_USED == 8
|
||||
higher_pos= lower_pos= (uchar *) ""; /* Tecknen i r{tt ordning */
|
||||
#else
|
||||
@ -186,7 +177,6 @@ void init_case_convert()
|
||||
lower_pos= (uchar *) "[\\]YE"; /* Ordning enligt ascii */
|
||||
#endif /* USE_ISO_8859_1 */
|
||||
#endif /* HPUX10 */
|
||||
#endif /* MSDOS */
|
||||
|
||||
while (*higher_pos)
|
||||
{
|
||||
|
Reference in New Issue
Block a user