feisty meow concerns codebase  2.140
checker.cpp File Reference
#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>
Include dependency graph for checker.cpp:

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
 

Macro Definition Documentation

◆ HIGHEST_CHECK

#define HIGHEST_CHECK   32714

Definition at line 65 of file checker.cpp.

◆ LOG

#define LOG (   to_print)    program_wide_logger::get().log(to_print, ALWAYS_PRINT)

Definition at line 43 of file checker.cpp.

Function Documentation

◆ do_checksum()

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().

◆ do_fletcher_checksum()

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().

◆ main()

◆ print_instructions()

int print_instructions ( bool  good,
const astring program_name 
)

Definition at line 45 of file checker.cpp.

References basis::astring::s().

Referenced by main().

Variable Documentation

◆ buffer_size

const int buffer_size = 4096