version.c 652 B

12345678910111213141516171819202122232425262728293031323334
  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. #include "version.h"
  12. #ifndef WINSCP
  13. const char ver[] = TEXTVER;
  14. const char sshver[] = SSHVER;
  15. /*
  16. * SSH local version string MUST be under 40 characters. Here's a
  17. * compile time assertion to verify this.
  18. */
  19. enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };
  20. #else
  21. const char * get_putty_version()
  22. {
  23. return TEXTVER;
  24. }
  25. #endif