HTML Tidy
0.1
|
00001 #ifndef __FILEIO_H__ 00002 #define __FILEIO_H__ 00003 00004 /** @file fileio.h - does standard C I/O 00005 00006 Implementation of a FILE* based TidyInputSource and 00007 TidyOutputSink. 00008 00009 (c) 1998-2006 (W3C) MIT, ERCIM, Keio University 00010 See tidy.h for the copyright notice. 00011 00012 CVS Info: 00013 $Author: arnaud02 $ 00014 $Date: 2007/01/14 13:52:13 $ 00015 $Revision: 1.7 $ 00016 */ 00017 00018 #include "buffio.h" 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 /** Allocate and initialize file input source */ 00024 int TY_(initFileSource)( TidyAllocator *allocator, TidyInputSource* source, FILE* fp ); 00025 00026 /** Free file input source */ 00027 void TY_(freeFileSource)( TidyInputSource* source, Bool closeIt ); 00028 00029 #if SUPPORT_POSIX_MAPPED_FILES 00030 /** Allocate and initialize file input source using Standard C I/O */ 00031 int TY_(initStdIOFileSource)( TidyAllocator *allocator, TidyInputSource* source, FILE* fp ); 00032 00033 /** Free file input source using Standard C I/O */ 00034 void TY_(freeStdIOFileSource)( TidyInputSource* source, Bool closeIt ); 00035 #endif 00036 00037 /** Initialize file output sink */ 00038 void TY_(initFileSink)( TidyOutputSink* sink, FILE* fp ); 00039 00040 /* Needed for internal declarations */ 00041 void TIDY_CALL TY_(filesink_putByte)( void* sinkData, byte bv ); 00042 00043 #ifdef __cplusplus 00044 } 00045 #endif 00046 #endif /* __FILEIO_H__ */