Mercurial > octave-nkf
comparison libinterp/version.in.h @ 18228:b6b6e0dc700e stable
provide version number macros (bug #41045)
* configure.ac (OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION,
OCTAVE_PATCH_VERSION): New variables.
* common.mk: Substitute them.
* version.in.h: Substitute them.
* libinterp/Makefile.am (version.h):
Don't substitute OCTAVE_API_VERSION_NUMBER.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 07 Jan 2014 11:36:21 -0500 |
parents | 6e43fbab4b29 |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
18227:64f178d8e1e0 | 18228:b6b6e0dc700e |
---|---|
24 #if !defined (octave_version_h) | 24 #if !defined (octave_version_h) |
25 #define octave_version_h 1 | 25 #define octave_version_h 1 |
26 | 26 |
27 #define OCTAVE_VERSION %OCTAVE_VERSION% | 27 #define OCTAVE_VERSION %OCTAVE_VERSION% |
28 | 28 |
29 #define OCTAVE_MAJOR_VERSION %OCTAVE_MAJOR_VERSION% | |
30 | |
31 #define OCTAVE_MINOR_VERSION %OCTAVE_MINOR_VERSION% | |
32 | |
33 #define OCTAVE_PATCH_VERSION %OCTAVE_PATCH_VERSION% | |
34 | |
35 // The "API version" is used as a way of checking that interfaces in the | |
36 // liboctave and libinterp libraries haven't changed in a backwardly | |
37 // incompatible way when loading .oct files. A better way to do that is | |
38 // with library versioning, but not all systems support that. | |
39 // NOTE: This macro will be removed in a future version of Octave. If | |
40 // you insist on checking for features using a version number, use the | |
41 // OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION, and | |
42 // OCTAVE_PATCH_VERSION macros instead. | |
29 #define OCTAVE_API_VERSION %OCTAVE_API_VERSION% | 43 #define OCTAVE_API_VERSION %OCTAVE_API_VERSION% |
30 | 44 |
31 #define OCTAVE_RELEASE_DATE %OCTAVE_RELEASE_DATE% | 45 #define OCTAVE_RELEASE_DATE %OCTAVE_RELEASE_DATE% |
32 | 46 |
33 #define OCTAVE_COPYRIGHT %OCTAVE_COPYRIGHT% | 47 #define OCTAVE_COPYRIGHT %OCTAVE_COPYRIGHT% |