diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-31 14:59:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-31 14:59:41 +0000 |
commit | 424bcae1fb0f69e0aef5e0cf84fd771cf34a0fb7 (patch) | |
tree | 2841d6e3702a563627a400fa10a284b73a817436 /src/evalfunc.c | |
parent | eb6c2765959c91ddbb527f96f91ba5be199b8d41 (diff) |
patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 500ae284b2..1b788db9c4 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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 |