Files
harbour-core/harbour/include/hberrors.h
Ron Pinkas 7b47c59b9c 19990618-04:35 PST Ron Pinkas <Ron@Profit-Master.com>
* hberrors.h
    +added define WARN_ASSIGN_TYPE and WARN_ASSIGN_SUSPECTED

  * compiler.h
    +added struct STACK_VAL_TYPE *PSTAC_VAL_TYPE

  * harbour.l
    +added support for tokens AS NUMERIC, AS CHARACTER, AS LOGICAL, AS DATE, AS ARRAY, AS OBJECT
    *modified iLine to initialize to 0 rather than 1

  * harbour.y
    +added support for extended variable declaration with strong typing
    +added logic to support warnings on incompatible and suspecious variable assignments
1999-06-18 12:53:11 +00:00

44 lines
1.2 KiB
C

/*
* $Id$
*/
#ifndef HBERRORS_H_
#define HBERRORS_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_CANT_OPEN_INCLUDE 10
#define ERR_ENDIF 11
#define ERR_ENDDO 12
#define ERR_ENDCASE 13
#define ERR_NEXTFOR 14
#define ERR_UNMATCHED_ELSE 15
#define ERR_UNMATCHED_ELSEIF 16
#define ERR_SYNTAX 17
#define ERR_UNCLOSED_STRU 18
#define ERR_UNMATCHED_EXIT 19
#define ERR_SYNTAX2 20
#define ERR_INCOMPLETE_STMT 21
#define WARN_AMBIGUOUS_VAR 1
#define WARN_VAR_NOT_USED 2
#define WARN_BLOCKVAR_NOT_USED 3
#define WARN_ASSIGN_TYPE 4
#define WARN_ASSIGN_SUSPECTED 5
void GenError( int, char*, char * ); /* generic parsing error management function */
void GenWarning( int, char*, char * ); /* generic parsing warning management function */
#endif /* HBERRORS_H_ */