mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-19 09:52:53 +02:00
more changes to avoid expanding associative array subscripts twice; internal debugging changes
This commit is contained in:
@@ -50,6 +50,9 @@ extern void internal_error PARAMS((const char *, ...)) __attribute__((__format_
|
||||
/* Report an internal warning. */
|
||||
extern void internal_warning PARAMS((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
|
||||
|
||||
/* Report an internal warning for debugging purposes. */
|
||||
extern void internal_debug PARAMS((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
|
||||
|
||||
/* Report an internal informational notice. */
|
||||
extern void internal_inform PARAMS((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
|
||||
|
||||
@@ -70,4 +73,10 @@ extern void err_badarraysub PARAMS((const char *));
|
||||
extern void err_unboundvar PARAMS((const char *));
|
||||
extern void err_readonly PARAMS((const char *));
|
||||
|
||||
#ifdef DEBUG
|
||||
# define INTERNAL_DEBUG(x) internal_debug x
|
||||
#else
|
||||
# define INTERNAL_DEBUG(x)
|
||||
#endif
|
||||
|
||||
#endif /* !_ERROR_H_ */
|
||||
|
||||
Reference in New Issue
Block a user