为什么要使用JCL UNITVERSIONING? [英] Why use JCL UNITVERSIONING?

查看:185
本文介绍了为什么要使用JCL UNITVERSIONING?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JCL库具有条件定义UNITVERSIONING。我不知道为什么这个选项存在,不知道如何使用这个选项。我知道有一个名为JclUnitVersioning.pas的单位,但是找不到使用。

The JCL library have an conditional define UNITVERSIONING. I don't know why this option exists and don't know how to use this. I know that there are a unit called JclUnitVersioning.pas, but can't find a use.

在真实词项目中使用这个单词?

Where to use this in a real word project?

推荐答案

它支持 JclUnitVersioning 单位,它以更一致的方式暴露了像这样的常量:

It supports the JclUnitVersioning unit, which exposes the constants like these in a more coherent way:

{$IFDEF UNITVERSIONING}
const
  UnitVersioning: TUnitVersionInfo = (
    RCSfile: '$URL: https://jcl.svn.sourceforge.net/svnroot/jcl/tags/JCL-1.101-    Build2725/jcl/source/common/Jcl8087.pas $';
    Revision: '$Revision: 1$';
    Date: '$Date: 12/05/2008 10:29:10$';
    LogPath: 'JCL\source\common'
    );
{$ENDIF UNITVERSIONING}

旧版本的 JclUnitVersioning 单位在这里] 1 ,并给你一个粗略的想法如何作品:该单元有一个全局函数GetUnitVersioning:TUnitVersioning; ,它可以返回支持UNITVERSIONING的所有单元的版本信息。

An old version of the JclUnitVersioning unit is here]1 and gives you a rough idea how it works: the unit has a global function GetUnitVersioning: TUnitVersioning; which gives you back the version information for all units that support UNITVERSIONING.

从那里你可以枚举他们,并请求详细信息。

From there you can enumerate them, and ask for details.

这是非常方便的,例如当你想知道单位的确切版本被链接进入你的.EXE。

This is very handy for instance when you want to know which exact version of a unit gets linked into your .EXE.

- jeroen

--jeroen

这篇关于为什么要使用JCL UNITVERSIONING?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆