Un-boolify sbase

It actually makes the binaries smaller, the code easier to read
(gems like "val == true", "val == false" are gone) and actually
predictable in the sense of that we actually know what we're
working with (one bitwise operator was quite adventurous and
should now be fixed).

This is also more consistent with the other suckless projects
around which don't use boolean types.
This commit is contained in:
FRIGN
2014-11-13 21:24:47 +01:00
committed by sin
parent 7d2683ddf2
commit ec8246bbc6
41 changed files with 215 additions and 257 deletions

18
fs.h
View File

@@ -1,16 +1,14 @@
/* See LICENSE file for copyright and license details. */
#include <stdbool.h>
extern bool cp_aflag;
extern bool cp_dflag;
extern bool cp_fflag;
extern bool cp_pflag;
extern bool cp_rflag;
extern bool cp_vflag;
extern int cp_aflag;
extern int cp_dflag;
extern int cp_fflag;
extern int cp_pflag;
extern int cp_rflag;
extern int cp_vflag;
extern int cp_status;
extern bool rm_fflag;
extern bool rm_rflag;
extern int rm_fflag;
extern int rm_rflag;
int cp(const char *, const char *);
void rm(const char *);