home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / dev / lang / sgmls / src / error.h < prev    next >
Text File  |  1994-07-10  |  4KB  |  62 lines

  1. /* ERROR.H: Symbols for SGML error codes (start with 'E_').
  2.             Numbers 46 - 56 are generated by ERROR.C.
  3.             Later numbers are coded directly.
  4. */
  5. /* SGMLERR.C: General errors and syntax errors.
  6. */
  7. #define E_CONTEXT   1   /* W  GI not allowed at this point in structure. */
  8. #define E_MDNAME    2   /* E  Invalid markup declaration name. */
  9. /*efine E_LEN       3      E  Syntax error: length exceeded. */
  10. #define E_SYS       4   /* W  Illegal system character. */
  11. #define E_ETAG      5   /* E  End-tag does not match any open start-tag. */
  12. #define E_STAGMAX   6   /* E  Maximum number of open elements exceeded. */
  13. /*      E_ALLNULL   7      W  Start- and end-tag omitted with null content. */
  14. #define E_EOF       8   /* E/W Illegal entity end in markup or delimited text. */
  15. /* fine E_INV       9      E  Markup error: invalid character. */
  16. #define E_CHARS    10   /* W  Data found in content that doesn't allow it. */
  17. /* fine E_NOETDE   11      E  End-tag GI not defined by element declaration. */
  18. #define E_BADNM    12   /* E  Name is not syntactically valid. */
  19. #define E_BADATT   13   /* E  Attribute was not defined by element declaration. */
  20. #define E_VALINV   14   /* W  Att value/declaration conflict: invalid char. */
  21. #define E_VALLEN   15   /* W  Att value/declaration conflict: token too long. */
  22. #define E_VALCNT   16   /* W  Att value/declaration conflict: too many tokens. */
  23. #define E_VALTYPE  17   /* W  Att value/declaration conflict: wrong token type.*/
  24. #define E_VALGRP   18   /* W  Att value/declaration conflict: token not in grp.*/
  25. #define E_VALREQ   19   /* W  Att value/declaration conflict: req unspecified. */
  26. /*      E_EMIN     20      W  End-tag implied by end-tag; not minimizable. */
  27. /*      E_SMIN     21      W  Omitted start-tag was not minimizable. */
  28. #define E_POSSATT  22   /* E  Possible att found but not defined; used as data.*/
  29. /* Late additions numbered out of order to avoid recompilation. */
  30. /*efine E_ENTSYNC  37      E  Entity and group nesting levels out of sync. */
  31. #define E_BADVAL   25   /* W  Att value omitted (null); default used. */
  32. /*      E_ECONTXT  30      W  Element ended prematurely (some content omitted).*/
  33. /*      E_EMINST   39      W  End-tag implied by start-tag; not minimizable. */
  34. /*      E_MEXTAG   40      W  *** In Use ***                               */
  35. #define E_MEXERR   41   /* W  Attempt to exclude contextually required element.*/
  36. #define E_DOCTYPE  42   /* W  No document type defined; *DOCTYPE assumed. */
  37. /*      E_NOETDS   43      E  Start-tag GI not defined by element declaration. */
  38. #define E_RESTART  44   /* E  Invalid chars ignored; trying to restart parse. */
  39.  
  40. /* MDERROR.C: Errors in markup declarations.
  41. */
  42. /*efine E_DUP      23      E  Duplicate specification. */
  43. /*efine E_KEY      24      E  Incorrect keyword for parameter. */
  44. /*efine E_MSE      26      E  MSE occurred with no corresponding MS. */
  45. /*efine E_MSS      27      E  MSS exceeded maximum nesting level. */
  46. /*efine E_NUM      28      E  Incorrect number of parameters. */
  47. #define E_TYPE     29   /* E  Incorrect parameter type. */
  48. /* Late additions numbered out of order to avoid recompilation. */
  49. /*efine E_VAL      38      W  Incorrect parameter value. */
  50.  
  51. /* RESERROR.C: Errors in resource routines.
  52. */
  53. /* Unused                 I  End of primary source entity. */
  54. /* fine E_FILBUF   31      E  Could not read next buffer. */
  55. /* fine E_ERFILE   32      E  Could not open file. */
  56. /* fine E_MALLOC   33      T  Could not obtain required main storage. */
  57. /* fine E_ERMAX    34      E  Maximum number of open entities exceeded. */
  58. /* fine E_ERNAME   35      E  Referenced entity undeclared. */
  59. /* fine E_ERLOOP   36      E  Entity referenced within itself: ref ignored. */
  60. /* Late additions numbered out of order to avoid recompilation. */
  61. /*      E_ERDEF    45      E  Referenced entity undeclared; SYSTEM assumed. */
  62.