Annotation of libwww/Library/src/HTHInit.c, revision 2.1
2.1 ! frystyk 1: /*
! 2: ** CONFIGURATION-SPECIFIC INITIALIALIZATION FOR HTML PARSER
! 3: **
! 4: ** (c) COPYRIGHT MIT 1995.
! 5: ** Please first read the full copyright statement in the file COPYRIGH.
! 6: ** @(#) $Id: HTInit.c,v 2.58 1996/06/04 14:16:45 eric Exp $
! 7: **
! 8: ** Set up the HTML parsers in libwww
! 9: */
! 10:
! 11: /* Library include files */
! 12: #include "sysdep.h"
! 13: #include "WWWUtil.h"
! 14: #include "HTFormat.h"
! 15: #include "HTList.h"
! 16: #include "HTHInit.h" /* Implemented here */
! 17:
! 18: /* ------------------------------------------------------------------------- */
! 19:
! 20: /* BINDINGS BETWEEN A SOURCE MEDIA TYPE AND A DEST MEDIA TYPE (CONVERSION)
! 21: ** ----------------------------------------------------------------------
! 22: ** Not done automaticly - may be done by application!
! 23: */
! 24: PUBLIC void HTMLInit (HTList * c)
! 25: {
! 26: /*
! 27: ** This set of converters uses the HTML/HText interface.
! 28: ** If you do not want this interface then replace them!
! 29: */
! 30: HTConversion_add(c,"text/html", "www/present", HTMLPresent, 1.0, 0.0, 0.0);
! 31: HTConversion_add(c,"text/plain", "www/present", HTPlainPresent, 1.0, 0.0, 0.0);
! 32: HTConversion_add(c,"text/html", "text/x-c", HTMLToC, 0.5, 0.0, 0.0);
! 33: HTConversion_add(c,"text/html", "text/plain", HTMLToPlain, 0.5, 0.0, 0.0);
! 34: HTConversion_add(c,"text/html", "text/latex", HTMLToTeX, 1.0, 0.0, 0.0);
! 35: }
Webmaster