Re: [dev] C variants, compilers and completeness

2023-08-18 Thread Страхиња Радић
On 23/08/18 02:18, David Demelier wrote:
> On Mon, 2023-07-24 at 17:38 +0200, Sagar Acharya wrote:
> > I see C compilers recommended by suckless are:
> > 
> > tinycc
> > simplecc
> > cproc
> > qbe
> > lacc
> 
> qbe isn't a compiler. however cproc is promising but I had various
> issues compiling some apps, can't use it as my daily for now.

I haven't checked recently, but the most noticeable missing feature of cproc, 
as well as some other compilers, were VLAs. When someone writes the support for 
VLAs, cproc & co. will become much more usable.

The simpler compilers generally work for smaller projects, but for many 
existing packages, for now there is no real alternative to GCC and Clang/LLVM.


signature.asc
Description: PGP signature


Re: [dev] C variants, compilers and completeness

2023-08-18 Thread David Demelier
On Mon, 2023-07-24 at 17:38 +0200, Sagar Acharya wrote:
> I see C compilers recommended by suckless are:
> 
> tinycc
> simplecc
> cproc
> qbe
> lacc

qbe isn't a compiler. however cproc is promising but I had various
issues compiling some apps, can't use it as my daily for now.

-- 
David



Re: [dev] Announcing a couple small X11 utilities

2023-08-18 Thread lumidify
On Thu, Aug 17, 2023 at 11:08:58PM +0200, Max Schillinger wrote:
> -CROP_CFLAGS = ${CFLAGS} ${DB_CFLAGS} -Wall -Wextra -D_POSIX_C_SOURCE=200809L 
> `pkg-config --cflags x11` `imlib2-config --cflags`
> -CROP_LDFLAGS = ${LDFLAGS} ${DB_LDFLAGS} `pkg-config --libs x11` 
> `imlib2-config --libs` -lm
> +CROP_CFLAGS = ${CFLAGS} ${DB_CFLAGS} -Wall -Wextra -D_POSIX_C_SOURCE=200809L 
> `pkg-config --cflags x11` `pkg-config --cflags --libs imlib2`
> +CROP_LDFLAGS = ${LDFLAGS} ${DB_LDFLAGS} `pkg-config --libs x11` `pkg-config 
> --cflags --libs imlib2` -lm

Thanks, I hadn't noticed this because I'm currently on a system that
still includes imlib2-config. I replaced it with pkg-config now
since that also works on my system. I added a note in case there are
any old systems around still that don't have pkg-config files for
imlib2 yet.

> And it wasn't obvious to me that I have to exit croptool via dwm to get 
> some output. It would be nice if it supported a common shortcut like 
> Ctrl-q to quit.

I added 'q' to exit now, like feh and sxiv. If I ever get around to it, I
might make it easier to configure that like in dwm. For now, you need to
look at the function 'key_press' at the bottom of croptool.c if you want
to modify any of the key bindings.

Thanks for the feedback!

-- 
lumidify