]> code.delx.au - gnu-emacs/commitdiff
Use ‘T *restrict’ proto, not ‘T[restrict]’
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 May 2016 16:00:08 +0000 (09:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 May 2016 16:01:06 +0000 (09:01 -0700)
* 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.

src/fns.c

index a65863ce0e81b070407d40f1c3dfadfc30e7c99a..9bbbb6d7b7177575c58f6a493e6771ae74322121 100644 (file)
--- 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,