sy_table_constants.h 463 B

123456789101112131415161718192021222324
  1. /*
  2. * Andrea Di Biagio
  3. * Politecnico di Milano, 2007
  4. *
  5. * sy_table_constants.h
  6. * Formal Languages & Compilers Machine, 2007/2008
  7. *
  8. */
  9. #ifndef _SY_TABLE_CONSTANTS_H
  10. #define _SY_TABLE_CONSTANTS_H
  11. /* invalid location info */
  12. #define SY_LOCATION_UNSPECIFIED -1
  13. /* errorcodes */
  14. #define SY_TABLE_OK 0
  15. #define SY_ALREADY_DEFINED -1
  16. #define SY_UNDEFINED -2
  17. #define SY_TABLE_NOT_INITIALIZED -3
  18. #define SY_MEMALLOC_ERROR -4
  19. #define SY_INVALID_REQUEST -5
  20. #endif