home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / X_PROLOG.LZH / X_PROLOG / SOURCES / ERROR.H < prev    next >
Text File  |  1990-08-13  |  1KB  |  44 lines

  1. /*
  2.  *        X PROLOG  Vers. 2.0
  3.  *
  4.  *
  5.  *    Written by :     Andreas Toenne
  6.  *            CS Dept. , IRB
  7.  *            University of Dortmund, W-Germany
  8.  *            <at@unido.uucp>
  9.  *            <....!seismo!unido!at>
  10.  *            <at@unido.bitnet>
  11.  *
  12.  *    Copyright :    This software is copyrighted by Andreas Toenne.
  13.  *            Permission is granted hereby to copy the entire
  14.  *            package including this copyright notice without fee.
  15.  *
  16.  */
  17.  
  18. /*    Definitions of all system errors    */
  19. /*    System errors are fatal            */
  20.  
  21. #define NOERROR        0    /* all is fine */
  22. #define NOMEMORY    1    /* running very short of memory */
  23. #define PROTOFULL    2    /* prototype stack is full */
  24. #define COPYFULL    3    /* copystack is full */
  25. #define NOGOAL        4    /* no main goal for machine given */
  26. #define EXITUS        5    /* main goal has finished */
  27. #define TRAILFULL    6    /* trailstack is full */
  28. #define CLAUSEFULL    7    /* clause space used up */
  29. #define NOERRORCLAUSE    8    /* an error without errorclause has occured */
  30. #define FUNCTORFULL    9    /* functor space is full */
  31. #define BADBOOT        10    /* error while booting */
  32. #define BADIMAGE    11    /* bad prolog image */
  33. #define STACKFULL    12    /* the stack is full */
  34.  
  35. /*    Soft Errors */
  36.  
  37. #define ENOCLAUSE    1    /* clause not found */
  38. #define EIO        2    /* general io error */
  39. #define EEOF        3    /* read from end of file */
  40. #define ESYNTAX        4    /* a syntax error */
  41. #define ETOOMANY    5    /* too many vars/args */
  42. #define EBAD        6    /* generally bad arguments */
  43. #define EEVAL        7    /* error in expression */
  44.