Re: [dev] [sbase] printf(1)

2013-12-19 Thread Maurice Quennet
On Thu, Dec 19, 2013 at 02:39:21PM +0100, Roberto E. Vargas Caballero wrote: > You only have to use putchar for every character (except in the case > of the format specifiers), and then you don't need the enp pointer, or > am I missing something else? That's what I did at first, but I forgot the e

Re: [dev] [sbase] printf(1)

2013-12-19 Thread Maurice Quennet
so you can set "*end = '\0'", otherwise fmt will include everything up unitl to the end of the complete format string. I hope I made it clear now (which I'm not so sure of). Best regards Maurice Quennet

Re: [dev] [sbase] printf(1)

2013-12-19 Thread Maurice Quennet
ing. You still have to figure out, where the format string starts and where it ends and you have to convert the argument to the correct type. Best regards Maurice Quennet

[dev] [sbase] printf(1)

2013-12-18 Thread Maurice Quennet
age (with a few modifications) since both implementations seem to be largely equivalent. I have the feeling that I forgot to mention something, but, well, it probably will come up again. Anyways I hope you like it. Best regards, Maurice Quennet diff --git a/Makefile b/Makefile index 2a72a

Re: [dev] [st] [patch] multi-line selection causes core dump on OpenBSD

2013-09-23 Thread Maurice Quennet
case, the if condition never holds true for x == 0. So as you mentioned, the outcome for x == 0 is different. It is to decide which one is the correct behaviour. As I my mentioned, a quick test of my fix (which should be logically equivalent to Roberto's fix) showed no problems, but then again, it was just a quick test. Best regards Maurice Quennet

[dev] [st] [patch] multi-line selection causes core dump on OpenBSD

2013-09-21 Thread Maurice Quennet
nspecting the core dump. Best regards, Maurice Quennet diff --git a/st.c b/st.c index 3321c31..e63573e 100644 --- a/st.c +++ b/st.c @@ -961,7 +961,8 @@ selcopy(void) { * st. * FIXME: Fix the computer world. */ -