home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / dev / lang / sgmls / src / catalog.h < prev    next >
C/C++ Source or Header  |  1994-07-10  |  1KB  |  46 lines

  1. #ifndef CATALOG_H
  2. #define CATALOG_H 1
  3.  
  4. enum catalog_decl_type {
  5.   CATALOG_NO_DECL = -1,
  6.   CATALOG_ENTITY_DECL,
  7.   CATALOG_DOCTYPE_DECL,
  8.   CATALOG_LINKTYPE_DECL
  9. };
  10.  
  11. #define CATALOG_SYSTEM_ERROR 1
  12.  
  13. #ifdef __STDC__
  14.  
  15. typedef void *CATALOG;
  16. typedef void (*CATALOG_ERROR_HANDLER)(const char *filename,
  17.                       unsigned long lineno,
  18.                       int error_number,
  19.                       unsigned flags,
  20.                       int sys_errno);
  21. CATALOG catalog_create(CATALOG_ERROR_HANDLER);
  22. void catalog_load_file(CATALOG, const char *);
  23. void catalog_delete(CATALOG);
  24. int catalog_lookup_entity(CATALOG,
  25.               const char *public_id,
  26.               const char *name,
  27.               enum catalog_decl_type,
  28.               const char *subst_table,
  29.               const char **system_id,
  30.               const char **catalog_file);
  31. const char *catalog_error_text(int error_number);
  32.  
  33. #else /* not __STDC__ */
  34.  
  35. typedef char *CATALOG;
  36. typedef void (*CATALOG_ERROR_HANDLER)();
  37. CATALOG catalog_create();
  38. void catalog_load_file();
  39. void catalog_delete();
  40. int catalog_lookup_entity();
  41. char *catalog_error_text();
  42.  
  43. #endif /* not __STDC__ */
  44.  
  45. #endif /* not CATALOG_H */
  46.