home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / harbb30g.zip / INCLUDE / hberrors.h < prev    next >
C/C++ Source or Header  |  1999-09-26  |  4KB  |  116 lines

  1. /*
  2.  * $Id: hberrors.h,v 1.36 1999/09/26 12:25:49 rglab Exp $
  3.  */
  4.  
  5. /*
  6.  * Harbour Project source code:
  7.  * Header file for compiler error codes
  8.  *
  9.  * Copyright 1999 Ryszard Glab <rglab@imid.med.pl>
  10.  * www - http://www.harbour-project.org
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version, with one exception:
  16.  *
  17.  * The exception is that if you link the Harbour Runtime Library (HRL)
  18.  * and/or the Harbour Virtual Machine (HVM) with other files to produce
  19.  * an executable, this does not by itself cause the resulting executable
  20.  * to be covered by the GNU General Public License. Your use of that
  21.  * executable is in no way restricted on account of linking the HRL
  22.  * and/or HVM code into it.
  23.  *
  24.  * This program is distributed in the hope that it will be useful,
  25.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27.  * GNU General Public License for more details.
  28.  *
  29.  * You should have received a copy of the GNU General Public License
  30.  * along with this program; if not, write to the Free Software
  31.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
  32.  * their web site at http://www.gnu.org/).
  33.  *
  34.  */
  35.  
  36. #ifndef HB_ERRORS_H_
  37. #define HB_ERRORS_H_
  38.  
  39. /*
  40.  * Errors generated by Harbour compiler
  41.  */
  42. #define ERR_OUTSIDE                1
  43. #define ERR_FUNC_DUPL              2
  44. #define ERR_VAR_DUPL               3
  45. #define ERR_FOLLOWS_EXEC           4
  46. #define ERR_OUTER_VAR              5
  47. #define ERR_NUMERIC_FORMAT         6
  48. #define ERR_STRING_TERMINATOR      7
  49. #define ERR_FUNC_RESERVED          8
  50. #define ERR_ILLEGAL_INIT           9
  51. #define ERR_ENDIF                  10
  52. #define ERR_ENDDO                  11
  53. #define ERR_ENDCASE                12
  54. #define ERR_NEXTFOR                13
  55. #define ERR_UNMATCHED_ELSE         14
  56. #define ERR_UNMATCHED_ELSEIF       15
  57. #define ERR_SYNTAX                 16
  58. #define ERR_UNCLOSED_STRU          17
  59. #define ERR_UNMATCHED_EXIT         18
  60. #define ERR_SYNTAX2                19
  61. #define ERR_INCOMPLETE_STMT        20
  62. #define ERR_CHECKING_ARGS          21
  63. #define ERR_INVALID_LVALUE         22
  64. #define ERR_INVALID_REFER          23
  65. #define ERR_PARAMETERS_NOT_ALLOWED 24
  66. #define ERR_EXIT_IN_SEQUENCE       25
  67. #define ERR_UNTERM_ARRAY_INDEX     26
  68. #define ERR_MEMALLOC               27
  69. #define ERR_MEMREALLOC             28
  70. #define ERR_MEMFREE                29
  71. #define ERR_YACC                   30
  72. #define ERR_JUMP_TOO_LONG          31
  73. #define ERR_CREATE_OUTPUT          32
  74. #define ERR_CREATE_PPO             33
  75. #define ERR_BADOPTION              34
  76. #define ERR_BADPARAM               35
  77. #define ERR_BADFILENAME            36
  78. #define ERR_MAYHEM_IN_CASE         37
  79.  
  80. #define WARN_AMBIGUOUS_VAR         1
  81. #define WARN_MEMVAR_ASSUMED        2
  82. #define WARN_VAR_NOT_USED          3
  83. #define WARN_BLOCKVAR_NOT_USED     4
  84. #define WARN_ASSIGN_TYPE           5
  85. #define WARN_LOGICAL_TYPE          6
  86. #define WARN_NUMERIC_TYPE          7
  87. #define WARN_OPERANDS_INCOMPATBLE  8
  88. #define WARN_ASSIGN_SUSPECT        9
  89. #define WARN_OPERAND_SUSPECT       10
  90. #define WARN_LOGICAL_SUSPECT       11
  91. #define WARN_NUMERIC_SUSPECT       12
  92.  
  93. /*
  94.  * Errors generated by Harbour preprocessor
  95.  */
  96. #define ERR_CANNOT_OPEN            1
  97. #define ERR_DIRECTIVE_ELSE         2
  98. #define ERR_DIRECTIVE_ENDIF        3
  99. #define ERR_WRONG_NAME             4
  100. #define ERR_DEFINE_ABSENT          5
  101. #define ERR_COMMAND_DEFINITION     6
  102. #define ERR_PATTERN_DEFINITION     7
  103. #define ERR_RECURSE                8
  104. #define ERR_WRONG_DIRECTIVE        9
  105. #define ERR_EXPLICIT               10
  106. #define ERR_PPMEMALLOC             11
  107. #define ERR_PPMEMREALLOC           12
  108. #define ERR_PPMEMFREE              13
  109.  
  110. #define WARN_NONDIRECTIVE          1
  111.  
  112. extern void GenError( char * _szErrors[], char, int, char *, char * ); /* generic parsing error management function */
  113. extern void GenWarning( char * _szWarnings[], char, int, char *, char * ); /* generic parsing warning management function */
  114.  
  115. #endif /* HB_ERRORS_H_ */
  116.