home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Ascii-Ansi / vec3.231.lha / vec3231 / source / amiga / amiga.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-06  |  1.3 KB  |  51 lines

  1. /*
  2.  * AMIGA.H (VEC)
  3.  *
  4.  * Copyright (c) 1993 Ville Saari
  5.  * All rights reserved
  6.  *
  7.  * Created: 07-Apr-93
  8.  * Updated: 04-Dec-93
  9.  */
  10.  
  11. #include <proto/dos.h>
  12.  
  13. #ifdef _M86040
  14.     #define SYSTEM    "a040"
  15. #elif defined(_M68030)
  16.     #define SYSTEM    "a030"
  17. #elif defined(_M68020)
  18.     #define SYSTEM    "a020"
  19. #elif defined(_M68010)
  20.     #define SYSTEM    "a010"
  21. #else
  22.     #define SYSTEM    "a"
  23. #endif
  24.  
  25. #define COPYRSIGN "\251"
  26. #define BOLDON    "\2331m"
  27. #define BOLDOFF   "\2330m"
  28. #define DEFMETHOD '3'
  29. #define DEFWIDTH  77
  30. #define DEFWIDTHS "77"
  31. #define OK        0
  32. #define WARN      5
  33. #define ERROR     10
  34. #define FAIL      20
  35. #define BUFSIZE   65536
  36.  
  37. #define VERSTRING "$VER: " ENAME "/" DNAME " " RELEASE "." VERSION SYSTEM " (" VERDATE ")"
  38.  
  39. typedef BPTR filehandle;
  40.  
  41. #define interrupt()             CheckSignal(SIGBREAKF_CTRL_C)
  42. #define getstdin(bin)           Input()
  43. #define getstdout(bin)          Output()
  44. #define openread(name, bin)     Open((char *)(name), MODE_OLDFILE)
  45. #define openwrite(name, bin)    Open((char *)(name), MODE_NEWFILE)
  46. #define failedopen(fh)          (!(fh))
  47. #define closefile(fh)           Close(fh)
  48. #define readfile(fh, buf, sz)   Read(fh, buf, sz)
  49. #define writefile(fh, buf, sz)  Write(fh, (char *)(buf), sz)
  50. #define modifyname(name, count) strcat(strcat((name), "_"), ltoa(count))
  51.