home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m248 / 4.ddi / EV_ERR.H_ / EV_ERR.H
Encoding:
C/C++ Source or Header  |  1993-02-01  |  2.4 KB  |  72 lines

  1. /*
  2.  
  3.     EV_ERR.H -- EV_ERROR enumerations for the expression evaluator.
  4.     Copyright 1987-1993, Authorware, Inc.
  5.  
  6.     Revision History
  7.  
  8.         1/21/93    -    Release Version.
  9.  
  10. */
  11.  
  12. #ifndef _EV_ERR_
  13. #define _EV_ERR_
  14.  
  15.  
  16. /* 
  17.     EV_ERROR Expression evaluator status codes.  An EV_ERROR is returned
  18.     by the expression evaluator.
  19. */
  20.  
  21. typedef enum 
  22.     {
  23.     EXPR_OK                 = 0,    // no problems
  24.     EXPR_TOO_LONG         = 1,    // The expression has exceeded a length limit 
  25.     TOK_TOO_LONG         = 2,    // token too long (parser)
  26.     NO_QUOTE             = 3,    // missing " (unterminated string)
  27.     UNKNOWN_OP             = 4,    // unknown operator/illegal char
  28.     SYNTAX_ERR             = 5,    // General syntax error
  29.     OPERATOR_ERR         = 6,    // bad operand syntax
  30.     BAD_IF                 = 7,    // Syntax error in an IF statement
  31.     MISSING_RP             = 8,    // missing ')'
  32.     MISSING_LP             = 9,    // missing '(' following a function reference
  33.     STACK_OVER             = 10,    // expr to complex (stack overflow)
  34.     EXPR_NO_MEM         = 11,    // out of memory
  35.     CANT_ASSIGN         = 12,    // assignment not allowed; not a var or not assignable
  36.     NEED_ASSIGN         = 13,    // expression should have an assigment operation
  37.     OPERAND_MISSING     = 14,    // missing operand
  38.     TOO_MANY_FCN_ARGS = 15, /* The fcn prototype shows less args than
  39.                                         the user specified in his expression */
  40.  
  41.     VAR_REQD_HERE         = 16, /* The user positioned the wrong type of argument in
  42.                                         a function call (a variable reference was required
  43.                                         for that arg) */
  44.  
  45.     NEED_FCN_OR_ASSIGN = 17,/* An expression needed to start with either a
  46.                                         function call or a variable followed by ":=". */
  47.  
  48.     INTERNAL_ERR         = 18, // never returned, it's the STR# index for internal errs
  49.     UNKNOWN_ERR         = 19,    // never returned, catch-all for bad eval_status
  50.                     
  51.  
  52.     UNDEF_FUNC             = 21,    // undefined function
  53.     UNDEF_VAR             = 22,    // undefined variable
  54.     UNDEF_ICON             = 23,    // undefine icon title (in @ clause)
  55.     CANT_AT_SYS         = 24, // can't use @ with that system var
  56.     CANT_AT_USER         = 25,    // can't use @ with user var
  57.     NOT_UNIQUE             = 26,    // icon title not unique (in @ clause)
  58.     NAME_TOO_LONG         = 27,    // variable or function name too long
  59.     RESERVED_TITLE     = 28,    // trying to @-reference a reserved icon title
  60.     TOO_FEW_FCN_ARGS     = 29,    // too few arguments for a function
  61.     NOT_EMBEDABLE         = 30,    // function is not embedable
  62.     RESERVED_WORD        = 31, // variable or function is not available 
  63.                                     // in this version of the software
  64.     CANT_AT_LIB            = 32,    // can't use @ in a library
  65.  
  66.  
  67. } EV_ERROR;
  68.  
  69. #endif
  70.  
  71.  
  72.