Free Hero Mesh

Check-in [b175421418]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Change tron8to32 to handle multibyte characters only if has_mbcs is true.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b1754214180f77b60cef08fc90fd813bca540de9
User & Date: user on 2023-07-16 19:46:43
Other Links: manifest | tags
Context
2023-07-18
05:43
Add 'rS' to set replay speed to a number with absolute instead of relative setting. check-in: ec8a917348 user: user tags: trunk
2023-07-16
19:46
Change tron8to32 to handle multibyte characters only if has_mbcs is true. check-in: b175421418 user: user tags: trunk
2023-07-15
02:07
Functions to convert between TRON-8 and TRON-32 (may be used in future for the text editor; currently unused, and may be removed if it is found to be unnecessary) check-in: 198a84f8d8 user: user tags: trunk
Changes

Modified main.c from [3ffe8990f0] to [b9732826a2].

778
779
780
781
782
783
784
785

786
787
788
789
790
791
792
778
779
780
781
782
783
784

785
786
787
788
789
790
791
792







-
+








Uint32*tron8to32(const Uint8*si) {
  // This function does not interpret the internal-only 0xFF code, which will be implemented in picture.c instead.
  Uint16 cs=0;
  int n=0;
  Uint32*so=0;
  int k=0;
  if(*si==0xFE) {
  if(has_mbcs && *si==0xFE) {
    // TRON
    for(k=0;si[k];k++) {
      if(si[k]==31 && si[k+1]) {
        n+=2;
        k++;
      } else if(si[k]==14 || si[k]==30) {
        while(si[k] && si[k]!='\\') {