1
0
forked from aniani/vim

patch 8.2.4273: the EBCDIC support is outdated

Problem:    The EBCDIC support is outdated.
Solution:   Remove the EBCDIC support.
This commit is contained in:
Bram Moolenaar
2022-01-31 14:59:41 +00:00
parent eb6c276595
commit 424bcae1fb
43 changed files with 429 additions and 1302 deletions

View File

@@ -2467,33 +2467,6 @@ static funcentry_T global_functions[] =
ret_number, f_xor},
};
#if defined(EBCDIC) || defined(PROTO)
/*
* Compare funcentry_T by function name.
*/
static int
compare_func_name(const void *s1, const void *s2)
{
funcentry_T *p1 = (funcentry_T *)s1;
funcentry_T *p2 = (funcentry_T *)s2;
return STRCMP(p1->f_name, p2->f_name);
}
/*
* Sort the function table by function name.
* The sorting of the table above is ASCII dependent.
* On machines using EBCDIC we have to sort it.
*/
void
sortFunctions(void)
{
size_t funcCnt = ARRAY_LENGTH(global_functions);
qsort(global_functions, funcCnt, sizeof(funcentry_T), compare_func_name);
}
#endif
/*
* Function given to ExpandGeneric() to obtain the list of internal
* or user defined function names.
@@ -5101,13 +5074,7 @@ f_has(typval_T *argvars, typval_T *rettv)
0
#endif
},
{"ebcdic",
#ifdef EBCDIC
1
#else
0
#endif
},
{"ebcdic", 0 },
{"fname_case",
#ifndef CASE_INSENSITIVE_FILENAME
1