feisty meow concerns codebase
2.140
|
#include <application/command_line.h>
#include <basis/functions.h>
#include <basis/astring.h>
#include <loggers/program_wide_logger.h>
#include <structures/checksums.h>
#include <structures/static_memory_gremlin.h>
#include <timely/time_stamp.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | LOG(to_print) program_wide_logger::get().log(to_print, ALWAYS_PRINT) |
#define | HIGHEST_CHECK 32714 |
Functions | |
int | print_instructions (bool good, const astring &program_name) |
int | do_checksum (const astring &file_name, int open_as_a_text_file) |
int | do_fletcher_checksum (const astring &file_name, int open_as_a_text_file) |
int | main (int argc, char *argv[]) |
Variables | |
const int | buffer_size = 4096 |
#define HIGHEST_CHECK 32714 |
Definition at line 65 of file checker.cpp.
#define LOG | ( | to_print | ) | program_wide_logger::get().log(to_print, ALWAYS_PRINT) |
Definition at line 43 of file checker.cpp.
int do_checksum | ( | const astring & | file_name, |
int | open_as_a_text_file | ||
) |
Definition at line 70 of file checker.cpp.
References buffer_size, HIGHEST_CHECK, LOG, and basis::astring::s().
Referenced by main().
int do_fletcher_checksum | ( | const astring & | file_name, |
int | open_as_a_text_file | ||
) |
Definition at line 109 of file checker.cpp.
References buffer_size, LOG, and basis::astring::s().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 145 of file checker.cpp.
References do_checksum(), do_fletcher_checksum(), application::command_line::entries(), application::command_line::find(), application::command_line::get(), print_instructions(), basis::astring::s(), application::command_parameter::text(), application::command_parameter::type(), and application::command_parameter::VALUE.
int print_instructions | ( | bool | good, |
const astring & | program_name | ||
) |
const int buffer_size = 4096 |
Definition at line 37 of file checker.cpp.
Referenced by do_checksum(), do_fletcher_checksum(), and configuration::ini_configurator::get_section().