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

  1. ;[]-----------------------------------------------------------------[]
  2. ;|      READU.ASM -- User entry point for read()                     |
  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 __read.
  20.  
  21. ifdef   __PAS__
  22.  
  23. ExtProc@ __READ, __PASCAL__             ; PASCAL-callable library
  24. __read@ equ     __READ
  25.  
  26. else
  27. ExtProc@ __read, __CDECL__              ; Normal C library
  28. endif
  29.  
  30. ;----------------------------------------------------------------------
  31. ; Define user entry point read, which merely jumps to __read.
  32.  
  33. ifdef   _BUILDRTLDLL                    ; DLL library
  34.  
  35. Proc@   read, __CDECL__
  36.         publicdll _read
  37.  
  38. elseifdef       __PAS__                 ; PASCAL-callable library
  39.  
  40. PubProc@ READ, __PASCAL__
  41. read@   equ     READ
  42.  
  43. else                                    ; Normal C library
  44. PubProc@ read, __CDECL__
  45. endif
  46.  
  47.         jmp     __read@                 ; jump to internal function
  48.  
  49. EndProc@ read
  50.  
  51. Code_EndS@
  52.  
  53.         end
  54.