… | |
… | |
259 | .IX Item "int ev_version_major ()" |
259 | .IX Item "int ev_version_major ()" |
260 | .PD 0 |
260 | .PD 0 |
261 | .IP "int ev_version_minor ()" 4 |
261 | .IP "int ev_version_minor ()" 4 |
262 | .IX Item "int ev_version_minor ()" |
262 | .IX Item "int ev_version_minor ()" |
263 | .PD |
263 | .PD |
264 | You can find out the major and minor \s-1API/ABI\s0 version numbers of the library |
264 | You can find out the major and minor \s-1ABI\s0 version numbers of the library |
265 | you linked against by calling the functions \f(CW\*(C`ev_version_major\*(C'\fR and |
265 | you linked against by calling the functions \f(CW\*(C`ev_version_major\*(C'\fR and |
266 | \&\f(CW\*(C`ev_version_minor\*(C'\fR. If you want, you can compare against the global |
266 | \&\f(CW\*(C`ev_version_minor\*(C'\fR. If you want, you can compare against the global |
267 | symbols \f(CW\*(C`EV_VERSION_MAJOR\*(C'\fR and \f(CW\*(C`EV_VERSION_MINOR\*(C'\fR, which specify the |
267 | symbols \f(CW\*(C`EV_VERSION_MAJOR\*(C'\fR and \f(CW\*(C`EV_VERSION_MINOR\*(C'\fR, which specify the |
268 | version of the library your program was compiled against. |
268 | version of the library your program was compiled against. |
269 | .Sp |
269 | .Sp |
270 | These version numbers refer to the \s-1API\s0 and \s-1ABI\s0 version of the library, not |
270 | These version numbers refer to the \s-1ABI\s0 version of the library, not the |
271 | the release version. |
271 | release version. |
272 | .Sp |
272 | .Sp |
273 | Usually, it's a good idea to terminate if the major versions mismatch, |
273 | Usually, it's a good idea to terminate if the major versions mismatch, |
274 | as this indicates an incompatible change. Minor versions are usually |
274 | as this indicates an incompatible change. Minor versions are usually |
275 | compatible to older versions, so a larger minor version alone is usually |
275 | compatible to older versions, so a larger minor version alone is usually |
276 | not a problem. |
276 | not a problem. |