diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-05-01 09:00:08 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-05-01 09:01:06 -0700 |
commit | d8affa3dc5267c5da120ac09e14a81e0afed8fe8 (patch) | |
tree | 37684a31c7ad5f9f58dc72ccb19009c67376b546 /src | |
parent | d38d2a845a8e44443e8d995c0ba79211e6934400 (diff) | |
download | emacs-d8affa3dc5267c5da120ac09e14a81e0afed8fe8.tar.gz |
Use ‘T *restrict’ proto, not ‘T[restrict]’
* src/fns.c (sort_vector_copy): Use a different way to attempt to
work around GCC 3.0-and-earlier incompatibility with C99, one that
does not have problems with modern non-GCC compilers.
Diffstat (limited to 'src')
-rw-r--r-- | src/fns.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fns.c b/src/fns.c index a65863ce0e8..9bbbb6d7b71 100644 --- a/src/fns.c +++ b/src/fns.c @@ -32,13 +32,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include "intervals.h" #include "window.h" -#if __GNUC__ >= 4 static void sort_vector_copy (Lisp_Object, ptrdiff_t, - Lisp_Object [restrict], Lisp_Object [restrict]); -#else -static void sort_vector_copy (Lisp_Object, ptrdiff_t, - Lisp_Object [], Lisp_Object []); -#endif + Lisp_Object *restrict, Lisp_Object *restrict); static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object); DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, |