Bash-5.3-alpha release

This commit is contained in:
Chet Ramey
2024-04-22 10:33:38 -04:00
parent f3b6bd1945
commit 622d318652
700 changed files with 136534 additions and 96420 deletions
+5 -15
View File
@@ -1,6 +1,6 @@
/* watch.c - watchpoint functions for malloc */
/* Copyright (C) 2001-2003 Free Software Foundation, Inc.
/* Copyright (C) 2001-2003, 2022 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -35,11 +35,7 @@ int _malloc_nwatch;
static PTR_T _malloc_watch_list[WATCH_MAX];
static void
watch_warn (addr, file, line, type, data)
PTR_T addr;
const char *file;
int line, type;
unsigned long data;
watch_warn (PTR_T addr, const char *file, int line, int type, unsigned long data)
{
char *tag;
@@ -61,11 +57,7 @@ watch_warn (addr, file, line, type, data)
}
void
_malloc_ckwatch (addr, file, line, type, data)
PTR_T addr;
const char *file;
int line, type;
unsigned long data;
_malloc_ckwatch (PTR_T addr, const char *file, int line, int type, unsigned long data)
{
register int i;
@@ -81,8 +73,7 @@ _malloc_ckwatch (addr, file, line, type, data)
#endif /* MALLOC_WATCH */
PTR_T
malloc_watch (addr)
PTR_T addr;
malloc_watch (PTR_T addr)
{
register int i;
PTR_T ret;
@@ -117,8 +108,7 @@ malloc_watch (addr)
watchpoints. Returns ADDR if everything went OK, NULL if ADDR was
not being watched. */
PTR_T
malloc_unwatch (addr)
PTR_T addr;
malloc_unwatch (PTR_T addr)
{
#ifdef MALLOC_WATCH
register int i;