X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fprint.h;h=990e4df3694904bacca19294b70a92728b029cd1;hb=HEAD;hp=586c708ddbcc97cf1a93c1733c74b8a2fc8d85c6;hpb=5a5488ecca0d7a5b5b03880fcb90cccd197fe9c9;p=c128-kasse diff --git a/include/print.h b/include/print.h index 586c708..990e4df 100644 --- a/include/print.h +++ b/include/print.h @@ -1,19 +1,22 @@ -#ifndef _PRINT_H -#define _PRINT_H +#ifndef PRINT_H +#define PRINT_H -void print_the_buffer(); -void print_header(); +void init_log(void); +void print_the_buffer(void); +void print_header(void); void log_file(const char *s); +void log_flush(void); -#ifdef _IS_PRINT +#ifdef IS_PRINT_C char print_buffer[80 + 2 + 1]; unsigned char log_num = 0; -int log_lines_written = 0; #else extern char print_buffer[80 + 2 + 1]; extern unsigned char log_num; -extern int log_lines_written; - +extern char *log_heap_buf; +extern int log_heap_offset; +extern int log_heap_flushed; +extern const int LOG_SIZE; #endif #endif