more changes to avoid expanding associative array subscripts twice; internal debugging changes

This commit is contained in:
Chet Ramey
2021-12-22 16:05:39 -05:00
parent b2b78a6348
commit 701f36c2c3
27 changed files with 462 additions and 450 deletions
+26
View File
@@ -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, ...)