HTML Tidy  5.8.0
The HTACG Tidy HTML Project
fileio.h
Go to the documentation of this file.
1 #ifndef __FILEIO_H__
2 #define __FILEIO_H__
3 
4 /** @file fileio.h - does standard C I/O
5 
6  Implementation of a FILE* based TidyInputSource and
7  TidyOutputSink.
8 
9  (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
10  See tidy.h for the copyright notice.
11 
12 */
13 
14 #include "tidybuffio.h"
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /** Allocate and initialize file input source */
20 TY_PRIVATE int TY_(initFileSource)( TidyAllocator *allocator, TidyInputSource* source, FILE* fp );
21 
22 /** Free file input source */
23 TY_PRIVATE void TY_(freeFileSource)( TidyInputSource* source, Bool closeIt );
24 
25 #if SUPPORT_POSIX_MAPPED_FILES
26 /** Allocate and initialize file input source using Standard C I/O */
27 TY_PRIVATE int TY_(initStdIOFileSource)( TidyAllocator *allocator, TidyInputSource* source, FILE* fp );
28 
29 /** Free file input source using Standard C I/O */
30 TY_PRIVATE void TY_(freeStdIOFileSource)( TidyInputSource* source, Bool closeIt );
31 #endif
32 
33 /** Initialize file output sink */
34 TY_PRIVATE void TY_(initFileSink)( TidyOutputSink* sink, FILE* fp );
35 
36 /* Needed for internal declarations */
37 TY_PRIVATE void TIDY_CALL TY_(filesink_putByte)( void* sinkData, byte bv );
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 #endif /* __FILEIO_H__ */
#define TY_PRIVATE
Definition: forward.h:29
#define TY_(str)
Definition: forward.h:23
This type defines an input source capable of delivering raw bytes of input.
Definition: tidy.h:1079
This type defines an output destination capable of accepting raw bytes of output.
Definition: tidy.h:1129
Treat buffer as a stream that Tidy can use for I/O operations.
Bool
Definition: tidyplatform.h:647
#define TIDY_CALL
Definition: tidyplatform.h:615