home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tvos200.zip / TVISION / OS2ASM.H < prev    next >
C/C++ Source or Header  |  1995-04-25  |  2KB  |  62 lines

  1. #ifndef __os2asm_h
  2. #define __os2asm_h
  3.  
  4. #ifndef __ttypes_h
  5. #   include <tvision/ttypes.h>
  6. #endif
  7.  
  8. /*
  9.  *  This module provides the prototypes for the assembler functions. Originally
  10.  *  these were implemented as "member functions" of the classes, but to make
  11.  *  things more portable they are now implemented as C functions, so that
  12.  *  name mangling is no longer problematic.
  13.  *
  14.  */
  15. #if defined(__FLAT__) && defined(__OS2__)
  16. class TDrawBuffer;
  17.  
  18. extern "C"
  19. {
  20.     //** TFrame member shit
  21.     void _cdecl asmFrameLine(void* cls, TDrawBuffer& frameBuf, short y, short n, unsigned char color );
  22.  
  23.     //** TEditor member shit,
  24.     char            _cdecl asmBufChar(void* cls, unsigned short );
  25.     unsigned short  _cdecl asmBufPtr(void* cls, unsigned short );
  26.     void            _cdecl asmFormatLine(void* cls, void *, unsigned short, int, unsigned short );
  27.     unsigned short  _cdecl asmNextChar(void* cls, unsigned short );
  28.     unsigned short  _cdecl asmPrevChar(void* cls, unsigned short );
  29.     unsigned short  _cdecl asmLineEnd(void* cls, unsigned short );
  30.     unsigned short  _cdecl asmLineStart(void* cls, unsigned short );
  31.  
  32.     int             _cdecl countLines( void *buf, unsigned int count );
  33.     unsigned short  _cdecl scan( const void *block, unsigned short size, const char *str );
  34.     unsigned short  _cdecl iScan( const void *block, unsigned short size, const char *str );
  35.  
  36.     //** TTerminal stuff,
  37.     unsigned short  _cdecl asmPrevLines(void* cls, unsigned short, unsigned short);
  38.     Boolean         _cdecl asmExposed(void* ths);
  39.  
  40. };
  41.  
  42. //** WatCOM compiler specifics..
  43. #if 0
  44. #pragma aux asmFrameLine    "_*";
  45. #pragma aux asmBufChar      "_*";
  46. #pragma aux asmBufPtr       "_*";
  47. #pragma aux asmFormatLine   "_*";
  48. #pragma aux asmNextChar     "_*";
  49. #pragma aux asmPrevChar     "_*";
  50. #pragma aux asmLineEnd      "_*";
  51. #pragma aux asmLineStart    "_*";
  52. #pragma aux countLines      "_*";
  53. #pragma aux scan            "_*";
  54. #pragma aux iScan           "_*";
  55. #pragma aux asmPrevLines    "_*";
  56. #pragma aux asmExposed      "_*";
  57. #endif
  58.  
  59. #endif
  60. #endif
  61.  
  62.