HTML Tidy  5.4.0
The HTACG Tidy HTML Project
sprtf.h
Go to the documentation of this file.
1 /*
2  * SPRTF - Log output utility - part of the HTML Tidy project
3  *
4  * Author: Geoff R. McLane <reports _at_ geoffair _dot_ info>
5  * License: MIT (see tidy.h for the copyright notice)
6  *
7  * Revision 1.0.2 2017/02/12 17:06:02 geoff - correct license and coding style
8  * Revision 1.0.1 2012/11/06 13:01:25 geoff
9  * Revision 1.0.0 2012/10/17 00:00:00 geoff
10  *
11  */
12 
13 /* Module: sprtf.h */
14 /* Debug log file output */
15 #ifndef _SPRTF_HXX_
16 #define _SPRTF_HXX_
17 #include "tidyplatform.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 #ifdef _MSC_VER
23 #define MCDECL _cdecl
24 #else
25 #define MCDECL
26 #endif
27 
28 TIDY_EXPORT int add_std_out( int val );
29 TIDY_EXPORT int add_sys_time( int val );
30 TIDY_EXPORT int add_sys_date( int val );
31 
32 TIDY_EXPORT int add_screen_out( int val );
33 TIDY_EXPORT int add_list_out( int val );
34 TIDY_EXPORT int add_append_log( int val );
35 
36 TIDY_EXPORT int open_log_file( void );
37 TIDY_EXPORT void close_log_file( void );
38 TIDY_EXPORT void set_log_file( char * nf, int open );
39 TIDY_EXPORT char * get_log_file( void );
40 
41 TIDY_EXPORT int MCDECL sprtf( const char *pf, ... );
42 #define M_MAX_SPRTF 2048
43 TIDY_EXPORT int direct_out_it( char *cp );
44 
45 TIDY_EXPORT char *GetNxtBuf();
46 
47 #define EndBuf(a) ( a + strlen(a) )
48 
49 TIDY_EXPORT char *get_date_stg();
50 TIDY_EXPORT char *get_time_stg();
51 TIDY_EXPORT char *get_date_time_stg();
52 #ifdef _MSC_VER
53 TIDY_EXPORT int gettimeofday(struct timeval *tp, void *tzp);
54 #endif
55 
56 #ifndef SPRTF
57 #define SPRTF sprtf
58 #endif
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 #endif /* #ifndef _SPRTF_HXX_*/
64 /* eof - sprtf.h */
char * GetNxtBuf()
void set_log_file(char *nf, int open)
char * get_time_stg()
void close_log_file(void)
int add_append_log(int val)
int MCDECL sprtf(const char *pf,...)
char * get_date_time_stg()
int add_std_out(int val)
int add_list_out(int val)
int open_log_file(void)
int add_screen_out(int val)
char * get_log_file(void)
Platform specifics
char * get_date_stg()
#define MCDECL
Definition: sprtf.h:25
int direct_out_it(char *cp)
int add_sys_date(int val)
int add_sys_time(int val)