ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 3c8bc6422760862d261fd46eefaf24dfed5d2a5f
parent 7dd5433b1435db858ba7083204f29d1e6695fef8
Author: Brian Cassidy <bricas@cpan.org>
Date:   Sun,  1 Jan 2012 11:46:37 -0400

stdbool it is!

Diffstat:
Mansilove/main.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ansilove/main.c b/ansilove/main.c @@ -18,6 +18,7 @@ #else #include <stdio.h> #include <stdlib.h> +#include <stdbool.h> #include "alconfig.h" #include "strtolower.h" #include "substr.h" @@ -109,11 +110,11 @@ int main(int argc, char *argv[]) } // indicates whether AnsiLove/C should just display SAUCE or not - int justDisplaySAUCE = 0; + bool justDisplaySAUCE = false; // in case the SAUCE flag is set we set our bool type to 'true' if (strcmp(argv[2], "-r") == 0) { - justDisplaySAUCE = 1; + justDisplaySAUCE = true; } // let's check the file for a valid SAUCE record @@ -126,7 +127,7 @@ int main(int argc, char *argv[]) } // this should be self-explanatory - if (justDisplaySAUCE == 0) + if (justDisplaySAUCE == false) { // declaration of types we pass to ansilove.c char *input = argv[1]; @@ -293,7 +294,7 @@ int main(int argc, char *argv[]) } } - if (justDisplaySAUCE == 0) { + if (justDisplaySAUCE == false) { printf("\nSuccessfully created output file.\n\n"); } else {