version.c 616 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * PuTTY version numbering
  3. */
  4. /*
  5. * The difficult part of deciding what goes in these version strings
  6. * is done in Buildscr, and then written into version.h. All we have
  7. * to do here is to drop it into variables of the right names.
  8. */
  9. #include "putty.h"
  10. #include "ssh.h"
  11. #ifdef SOURCE_COMMIT
  12. #include "empty.h"
  13. #endif
  14. #include "version.h"
  15. const char ver[] = TEXTVER;
  16. const char sshver[] = SSHVER;
  17. const char commitid[] = SOURCE_COMMIT;
  18. /*
  19. * SSH local version string MUST be under 40 characters. Here's a
  20. * compile time assertion to verify this.
  21. */
  22. enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };