[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] [PATCH 07/11] Fix handling of varargs in sSuniversal_error_h
From: |
Will Newton |
Subject: |
[Gcl-devel] [PATCH 07/11] Fix handling of varargs in sSuniversal_error_handler |
Date: |
Wed, 11 Jun 2014 17:27:20 +0100 |
From: Will Newton <address@hidden>
VFUN_NARGS includes the args we have already processed so account
for that in the loop. Also add output of a space between outputs.
---
gcl/o/error.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gcl/o/error.c b/gcl/o/error.c
index 3f82626..cc1f95d 100644
--- a/gcl/o/error.c
+++ b/gcl/o/error.c
@@ -357,8 +357,10 @@
DEFUN("UNIVERSAL-ERROR-HANDLER",object,fSuniversal_error_handler,SI
princ(error_fmt_string,Cnil);
putchar(' ');
va_start(ap,error_fmt_string);
- for (n=VFUN_NARGS,l=Cnil,f=OBJNULL;(z=NEXT_ARG(n,ap,l,f,OBJNULL))!=OBJNULL;)
+ for (n=VFUN_NARGS -
6,l=Cnil,f=OBJNULL;(z=NEXT_ARG(n,ap,l,f,OBJNULL))!=OBJNULL;) {
princ(z,Cnil);
+ putchar(' ');
+ }
flush_stream(symbol_value(sLAstandard_outputA));
va_end(ap);
printf("\nLisp initialization failed.\n");
--
1.9.3
- [Gcl-devel] [PATCH 00/11] Add support for AArch64, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 01/11] config.{sub, guess}: Update to latest versions of GNU config, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 03/11] Add support for AArch64, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 04/11] Reorder code to avoid problems with dis-asm.h defining DEFUN., Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 02/11] o/main.c: Ensure cs_org is always pointer aligned, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 06/11] Check for preceding NULL in find_init_name1, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 07/11] Fix handling of varargs in sSuniversal_error_handler,
Will Newton <=
- [Gcl-devel] [PATCH 05/11] Always pass a va_list as the last arg of call_proc_new, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 10/11] Reduce threshold for increasing maxpage, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 09/11] Avoid looking up dynamic symbols in the executable, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 08/11] Handle dladdr failure correctly, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 11/11] Hack to disable x86 floating point code, Will Newton, 2014/06/11
- Re: [Gcl-devel] [PATCH 00/11] Add support for AArch64, Camm Maguire, 2014/06/11