Re: [hackers] [dmenu] import new drw from libsl and minor fixes.

2016-06-03 Thread Markus Teich
Hiltjo Posthuma wrote: > Fair enough, I think I'll apply it with the (temporary fix), since the current > width is also less accurate and the speed trade-off is not worth it. > > Again: thanks for the patches! I'll also review the patch for dwm soon(tm). Heyho, Thanks, I'll push the sent patch

[hackers] [sent] import new drw and util from libsl. || Markus Teich

2016-06-03 Thread git
commit 27a904c1dd40d185dd5123ca354f6080e853ec92 Author: Markus Teich AuthorDate: Sat May 21 21:39:58 2016 +0200 Commit: Markus Teich CommitDate: Tue May 24 19:28:44 2016 +0200 import new drw and util from libsl. diff --git

Re: [hackers] [dmenu] import new drw from libsl and minor fixes.

2016-06-03 Thread Hiltjo Posthuma
On Fri, Jun 03, 2016 at 07:42:37PM +0200, Markus Teich wrote: > Hiltjo Posthuma wrote: > > Your patch fixes the slowness for me, but we need to think of a more > > accurate > > but faster way indeed. > > Heyho, > > I plan to clean up the drw_text function some time in the future. I think it >

Re: [hackers] [dmenu] import new drw from libsl and minor fixes.

2016-06-03 Thread Markus Teich
Hiltjo Posthuma wrote: > Your patch fixes the slowness for me, but we need to think of a more accurate > but faster way indeed. Heyho, I plan to clean up the drw_text function some time in the future. I think it is possible to split the string into chunks which are drawn by the same font

Re: [hackers] [dmenu] import new drw from libsl and minor fixes.

2016-06-03 Thread Hiltjo Posthuma
On Fri, Jun 03, 2016 at 06:55:36PM +0200, Markus Teich wrote: > Hiltjo Posthuma wrote: > > I noticed a regression, dmenu seems really slow to load on my machine in the > > function readstdin(). Was the font cache behaviour removed from drw? > > Heyho, > Heya!, > that is probably because of the

Re: [hackers] [dwm] [PATCH] Replace str[n]cpy with strlcpy

2016-06-03 Thread Hiltjo Posthuma
On Thu, Jun 02, 2016 at 09:57:01PM +0200, FRIGN wrote: > Hello fellow hackers, > > I'll drop this little patch here so we finally make the switch to the > safe OpenBSD-functions for string copying. A good compromise might be using snprintf(buf, sizeof(buf), "%s", text) this is standard and

Re: [hackers] [dmenu] import new drw from libsl and minor fixes.

2016-06-03 Thread Markus Teich
Hiltjo Posthuma wrote: > I noticed a regression, dmenu seems really slow to load on my machine in the > function readstdin(). Was the font cache behaviour removed from drw? Heyho, that is probably because of the second change noted from readstdin(): > > - fix bug where inputw was not correctly

Re: [hackers] [dmenu] import new drw from libsl and minor fixes.

2016-06-03 Thread Hiltjo Posthuma
On Sun, May 22, 2016 at 10:34:30PM +0200, Markus Teich wrote: > - extract drawitem function (code deduplication) > - fix bug where inputw was not correctly calculated from the widest item, but > just from the one with the longest strlen() which is not the same. > - minor code style fixes

[hackers] [scc] [driver] write files to PWD instead of source directory || Quentin Rameau

2016-06-03 Thread git
commit 3cc47a8255956803a30439bb661d42d2f32bebad Author: Quentin Rameau AuthorDate: Fri Jun 3 16:54:10 2016 +0200 Commit: Quentin Rameau CommitDate: Fri Jun 3 18:10:23 2016 +0200 [driver] write files to PWD instead of source directory diff --git

[hackers] [scc] [cc2] fix calculation of array sizes || Quentin Rameau

2016-06-03 Thread git
commit 83046300025c0f7afc5a0635480a523410030fa0 Author: Quentin Rameau AuthorDate: Fri Jun 3 15:26:20 2016 +0200 Commit: Quentin Rameau CommitDate: Fri Jun 3 18:10:21 2016 +0200 [cc2] fix calculation of array sizes cc1 emits the number

[hackers] [scc] [cc1] adjust basename in tool name invocation check || Quentin Rameau

2016-06-03 Thread git
commit ba49f4826cbff550e63908fb67b144a7e56f1262 Author: Quentin Rameau AuthorDate: Fri Jun 3 15:40:41 2016 +0200 Commit: Quentin Rameau CommitDate: Fri Jun 3 18:10:23 2016 +0200 [cc1] adjust basename in tool name invocation check diff --git

Re: [hackers] [dwm] [PATCH] Replace str[n]cpy with strlcpy

2016-06-03 Thread k0ga
>> I'll drop this little patch here so we finally make the switch to the safe safe?. You are not checking any of the return codes. You are only moving the problem from some place to another place. Please add checks and stop using non portable functions. I don't want your shit, thanks. Regards,

Re: [hackers] [dwm] [PATCH] Replace str[n]cpy with strlcpy

2016-06-03 Thread Markus Teich
FRIGN wrote: > I'll drop this little patch here so we finally make the switch to the safe > OpenBSD-functions for string copying. Heyho, please don't forget the drw unification patches from two weeks ago, when merging this. Hiltjo seems to be busy right now and I don't know if anyone else but

[hackers] [surf] Check $HOME and home dir of $USER before getpwuid()->pw_dir || Dmitry Bogatov

2016-06-03 Thread git
commit 1308872b8bd7a2516d0626955abe391af076e711 Author: Dmitry Bogatov AuthorDate: Sun May 29 11:56:51 2016 +0200 Commit: Christoph Lohmann <2...@r-36.net> CommitDate: Fri Jun 3 15:09:08 2016 +0200 Check $HOME and home dir of $USER before getpwuid()->pw_dir

[hackers] [surf] Fixing the last patch to the surf style. || Christoph Lohmann

2016-06-03 Thread git
commit 31ec0fb93d84e7d9f324340de790076e78911b11 Author: Christoph Lohmann <2...@r-36.net> AuthorDate: Fri Jun 3 15:14:53 2016 +0200 Commit: Christoph Lohmann <2...@r-36.net> CommitDate: Fri Jun 3 15:14:53 2016 +0200 Fixing the last patch to the surf style. diff --git a/surf.c

[hackers] [st] delete clipboard properties after pasting them || v4hn

2016-06-03 Thread git
commit 60aeb37edb8c5280d31b6b3c801d09c7a5fdca76 Author: v4hn AuthorDate: Thu May 19 12:16:57 2016 +0200 Commit: Christoph Lohmann <2...@r-36.net> CommitDate: Fri Jun 3 14:55:25 2016 +0200 delete clipboard properties after pasting them

[hackers] [st] Use XftFontMatch in place of FcFontMatch. || Christoph Lohmann

2016-06-03 Thread git
commit 528241aa3835e2f1f052abeeaf891737712955a0 Author: Christoph Lohmann <2...@r-36.net> AuthorDate: Fri Jun 3 15:02:32 2016 +0200 Commit: Christoph Lohmann <2...@r-36.net> CommitDate: Fri Jun 3 15:02:32 2016 +0200 Use XftFontMatch in place of FcFontMatch. git am -s didn't

[hackers] [scc] [cc2-qbe] Allocate stack space only for automatic variables || Roberto E. Vargas Caballero

2016-06-03 Thread git
commit 51d7f27d9dbda8d2dad833f985a6ef28bee4a939 Author: Roberto E. Vargas Caballero AuthorDate: Fri Jun 3 12:54:37 2016 +0200 Commit: Roberto E. Vargas Caballero CommitDate: Fri Jun 3 12:54:37 2016 +0200 [cc2-qbe] Allocate stack space only for

[hackers] [scc] [cc2-qbe] Convert register variables into automatic variables || Roberto E. Vargas Caballero

2016-06-03 Thread git
commit 88ae3bed3e7c06774ab9a9a98db4a71534fea594 Author: Roberto E. Vargas Caballero AuthorDate: Fri Jun 3 12:53:51 2016 +0200 Commit: Roberto E. Vargas Caballero CommitDate: Fri Jun 3 12:53:51 2016 +0200 [cc2-qbe] Convert register variables into

[hackers] [scc] [driver] add support for scc ir file as input || Quentin Rameau

2016-06-03 Thread git
commit b9fa54e11407e73ac2cafbd6309970dc475daf20 Author: Quentin Rameau AuthorDate: Fri Jun 3 12:51:41 2016 +0200 Commit: Quentin Rameau CommitDate: Fri Jun 3 12:51:41 2016 +0200 [driver] add support for scc ir file as input diff --git

[hackers] [scc] [cc2] fix qbe call instruction parameters generation || Quentin Rameau

2016-06-03 Thread git
commit 56d9408bb233d616ae03ccd4d3da3e0fe8e5220e Author: Quentin Rameau AuthorDate: Fri Jun 3 12:47:56 2016 +0200 Commit: Quentin Rameau CommitDate: Fri Jun 3 12:47:56 2016 +0200 [cc2] fix qbe call instruction parameters generation qbe

[hackers] [scc] [driver] add support for building from intermediary files || Quentin Rameau

2016-06-03 Thread git
commit e353903fa9ba4bbd405ca46c6ac651c8c8fb3cc2 Author: Quentin Rameau AuthorDate: Fri Jun 3 01:00:00 2016 +0200 Commit: Quentin Rameau CommitDate: Fri Jun 3 01:10:26 2016 +0200 [driver] add support for building from intermediary files diff

[hackers] [scc] [cc2] add support for reading from filename argument || Quentin Rameau

2016-06-03 Thread git
commit dd21e6a1c3601821e00992066fd65b5fe24c0e3f Author: Quentin Rameau AuthorDate: Fri Jun 3 10:55:50 2016 +0200 Commit: Quentin Rameau CommitDate: Fri Jun 3 11:00:51 2016 +0200 [cc2] add support for reading from filename argument diff --git