Files
harbour-core/harbour/include/hberrors.h
1999-07-08 05:52:17 +00:00

60 lines
1.8 KiB
C

/*
* $Id$
*/
#ifndef HB_ERROR_H_
#define HB_ERROR_H_
/*
* Errors generated by Harbour compiler
*/
#define ERR_OUTSIDE 1
#define ERR_FUNC_DUPL 2
#define ERR_VAR_DUPL 3
#define ERR_FOLLOWS_EXEC 4
#define ERR_OUTER_VAR 5
#define ERR_NUMERIC_FORMAT 6
#define ERR_STRING_TERMINATOR 7
#define ERR_FUNC_RESERVED 8
#define ERR_ILLEGAL_INIT 9
#define ERR_ENDIF 10
#define ERR_ENDDO 11
#define ERR_ENDCASE 12
#define ERR_NEXTFOR 13
#define ERR_UNMATCHED_ELSE 14
#define ERR_UNMATCHED_ELSEIF 15
#define ERR_SYNTAX 16
#define ERR_UNCLOSED_STRU 17
#define ERR_UNMATCHED_EXIT 18
#define ERR_SYNTAX2 19
#define ERR_INCOMPLETE_STMT 20
#define WARN_AMBIGUOUS_VAR 1
#define WARN_VAR_NOT_USED 2
#define WARN_BLOCKVAR_NOT_USED 3
#define WARN_ASSIGN_TYPE 4
#define WARN_LOGICAL_TYPE 5
#define WARN_NUMERIC_TYPE 6
#define WARN_OPERANDS_INCOMPATBLE 7
#define WARN_ASSIGN_SUSPECT 8
#define WARN_OPERAND_SUSPECT 9
#define WARN_LOGICAL_SUSPECT 10
#define WARN_NUMERIC_SUSPECT 11
/*
* Errors generated by Harbour preprocessor
*/
#define ERR_CANNOT_OPEN 1
#define ERR_DIRECTIVE_ELSE 2
#define ERR_DIRECTIVE_ENDIF 3
#define ERR_WRONG_NAME 4
#define ERR_DEFINE_ABSENT 5
#define ERR_COMMAND_DEFINITION 6
#define ERR_PATTERN_DEFINITION 7
#define ERR_RECURSE 8
void GenError( char* _szErrors[], char, int, char*, char * ); /* generic parsing error management function */
void GenWarning( int, char*, char * ); /* generic parsing warning management function */
#endif /* HB_ERROR_H_ */