Lev Walkin wrote:
Kinross Alastair-AKINROS1 wrote:
Lev Walkin wrote:
Banibrata Dutta wrote:
Hi,
If the ASN.1 specification uses some C/C++ keywords (s.a.
say "class") e.g.
MyType ::= SEQUENCE {
class INTEGER,
index INTEGER
}
would the asn1 compiler typically modify the generated *.h files to
rename "class" to something else ?
Since this is not a tool specific question, i hope it's
okay to ask it here.
The SourceForge's asn1c compiler would rename class to Class. Others
may do differently, as there's no formal standard on it.
--
Lev Walkin
[EMAIL PROTECTED]
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1
I found a couple of similar problems with the RRC information elements
ASN.1 in section 11.3 of the 25.311 spec.
The Number of Transport Blocks choice can have a value of "small".
Unfortunately "small" is a reserved word when using MSVC to compile
the ASN.1 to a .dll file.
A good ASN.1 compiler (such tools do exist!) handles this kind of thing
for you (i.e., translating the ASN.1 identifier "small" into any other
word that is not reserved in your favourite programming language) and
doesn't bother you with changing the ASN.1 specification (something that
is not recommended at all).
--
Olivier DUBUISSON
France Telecom
Recherche & Developpement
R&D/MAPS/AMS - 22307 Lannion Cedex - France
t: +33 2 96 05 38 50 - f: +33 2 96 05 39 45 - http://asn1.elibel.tm.fr/
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1