Re: [PATCH] support ptrdiff_t if it has the same storage size as int, but does not alias it
"'Robin Haberkorn' via scintilla-interest" <[email protected]> Sun, 05 Oct 2025 09:28:36 +0000
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun Oct 5, 2025 at 08:42:33 GMT +03, Neil wrote: > Without the explicit instantiations at the bottom of RunStyles.cxx, MSVC > builds fail with many 'unresolved external symbol's. > > My recollection is that builds for other platforms also failed. I will give it a try. All methods would have to be moved into the header of course. What if we used int64_t consistently instead of ptrdiff_t? Sci::Position would be 64-bit even on 32-bit platforms. I guess this wouldn't be tolerable? Perhaps we could also detect 64-bit and conditionally typedef to int32_t or int64_t. We then would at least know what it aliases to, therefore fixing the #if (INT64_MAX != INT_MAX) approach. -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/DDAA6BX6PFKH.2H2SR4KKV98QE%40googlemail.com.
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEB/6AD3js1eGB4raKarMDYY4q6voFAmjiOkUACgkQarMDYY4q 6vqpUQf7BKjlI8LCZqZyu2ektbAfM/CL3fU3n73zh1+/Bi1fZAm+SK1NiwBiXbiz c3UTuewsgx0z36/aLSnH2sRQfuub77OAeH/eSocBXnVdKwVLgnJWXzjwyG+Q1aVK xl4AMN6n9FBq6vj8aJPyyyJvHpwmiPjVOEe605fQtH+ka0OIthbG868g55T5uUcs u9b1fJ1162xRlY6yZW3Fb54HIm7cjSuZXotgIMZvDmK1o6IsAL/5nt/0p9WrSUEv hpEGhRldQ+BfN5WGQgsAamC5t/a7MqP2WiZKfq2a2YuLn8ZnMDyozYoSEnRyLRO2 v3On87IZkzJqiony1bj++hCkQ+L6NA== =AGSu -----END PGP SIGNATURE-----