HTML Tidy  5.7.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 int TY_(initFileSource)( TidyAllocator *allocator, TidyInputSource* source, FILE* fp );
21 
22 /** Free file input source */
23 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 int TY_(initStdIOFileSource)( TidyAllocator *allocator, TidyInputSource* source, FILE* fp );
28 
29 /** Free file input source using Standard C I/O */
30 void TY_(freeStdIOFileSource)( TidyInputSource* source, Bool closeIt );
31 #endif
32 
33 /** Initialize file output sink */
34 void TY_(initFileSink)( TidyOutputSink* sink, FILE* fp );
35 
36 /* Needed for internal declarations */
37 void TIDY_CALL TY_(filesink_putByte)( void* sinkData, byte bv );
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 #endif /* __FILEIO_H__ */
#define TIDY_CALL
Definition: tidyplatform.h:600
Treat buffer as a stream that Tidy can use for I/O operations.
unsigned char byte
Definition: tidyplatform.h:588
This type defines an input source capable of delivering raw bytes of input.
Definition: tidy.h:1078
Bool
Definition: tidyplatform.h:631
This type defines an output destination capable of accepting raw bytes of output. ...
Definition: tidy.h:1128
#define TY_(str)
Definition: forward.h:23