VERSIONS 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Version Numbers and Releases
  2. ============================
  3. Curl is not only curl. Curl is also libcurl. They're actually individually
  4. versioned, but they mostly follow each other rather closely.
  5. The version numbering is always built up using the same system:
  6. X.Y.Z
  7. - X is main version number
  8. - Y is release number
  9. - Z is patch number
  10. ## Bumping numbers
  11. One of these numbers will get bumped in each new release. The numbers to the
  12. right of a bumped number will be reset to zero. If Z is zero, it may not be
  13. included in the version number.
  14. The main version number will get bumped when *really* big, world colliding
  15. changes are made. The release number is bumped when changes are performed or
  16. things/features are added. The patch number is bumped when the changes are
  17. mere bugfixes.
  18. It means that after release 1.2.3, we can release 2.0 if something really big
  19. has been made, 1.3 if not that big changes were made or 1.2.4 if mostly bugs
  20. were fixed.
  21. Bumping, as in increasing the number with 1, is unconditionally only
  22. affecting one of the numbers (except the ones to the right of it, that may be
  23. set to zero). 1 becomes 2, 3 becomes 4, 9 becomes 10, 88 becomes 89 and 99
  24. becomes 100. So, after 1.2.9 comes 1.2.10. After 3.99.3, 3.100 might come.
  25. All original curl source release archives are named according to the libcurl
  26. version (not according to the curl client version that, as said before, might
  27. differ).
  28. As a service to any application that might want to support new libcurl
  29. features while still being able to build with older versions, all releases
  30. have the libcurl version stored in the curl/curlver.h file using a static
  31. numbering scheme that can be used for comparison. The version number is
  32. defined as:
  33. #define LIBCURL_VERSION_NUM 0xXXYYZZ
  34. Where XX, YY and ZZ are the main version, release and patch numbers in
  35. hexadecimal. All three number fields are always represented using two digits
  36. (eight bits each). 1.2 would appear as "0x010200" while version 9.11.7
  37. appears as "0x090b07".
  38. This 6-digit hexadecimal number is always a greater number in a more recent
  39. release. It makes comparisons with greater than and less than work.
  40. This number is also available as three separate defines:
  41. `LIBCURL_VERSION_MAJOR`, `LIBCURL_VERSION_MINOR` and `LIBCURL_VERSION_PATCH`.