Skip to content

typedef byte compatibility issue #282

Description

@truposky

Hello I am using this compiler with a c++ proyect and I am having compatibility problems. The problem is that the byte definition is done in std. This is the fail:
/usr/include/c++/9/cstddef:69:14: note: candidates are: ‘enum class std::byte’
69 | enum class byte : unsigned char {};

I solve it by changing the definitions of some files, I change the name of the byte definition to asn_byte. The files are:

  • asn1crt.h:

    line 75 : uint8_t byte;
    line 129: byte *buf
    line 147: byte *buf
    line 181: int GetCharIndex(char ch, byte allowedCharSet[], int setLen);

  • LangGeneric_c.fs:

    **line 295:**GenericLocalVariable {GenericLocalVariable.name = "arr"; varType = "byte"; arrSize = Some sReqBytesForUperEncoding; isStatic = true; initExp = None}

  • Header_c.stg

    line 161: byte arr[];
    line 184: byte arr[];

I guess this asn compiler is not intended for c++ but I hope you can make it compatible as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions