Skip to content

No source code generated by exp2cxx for a TYPE referencing another enumeration TYPE #397

Open

Description

@msj150629

Hi,

I encountered a problem while building a schema.
Say there are two TYPEs as follows.

TYPE a = b;
END_TYPE;

TYPE b = ENUMERATION OF
(...);
END_TYPE;

I was expecting to see source codes for both 'a' and 'b' generated by exp2cxx, but source codes for 'b' were only generated.

Can someone help me on this?

Thank you!

Activity

  1. changed the title [-]No source code generated for a TYPE referencing another enumeration TYPE[/-] [+]No source code generated by exp2cxx for a TYPE referencing another enumeration TYPE[/+] on Jun 4, 2020
  2. TRThurman commented on Jun 4, 2020

    @TRThurman
    Member
  3. msj150629 commented on Jun 4, 2020

    @msj150629
    Author

    Hi Tom,
    This is Soonjo from NIST.

    This is actually a problem that I had when building ap242e2 schema you shared.
    Some TYPEs with the prefix a3ma or a3ms referencing other enum TYPEs show the problem.

    You can simply test a schema below.

    SCHEMA test;

    TYPE abc = ENUMERATION OF
    (aaa,
    bbb,
    ccc);
    END_TYPE;

    TYPE cde = abc;
    END_TYPE;

    END_SCHEMA;

    exp2cxx generates source codes only for 'abc.
    I might need to test with the latest code because I downloaded several months ago.

  4. TRThurman commented on Jun 4, 2020

    @TRThurman
    Member
  5. msj150629 commented on Jun 16, 2020

    @msj150629
    Author

    This might be relevant with the function 'int TYPEget_RefTypeVarNm( const Type t, char * buf, Schema schema )' in the source code 'classes_type.c' of 'exp2cxx'.

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