Re: [dev] dmenu segfaults when pressing control+enter without a selection

From: Louis Santillan <>
Date: Mon, 9 Nov 2015 20:37:14 -0800

On Mon, Nov 9, 2015 at 8:08 PM, Pickfire <> wrote:
> I am not very sure why people use int instead of booleans in C.
> I think stylistic code changes can make it easier to maintain on the
> early stages.

It used to be, before C99 (and newer) became as prevalent as they are
today, to portably use bools, you might include code like

#ifndef __bool_true_false_are_defined
   #ifdef _Bool
      #define bool _Bool
      #define bool char
   #define true 1
   #define false 0
   #define __bool_true_false_are_defined 1

Nowadays, including stdbool is the way to go.
Received on Tue Nov 10 2015 - 05:37:14 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 10 2015 - 05:48:09 CET