home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / WRITEU.ASM < prev    next >
Encoding:
Assembly Source File  |  1992-06-10  |  1.3 KB  |  56 lines

  1. ;[]-----------------------------------------------------------------[]
  2. ;|      WRITEU.ASM -- User entry point for write()                   |
  3. ;[]-----------------------------------------------------------------[]
  4.  
  5. ;
  6. ;       C/C++ Run Time Library - Version 5.0
  7. ;       Copyright (c) 1991, 1992 by Borland International
  8. ;       All Rights Reserved.
  9.  
  10.         include rules.asi
  11.  
  12. ;       Segments Definitions
  13.  
  14. Header@
  15.  
  16. Code_seg@
  17.  
  18. ;----------------------------------------------------------------------
  19. ; Declare internal library function __write.
  20.  
  21. ifdef   __PAS__
  22.  
  23. ExtProc@ __WRITE, __PASCAL__             ; PASCAL-callable library
  24. __write@ equ     __WRITE
  25.  
  26. else
  27. ExtProc@ __write, __CDECL__              ; Normal C library
  28. endif
  29.  
  30. ;----------------------------------------------------------------------
  31. ; Define user entry point write, which merely jumps to __write.
  32.  
  33. ifdef   _BUILDRTLDLL                    ; DLL library
  34.  
  35. Proc@   write, __CDECL__
  36.         publicdll _write
  37.  
  38. elseifdef       __PAS__                 ; PASCAL-callable library
  39.  
  40. PubProc@ WRITE, __PASCAL__
  41. write@   equ     WRITE
  42.  
  43. else                                    ; Normal C library
  44. PubProc@ write, __CDECL__
  45. endif
  46.  
  47.         jmp     __write@                ; jump to internal function
  48.  
  49. EndProc@ write
  50.  
  51. Code_EndS@
  52.  
  53.         end
  54.