small asan fixes; size_t and other ANSI C changes; restore readline variables in compgen builtin

This commit is contained in:
Chet Ramey
2023-03-27 16:38:37 -04:00
parent 429bd8199c
commit 57d4dc15ff
51 changed files with 1063 additions and 4323 deletions
+6 -10
View File
@@ -1,7 +1,7 @@
/* memalloc.h -- consolidate code for including alloca.h or malloc.h and
defining alloca. */
/* Copyright (C) 1993 Free Software Foundation, Inc.
/* Copyright (C) 1993,2003 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -45,17 +45,13 @@
# include <alloca.h>
# endif /* !IBMESA */
# else /* !HAVE_ALLOCA_H || C_ALLOCA */
# if defined (__hpux) && defined (__STDC__) && !defined (alloca)
extern void *alloca ();
# else
# if !defined (alloca)
# if defined (__STDC__)
# if !defined (alloca)
# if defined (__STDC__)
extern void *alloca (size_t);
# else
# else
extern char *alloca ();
# endif /* !__STDC__ */
# endif /* !alloca */
# endif /* !__hpux || !__STDC__ && !alloca */
# endif /* !__STDC__ */
# endif /* !alloca */
# endif /* !HAVE_ALLOCA_H || C_ALLOCA */
#endif /* !__GNUC__ || C_ALLOCA */