]> granicus.if.org Git - flex/commitdiff
build: Remove custom reallocarray() declaration.
authorLukasz Baj <l.baj@radytek.com>
Fri, 22 Sep 2017 08:24:46 +0000 (10:24 +0200)
committerWill Estes <westes575@gmail.com>
Thu, 5 Oct 2017 15:31:18 +0000 (11:31 -0400)
Use one from <stdlib.h> instead because that is more portable.

src/flexdef.h

index c111c516819b9c98223f3d34e39d56535531c0f0..ffc3e477cdf094961d8f8b7789f7c3e46116ca3a 100644 (file)
@@ -631,10 +631,6 @@ extern int sectnum, nummt, hshcol, dfaeql, numeps, eps2, num_reallocs;
 extern int tmpuses, totnst, peakpairs, numuniq, numdup, hshsave;
 extern int num_backing_up, bol_needed;
 
-#ifndef HAVE_REALLOCARRAY
-void *reallocarray(void *, size_t, size_t);
-#endif
-
 void   *allocate_array(int, size_t);
 void   *reallocate_array(void *, int, size_t);