home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / stdwin / Packs / vt / vtimpl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-22  |  1.4 KB  |  53 lines  |  [TEXT/????]

  1. /* Assorted things used by the VT implementation */
  2.  
  3. /* Include files */
  4.  
  5. #include "tools.h"
  6. #include "stdwin.h"
  7. #include "vt.h"
  8.  
  9. /* Names for control characters */
  10.  
  11. #define ESC    '\033'
  12. #define CR    '\r'
  13. #define LF    '\012'    /* Can't use \n or EOL because of MPW on Macintosh */
  14. #define BS    '\b'
  15. #define BEL    '\007'
  16. #define TAB    '\t'
  17. #define FF    '\014'
  18.  
  19. /* Macro to check for non-control character */
  20.  
  21. #define PRINTABLE(c)    isprint(c)
  22.  
  23. /* Debugging facilities */
  24.  
  25. /* If you want static functions visible for adb, pass '-DSTATIC=static'
  26.    to the cc compiler. */
  27. #ifndef STATIC
  28. #define STATIC static
  29. #endif
  30.  
  31. /* Macro D() to turn off code in NDEBUG mode or if debugging is off */
  32. #ifdef NDEBUG
  33. #define D(stmt) 0
  34. #else
  35. /* XXX Dependency on 'debugging' declared in calling application */
  36. extern int debugging;
  37. #define D(stmt) if (!debugging) { } else stmt
  38. #endif
  39.  
  40. /* In Amoeba, MON_EVENT() can be used to keep cheap performance statistics */
  41. #ifndef MON_EVENT
  42. #define MON_EVENT(msg) do { } while (0) /* Funny syntax to work inside 'if' */
  43. #endif
  44.  
  45. /* Functions used internally */
  46. /* XXX Ought to have names beginning with _vt */
  47.  
  48. void vtcirculate _ARGS((VT *vt, int r1, int r2, int n));
  49. void vtchange _ARGS((VT *vt, int r1, int c1, int r2, int c2));
  50. void vtshow _ARGS((VT *vt, int r1, int c1, int r2, int c2));
  51. void vtscroll _ARGS((VT *vt, int r1, int c1, int r2, int c2, int dr, int dc));
  52. void vtsync _ARGS((VT *vt));
  53.