summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-12 20:06:33 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-12 20:06:33 +0100
commita1fa8929395351f03c56f50ca6e891d825123c0f (patch)
tree8c3b65a6534d242e13ff9d12316960cccc82acd8 /src/evalfunc.c
parent1d669c233c97486555a34f7d3f069068d9ebdb63 (diff)
downloadvim-git-a1fa8929395351f03c56f50ca6e891d825123c0f.tar.gz
patch 8.0.0173: build fails with EBCDIC definedv8.0.0173
Problem: When compiling with EBCDIC defined the build fails. (Yaroslav Kuzmin) Solution: Move sortFunctions() to the right file. Avoid warning for redefining __SUSV3.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index efa07b111..768a0f157 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -923,34 +923,6 @@ get_expr_name(expand_T *xp, int idx)
#endif /* FEAT_CMDL_COMPL */
-#if defined(EBCDIC) || defined(PROTO)
-/*
- * Compare struct fst by function name.
- */
- static int
-compare_func_name(const void *s1, const void *s2)
-{
- struct fst *p1 = (struct fst *)s1;
- struct fst *p2 = (struct fst *)s2;
-
- return STRCMP(p1->f_name, p2->f_name);
-}
-
-/*
- * Sort the function table by function name.
- * The sorting of the table above is ASCII dependant.
- * On machines using EBCDIC we have to sort it.
- */
- static void
-sortFunctions(void)
-{
- int funcCnt = (int)(sizeof(functions) / sizeof(struct fst)) - 1;
-
- qsort(functions, (size_t)funcCnt, sizeof(struct fst), compare_func_name);
-}
-#endif
-
-
/*
* Find internal function in table above.
* Return index, or -1 if not found