OSDN Git Service

設定変更。
[wordring-tm/wordring-tm.git] / third_party / tidy-html5-master / src / sprtf.h
1 /*
2  *  SPRTF - Log output utility
3  *
4  *   Author: Geoff R. McLane <reports _at_ geoffair _dot_ info>
5  *   License: GPL v2 (or later at your choice)
6  *
7  *   Revision 1.0.1  2012/11/06 13:01:25  geoff
8  *   Revision 1.0.0  2012/10/17 00:00:00  geoff
9  *
10  *   This program is free software; you can redistribute it and/or
11  *   modify it under the terms of the GNU General Public License as
12  *   published by the Free Software Foundation; either version 2 of the
13  *   License, or (at your option) any later version.
14  *
15  *   This program is distributed in the hope that it will be useful, but
16  *   WITHOUT ANY WARRANTY; without even the implied warranty of
17  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  *   General Public License for more details.
19  *
20  *   You should have received a copy of the GNU General Public License
21  *   along with this program; if not, write to the Free Software
22  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, US
23  *
24  */
25
26 // Module: sprtf.hxx
27 // Debug log file output
28 #ifndef _SPRTF_HXX_
29 #define _SPRTF_HXX_
30 #include "platform.h"
31
32 #ifdef   __cplusplus
33 extern "C" {
34 #endif
35 #ifdef _MSC_VER
36 #define MCDECL _cdecl
37 #else
38 #define MCDECL
39 #endif
40
41 TIDY_EXPORT int add_std_out( int val );
42 TIDY_EXPORT int add_sys_time( int val );
43 TIDY_EXPORT int add_sys_date( int val );
44
45 TIDY_EXPORT int add_screen_out( int val );
46 TIDY_EXPORT int add_list_out( int val );
47 TIDY_EXPORT int add_append_log( int val );
48
49 TIDY_EXPORT int open_log_file( void );
50 TIDY_EXPORT void close_log_file( void );
51 TIDY_EXPORT void set_log_file( char * nf, int open );
52 TIDY_EXPORT char * get_log_file( void );
53
54 TIDY_EXPORT int MCDECL sprtf( const char *pf, ... );
55 #define M_MAX_SPRTF 2048
56 TIDY_EXPORT int direct_out_it( char *cp );
57
58 TIDY_EXPORT char *GetNxtBuf();
59
60 #define EndBuf(a)   ( a + strlen(a) )
61
62 TIDY_EXPORT char *get_date_stg();
63 TIDY_EXPORT char *get_time_stg();
64 TIDY_EXPORT char *get_date_time_stg();
65 #ifdef _MSC_VER
66 TIDY_EXPORT int gettimeofday(struct timeval *tp, void *tzp);
67 #endif
68
69 #ifndef SPRTF
70 #define SPRTF sprtf
71 #endif
72
73 #ifdef   __cplusplus
74 }
75 #endif
76 #endif // #ifndef _SPRTF_HXX_
77 // oef - sprtf.hxx