]> git.eshelyaron.com Git - emacs.git/commit
Minor cleanups of str_collate fix.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Aug 2014 05:44:57 +0000 (22:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Aug 2014 05:44:57 +0000 (22:44 -0700)
commit90c5c87753fb69dafd664615558fa3fdce3ba5b1
treed072b51fd01b88140786d85b5fb4927ccce1a1af
parentd74553559b62cc7b07ed32c35391c1b75eda540f
Minor cleanups of str_collate fix.

* fns.c (str_collate): Move decl from here ...
* lisp.h (str_collate): ... to here.
* sysdep.c (str_collate): Prune away some of the forest of ifdefs.
Remove unnecessary casts.  Use SAFE_NALLOCA to avoid
potential problems with integer overflow.  Don't assume
setlocale succeeds.  Remove unnecessary test before restoring
locale via setlocale, and free the copied setlocale string
when done with it.

Fixes: debbugs:18051
src/ChangeLog
src/fns.c
src/lisp.h
src/sysdep.c