xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_BuildInfo()

Retrieves build information of the xHarbour compiler.

Syntax

HB_BuildInfo( <nWhichInfo> ) -->  cBuildInfo

Arguments

<nWhichInfo>
This is a numeric value indicating the information to retrieve. #define constants are listed in the Hbver.ch file that can be used for <nWhichInfo>.

Return

The function returns the requested build information. The data type of the return value depends on <nWhichInfo>.

Description

Function HB_BuildInfo() is used to retrieve information about the current build of the xHarbour compiler. The following information is returned depending on the #define constant used for <nWichInfo>:

Build information for the xHarbour compiler
ConstantValueValtype()Description
_HB_VER_MAJOR1NMajor version number
_HB_VER_MINOR2NMinor version number
_HB_VER_REVISION3NRevision number
_HB_VER_LEX4CLex version
_HB_VER_AS_STRING5CComplete version as character string
_HB_PCODE_VER6NVersion number of PCode engine
_HB_VER_COMPILER7CVersion of C compiler
_HB_VER_PLATFORM8CPlatform xHarbour is running on
_HB_VER_BUILD_DATE9CDate xHarbour was built
_HB_VER_BUILD_TIME10CTime xHarbour was built
_HB_VER_LENTRY11CLast entry in CVS ChangeLog file
_HB_VER_CHLCVS12CRevision of last entry in CVS
_HB_VER_C_USR13CReserved
_HB_VER_L_USR14CReserved
_HB_VER_PRG_USR15CReserved
_HB_EXTENSION16L#define HB_EXTENSION
   is used for current build
_HB_C52_UNDOC17L#define HB_C52_UNDOC
   is used for current build
_HB_C52_STRICT18L#define HB_C52_STRICT
   is used for current build
_HB_COMPAT_C5319L#define HB_COMPAT_C53
   is used for current build
_HB_COMPAT_XPP20L#define HB_COMPAT_XPP
   is used for current build
_HB_COMPAT_VO21L#define HB_COMPAT_VO
   is used for current build
_HB_COMPAT_FLAGSHIP22L#define HB_COMPAT_FLAGSHIP
   is used for current build
_HB_COMPAT_FOXPRO23L#define HB_COMPAT_FOXPRO
   is used for current build
_HB_COMPAT_DBASE24L#define HB_COMPAT_DBASE
   is used for current build
_HB_HARBOUR_OBJ_GENERATION25LReserved
_HB_HARBOUR_STRICT_ANSI_C26LReserved
_HB_CPLUSPLUS27LReserved
_HB_HARBOUR_YYDEBUG28LReserved
_HB_SYMBOL_NAME_LEN29NMaximum length of symbolic variable names
_HB_MULTITHREAD30LMulti-threading is supported
_HB_VM_OPTIMIZATION31NOptimization level of Virtual Machine
_HB_LANG_ID32CLanguage ID of language used for build
_HB_ARRAY_MODE33NReserved
_HB_CREDITS34ACredits to xHarbour developers

Info

See also:HB_BuildDate(), HB_Compiler(), Os(), Os_VersionInfo()
Category: Environment functions , xHarbour extensions
Header:hbver.ch
Source:rtl\version.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example displays build information of the xHarbour compiler
// and the operating system

   #include "hbver.ch"

   PROCEDURE Main
      CLS
      ? "Compiler:", HB_BuildInfo( _HB_VER_AS_STRING )
      ?
      ? "Operating System:", HB_BuildInfo( _HB_VER_PLATFORM )
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe