gtdevcomm.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * GTools C compiler
  3. * =================
  4. * source file :
  5. * (on-calc) communication with the GT-Dev IDE
  6. *
  7. * Copyright 2001-2004 Paul Froissart.
  8. * Credits to Christoph van Wuellen and Matthew Brandt.
  9. * All commercial rights reserved.
  10. *
  11. * This compiler may be redistributed as long there is no
  12. * commercial interest. The compiler must not be redistributed
  13. * without its full sources. This notice must stay intact.
  14. */
  15. #ifndef __GTDEVCOMM_H
  16. #define __GTDEVCOMM_H
  17. //#include "E:\Paul\89\Ti-GCC\Projects\GT-Dev\SecureCommDef.h"
  18. #include "securecommdef.h"
  19. #define ET_FATAL -2
  20. #define ET_WARNING -1
  21. #define ET_ERROR 0
  22. #define ET_INTERNAL_WARNING 1
  23. #define ET_INTERNAL_FAILURE 2
  24. #define et_isinternal(x) ((x)>0)
  25. #define et_iserror(x) !((x)&1)
  26. #if __TIGCC_BETA__*100+__TIGCC_MINOR__>=94
  27. #define CALLBACK __ATTR_TIOS_CALLBACK__
  28. #else
  29. #define CALLBACK
  30. #endif
  31. typedef void (CALLBACK*Msg_Callback_t)(char *message,int err_type,char *func,char *file,int line,int chr);
  32. //typedef _Msg_Callback_t *Msg_Callback_t;
  33. #define MAX_PROGRESS 65535
  34. typedef void (CALLBACK*Progr_Callback_t)(char *func,char *file,unsigned int fprogress);
  35. //typedef _Progr_Callback_t *Progr_Callback_t;
  36. extern char *in_file,*out_file;
  37. extern Msg_Callback_t msg_process;
  38. extern Progr_Callback_t progr_process;
  39. #endif
  40. // vim:ts=4:sw=4