specify booleans

This commit is contained in:
Connor Olding 2015-04-11 10:53:07 -07:00
parent a83a836007
commit 4524ecba1a

10
main.c
View File

@ -5,6 +5,8 @@
#include "crc32.c" #include "crc32.c"
#include "args.c" #include "args.c"
typedef int bool;
#ifndef BUFFER_SIZE #ifndef BUFFER_SIZE
#define BUFFER_SIZE 4096 #define BUFFER_SIZE 4096
#endif #endif
@ -19,11 +21,11 @@ struct string_node_s {
static string_node *input_node = NULL; static string_node *input_node = NULL;
static uint32_t starting = 0xFFFFFFFF; static uint32_t starting = 0xFFFFFFFF;
static char big_endian = 0; static bool big_endian = 0;
static uint32_t polynomial = 0x04C11DB7; static uint32_t polynomial = 0x04C11DB7;
static char print_binary = 0; static bool print_binary = 0;
static char xor_output = 1; static bool xor_output = 1;
static char reflect_output = 0; static bool reflect_output = 0;
static const char help1[] = "\ static const char help1[] = "\
crc32 - a 32-bit cyclic rendundancy check calculator\n\ crc32 - a 32-bit cyclic rendundancy check calculator\n\