WWWUtil.h
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:4k
源码类别:

浏览器

开发平台:

Unix_Linux

  1. /*                                             Declaration of W3C Reference Library UTILITIES
  2.                       DECLARATION OF W3C REFERENCE LIBRARY UTILITIES
  3.                                              
  4.  */
  5. /*
  6. **      (c) COPYRIGHT MIT 1995.
  7. **      Please first read the full copyright statement in the file COPYRIGH.
  8. */
  9. /*
  10.    The Utility modules are mostly container modules, dynamic strings and otherstuff that
  11.    you can't live without when building applications. The modules are used by the core
  12.    part of the W3C Reference Library but can also be used by the application. See also the
  13.    main Library include file called WWWLib.h which contains all converters and protocol
  14.    modules known to the Library. You can include this one if the application is to use all
  15.    the functionality of the Library.
  16.    
  17.  */
  18. #ifndef WWWUTIL_H
  19. #define WWWUTIL_H
  20. /*
  21. System dependencies
  22.    The tcp.h file includes system-specific include files and flags for I/O to network and
  23.    disk. The only reason for this file is that the Internet world is more complicated than
  24.    Posix and ANSI.
  25.    
  26.  */
  27. #include "tcp.h"
  28. /*
  29. Library Includes
  30.  */
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. /*
  35.   BASIC MACROS ETC
  36.   
  37.    This module includes file contains things we need everywhere, generally macros for
  38.    declarations, booleans, etc.
  39.    
  40.  */
  41. #include "HTUtils.h"
  42. /*
  43.   DYNAMIC ARRAYS
  44.   
  45.    This module implements a flexible array of pointers. It is a general utility module.
  46.    An array is a structure which may be extended.  These routines create and append data
  47.    to arrays, automatically reallocating them as necessary.  It is garanteed that the last
  48.    entry in an array is NULL
  49.    
  50.  */
  51. #include "HTArray.h"
  52. /*
  53.   ASSOCIATION LISTS
  54.   
  55.    This is a small module build on top of the HTList module that provides a way to store
  56.    Name-Value pairs in an easy way.
  57.    
  58.  */
  59. #include "HTAssoc.h"
  60. /*
  61.   ATOMS
  62.   
  63.    Atoms are strings which are given representative pointer values so that they can be
  64.    stored more efficiently, and comparisons for equality done more efficiently. The
  65.    pointer values are in fact entries into a hash table.
  66.    
  67.  */
  68. #include "HTAtom.h"
  69. /*
  70.   DYNAMIC STRINGS
  71.   
  72.    A Chunk is a block wise expandable array of type (char *) and is a sort of apology for
  73.    real strings in C. Chunks make it easier to handle dynamic strings of unknown size. It
  74.    is often faster than using the String Copy Routines.
  75.    
  76.  */
  77. #include "HTChunk.h"
  78. /*
  79.   LINKED LISTS
  80.   
  81.    This module provides the functionality for managing a generic list of data objects. The
  82.    module is implemented as a single linked list using the scheme first in - last out
  83.    (FILO).
  84.    
  85.  */
  86. #include "HTList.h"
  87. /*
  88.   DYMAMIC MEMORY MANAGEMENT
  89.   
  90.    This module implements a dynamic memory API that is used throughout the Library. The
  91.    API covers three types of functionality:
  92.    
  93.       Handling of allocation and deallocation of dynamic memory
  94.       
  95.       Recovering from temporary lack of available memory
  96.       
  97.       Panic handling in case a new allocation fails
  98.       
  99.  */
  100. #include "HTMemory.h"
  101. /*
  102.   STRING UTILITIES
  103.   
  104.    Routines for dynamic arrays of characters include string copy, case insensitive
  105.    comparison etc.
  106.    
  107.  */
  108. #include "HTString.h"
  109. /*
  110.   UU ENCODE AND DECODE
  111.   
  112.    File module provides functions functions for uuencode and decode strings which convert
  113.    a buffer of bytes to/from RFC 1113 printable encoding format. This technique is similar
  114.    to the familiar Unix uuencode format in that it maps 6 binary bits to one ASCII
  115.    character (or more aptly, 3 binary bytes to 4 ASCII characters).  However, RFC 1113
  116.    does not use the same mapping to printable characters as uuencode.
  117.    
  118.  */
  119. #include "HTUU.h"
  120. /*
  121.    End of utility modules
  122.    
  123.  */
  124. #ifdef __cplusplus
  125. } /* end extern C definitions */
  126. #endif
  127. #endif
  128. /*
  129.    End of WWWUtil.h declaration  */