Hi,

USB descriptor strings must be UTF-16-LE encoded, but other than that I know of no use for anything but basic ascii on an 8 bit device.

I too would go for rejecting mixed prefixes.

Maarten


Sergey Belyashov schreef op 2020-07-09 20:55:
First, most of sdcc users uses basic ascii or another 8-bit encodings, so
no any prefixes be used. Only for portable code.
Second, "legal" mix of prefixes is possible in macro expansion. Explicit mixing of strings with different prefixes is just mistake. Imho, rejecting
of mixing is best solution.

Best regards,
Sergey Belyashov

чт, 9 июля 2020 г., 20:30 Philipp Klaus Krause <p...@spth.de>:

Am 09.07.20 um 19:06 schrieb Sergey Belyashov:
> Imho, permit concatenation with same prefixes (if first of strings is
> prefixed but some other not, permit too), reject if they differs.

The current C standards require allowing conctenation of strings with
the same prefix anyway. And concatenation of prefixed with non-prefixed
strings (no matter in which order they appear).

The only implementation-defined aspect is combining string literals with
different prefixes.

See section 6.4.5 of the C2X draft N2479.

Philipp


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to