You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No source code generated by exp2cxx for a TYPE referencing another enumeration TYPE #397
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
On Jun 4, 2020, at 3:31 PM, msj150629 ***@***.***> wrote:
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!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
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.
Hi Soonjo,
Yes I recognize that now.
I agree it is from a valid schema.
Thanks for sharing.
Tom
On Jun 4, 2020, at 4:26 PM, msj150629 ***@***.***> wrote:
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;
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#397 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAMMKVFA3PFPLYHPWTJVMBDRVAGPZANCNFSM4NS6WZKQ>.
Thomas Thurman
Principal Electrical Engineer, Rockwell Collins (Retired)
Confidentiality Notice: This e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete/destroy any and all copies of the original message.
E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late, incomplete, or
contain viruses. Therefore, the recipient should check this email and any attachments for the presence of viruses. The sender accepts no liability for any damage caused by any virus transmitted by this email.
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'.
Activity
[-]No source code generated for a TYPE referencing another enumeration TYPE[/-][+]No source code generated by exp2cxx for a TYPE referencing another enumeration TYPE[/+]TRThurman commentedon Jun 4, 2020
msj150629 commentedon Jun 4, 2020
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.
TRThurman commentedon Jun 4, 2020
msj150629 commentedon Jun 16, 2020
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'.