1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00

Don't aver in writef: typically called from debugger where we want a best effort.

Copied from Perforce
 Change: 185629
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2014-04-17 14:21:15 +01:00
parent 6721c2b913
commit a4253ed484

View file

@ -470,10 +470,8 @@ Res WriteF_firstformat_v(mps_lib_FILE *stream,
break;
while(*format != '\0') {
if (*format == '}') {
AVER(depth > 0);
if (*format == '}' && depth > 0)
-- depth;
}
if (line_start) {
for (i = 0; i < depth; ++i) {
r = mps_lib_fputs(" ", stream);
@ -516,7 +514,7 @@ Res WriteF_firstformat_v(mps_lib_FILE *stream,
case 'F': { /* function */
WriteFF f = va_arg(args, WriteFF);
Byte *b = (Byte *)&f;
/* ISO C forbits casting function pointers to integer, so
/* ISO C forbids casting function pointers to integer, so
decode bytes (see design.writef.f).
TODO: Be smarter about endianness. */
for(i=0; i < sizeof(WriteFF); i++) {