X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fversion.h;h=dd0ad2ba2a6e1f10ba313547b5d91eb1269e2b2b;hb=7ffc54f70e919e2d7db182ed64dc893d3fffd313;hp=a6982d20d89e2f15be9ff014a497e552012d8794;hpb=797d87b4513088a66b17c7ac653b84e36ea80458;p=lyx.git diff --git a/src/version.h b/src/version.h index a6982d20d8..dd0ad2ba2a 100644 --- a/src/version.h +++ b/src/version.h @@ -1,8 +1,44 @@ -/* Version and release date definition */ +// -*- C++ -*- +/** + * \file version.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author Jean-Marc Lasgouttes + * + * Full author contact details are available in file CREDITS. + */ + +#ifndef VERSION_H +#define VERSION_H + +//namespace lyx { + +///About dialog, inset info, export headers +extern char const * const lyx_version; +//.lyx header. We don't want lyx_version because of VCS conflicts. +extern const int lyx_version_major; +extern const int lyx_version_minor; /// -#define LYX_VERSION "1.1.6cvs" -/// -#define LYX_RELEASE "Tue, Jun 6, 2000" -/* This version string is intended to be used in files created by LyX */ -/// -#define LYX_DOCVERSION "LyX 1.1" +extern char const * const lyx_release_date; + +/// Package identifier (lyx[-]) +extern char const * const lyx_package; + +/// This is the version information shown by 'lyx -version' +extern char const * const lyx_version_info; + +// Do not remove the comment below, so we get merge conflict in +// independent branches. Instead add your own. +#define LYX_FORMAT_LYX 417 // jrioux : rename the japanese encodings +#define LYX_FORMAT_TEX2LYX 417 + +#if LYX_FORMAT_FOR_TEX2LYX != LYX_FORMAT_FOR_LYX +#warning "tex2lyx produces an out of date file format." +#warning "Please update tex2lyx as soon as possible, since it depends implicitly" +#warning "on the current file format in some places (this causes bugs like #7780)." +#endif + +//} // namespace lyx + +#endif