Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-26 Thread FRIGN
On Fri, 26 Dec 2014 11:42:32 +0100 Markus Wichmann wrote: Hey Markus, > I'm talking about stuff like musl: I don't want to know that qsort() is > defined in src/stdlib/sort.c. I just want to see the function. And if > you're used to getting that in an instant, manually navigating it is > just te

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-26 Thread Markus Wichmann
On Fri, Dec 26, 2014 at 10:24:27AM +0100, FRIGN wrote: > no matter how big the codebase is, in my opinion, if you need tools like > that there's something wrong with the code. And I've worked with really > big codebases (good and bad) in my time. I'm talking about stuff like musl: I don't want to

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-26 Thread FRIGN
On Fri, 26 Dec 2014 10:24:27 +0100 FRIGN wrote: (...) > Modularity in general is what C is about and there's no reason NOT to have > a very complex problem separated into several smaller problems instead > of writing one single big monolith you need ctags for to navigate. sorry, forgot a word t

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-26 Thread FRIGN
On Fri, 26 Dec 2014 09:59:02 +0100 Markus Wichmann wrote: Hey Markus, > ctags tells me the place where all the functions are defined. It also > tells me where all the defines are and where all the structure members > are. It tells me the location of the tag types and the typedefs and so > on. Al

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-26 Thread Markus Wichmann
On Thu, Dec 25, 2014 at 04:02:35PM +0100, k...@shike2.com wrote: > I don't use ctags. It's simple, if you use the correct code style you don't > need aditional tools. > ctags tells me the place where all the functions are defined. It also tells me where all the defines are and where all the struc

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-25 Thread k0ga
> Who here doesn't use ctags or similar? Because using navigation > techniques that only work if not technically enforced style guidelines > are followed is not really helpful to people who read and write code in > many different projects. I don't use ctags. It's simple, if you use the correct co

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-24 Thread FRIGN
On Wed, 24 Dec 2014 09:27:02 +0100 Markus Wichmann wrote: > Basing style guidelines on navigation techniques strikes me as odd. > Style is only there to ease reading and understanding of the code. Yup, I agree with you there. The ^Ifun is just ridiculous. The only really good way I know is using

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-24 Thread Markus Wichmann
On Tue, Dec 23, 2014 at 08:42:18AM -0700, Anthony J. Bentley wrote: > The point of this rule is not visual alignment. Width of the type doesn't > matter; it is always one tab. The advantage is that you can find the > declaration of member foo by grepping for ^Ifoo. > > Similarly, the "function nam

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Greg Reagle
On Tue, Dec 23, 2014, at 10:42 AM, Anthony J. Bentley wrote: > The point of this rule is not visual alignment. Width of the type doesn't > matter; it is always one tab. The advantage is that you can find the > declaration of member foo by grepping for ^Ifoo. That violates the suckless style guide

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Anthony J. Bentley
Dimitris Papastamos writes: > On Tue, Dec 23, 2014 at 04:11:16PM +0100, k...@shike2.com wrote: > > > > >> The style(9)-changes were absolutely necessary and it's better to do thi > s > > >> as early as possible instead of waiting and waiting until it's too late > > >> and you have a really big num

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Dimitris Papastamos
On Tue, Dec 23, 2014 at 04:11:16PM +0100, k...@shike2.com wrote: > > >> The style(9)-changes were absolutely necessary and it's better to do this > >> as early as possible instead of waiting and waiting until it's too late > >> and you have a really big number of patches for a given program. > >

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread k0ga
>> The style(9)-changes were absolutely necessary and it's better to do this >> as early as possible instead of waiting and waiting until it's too late >> and you have a really big number of patches for a given program. > > The thing I dislike most about the style changes is the alignment of > va

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Eric Pruitt
On Tue, Dec 23, 2014 at 10:28:40AM +0100, FRIGN wrote: > I hope you saw these patches are for dmenu, not dwm. However, your > arguments still apply because there is a small set of patches for dmenu. Ah, you're right. I _did_ think this was for dwm; my mistake. > Still, for the sake of preserving

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Anselm R Garbe
On 23 December 2014 at 10:34, FRIGN wrote: > On Tue, 23 Dec 2014 10:28:36 +0100 > Anselm R Garbe wrote: > >> @FRIGN: I'm considering to apply your patches, with the exception >> outlined of patch 4 line 41-70. > > I'm okay with that. ;) > Do you want me to send you an updated patch 4 or are you a

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread FRIGN
On Tue, 23 Dec 2014 10:28:36 +0100 Anselm R Garbe wrote: Hey Anselm, > @FRIGN: I'm considering to apply your patches, with the exception > outlined of patch 4 line 41-70. I'm okay with that. ;) Do you want me to send you an updated patch 4 or are you able to manually merge them into the codebas

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Anselm R Garbe
On 23 December 2014 at 01:10, Eric Pruitt wrote: > On Mon, Dec 22, 2014 at 06:40:59PM +0100, FRIGN wrote: >> PATCH 4: As already discussed style(9) is the reference for future code >> changes. Given the codebase hasn't already been transformed, I >> did it. > > Although I think s

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread FRIGN
On Mon, 22 Dec 2014 16:10:05 -0800 Eric Pruitt wrote: Hey Eric, > Although I think sticking to a specific style going forward is > reasonable (even if I'm not fond of all of the recommendations of > style(9)), I don't think refactoring the existing dwm codebase purely > for style is a good idea.

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-22 Thread Eric Pruitt
On Mon, Dec 22, 2014 at 06:40:59PM +0100, FRIGN wrote: > PATCH 4: As already discussed style(9) is the reference for future code > changes. Given the codebase hasn't already been transformed, I > did it. Although I think sticking to a specific style going forward is reasonable (e

[dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-22 Thread FRIGN
Good evening, I sat down this afternoon to read through the dmenu-code and noticed some things that I fixed with attached patches. PATCH 1: Use estrtol instead of atoi to make input-checks more thorough PATCH 2: Un-boolify according to what I already did in some other repos PATCH 3: config.def.h