~vcs-imports/putty/master

Viewing all changes in revision 6744.

  • Committer: Simon Tatham
  • Date: 2023-09-22 13:00:02 UTC
  • Revision ID: git-v1:954db6f7fea40fc62214e19d8fedaee85c3dad81
Conditionalise FontSpec structure definition.

FontSpec is completely different per platform; not only is the
structure type different, not only are the behind-the-scenes
implementations of copy and free functions different, but even the API
of the constructor function is different. Cross-platform code can't
construct a FontSpec at all. This makes it hard to write a
cross-platform test program that works with them.

So, as a nasty bodge, I'll allow test programs to #define
SUPERSEDE_FONTSPEC_FOR_TESTING before including putty.h. Then they can
provide their own definition of FontSpec, and they also take
responsibility for superseding all the other functions that work with
one.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: