⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpmem.pas

📁 生物信息学中的遗传数据分析的delphi源码。
💻 PAS
字号:
{*******************************************************************
*                                                                  *
*  COMPONENT for MS DOS and Windows source code.                   *
*                                                                  *
*  (c) 1992, Roderic D. M. Page                                    *
*                                                                  *
*  Language: Turbo Pascal (Pascal with object-oriented extensions) *
*  Compiler: Turbo Pascal 6.0 (MS DOS)                             *
*            Turbo Pascal for Windows 1.0 (WINDOWS)                *
*                                                                  *
*  Notes:    Program interface is currently Windows specific.      *
*                                                                  *
*******************************************************************}

{$I CPDIR.INC}

unit cpmem;

{Install a heap error function. }

interface

   function HeapFunc(Size: WORD):INTEGER;
      {Set Turbo Pascal system variable HeapFunc to 1,
       so that the procedures <\i New> and <\i GetMem> return
       <\b nil> when they cannot allocate memory.

       See TPW 1.0 Programmer's Guide, pp. 195-197.
       }

implementation

{$F+}
function HeapFunc(Size: WORD):INTEGER;
begin
  HeapFunc := 1;
end;
{$F-}

begin
   HeapError := @HeapFunc;
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -