mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-10 16:53:52 +01:00
more changes to avoid expanding associative array subscripts twice; internal debugging changes
This commit is contained in:
1 parent
b2b78a6348
commit
701f36c2c3
27 files changed
+462
-450
No files matched your search
@@ -294,6 +294,32 @@ internal_inform (format, va_alist)
|
||||
va_end (args);
|
||||
}
|
||||
|
||||
void
|
||||
#if defined (PREFER_STDARG)
|
||||
internal_debug (const char *format, ...)
|
||||
#else
|
||||
internal_debug (format, va_alist)
|
||||
const char *format;
|
||||
va_dcl
|
||||
#endif
|
||||
{
|
||||
#ifdef DEBUG
|
||||
va_list args;
|
||||
|
||||
error_prolog (1);
|
||||
fprintf (stderr, _("DEBUG warning: "));
|
||||
|
||||
SH_VA_START (args, format);
|
||||
|
||||
vfprintf (stderr, format, args);
|
||||
fprintf (stderr, "\n");
|
||||
|
||||
va_end (args);
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
#if defined (PREFER_STDARG)
|
||||
sys_error (const char *format, ...)
|
||||
|
||||
Reference in new issue
Block a user