mirror of https://gerrit.osmocom.org/asn1c
new twists
This commit is contained in:
parent
cc1f8f4691
commit
ac6db37b7c
|
@ -242,7 +242,7 @@ compare_with_data_out(const char *fname, char *buf, int size) {
|
||||||
mustfail = lastChar == 'P';
|
mustfail = lastChar == 'P';
|
||||||
compare = lastChar != 'C';
|
compare = lastChar != 'C';
|
||||||
|
|
||||||
if(compare && getenv("REGENERATE")) {
|
if((compare && !mustfail) && getenv("REGENERATE")) {
|
||||||
f = fopen(outName, "w");
|
f = fopen(outName, "w");
|
||||||
fwrite(buf, 1, size, f);
|
fwrite(buf, 1, size, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2004, 2005, 2006 Lev Walkin <vlm@lionet.info>.
|
* Copyright (c) 2003, 2004, 2005, 2006, 2007 Lev Walkin <vlm@lionet.info>.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Redistribution and modifications are permitted subject to BSD license.
|
* Redistribution and modifications are permitted subject to BSD license.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,7 +14,17 @@ BEGIN
|
||||||
PDU ::= SEQUENCE {
|
PDU ::= SEQUENCE {
|
||||||
...,
|
...,
|
||||||
str-o IA5String OPTIONAL,
|
str-o IA5String OPTIONAL,
|
||||||
str-m IA5String
|
str-m IA5String,
|
||||||
|
singl Singleton,
|
||||||
|
pdu-2 PDU-2
|
||||||
|
}
|
||||||
|
|
||||||
|
Singleton ::= SEQUENCE {
|
||||||
|
mandatory IA5String DEFAULT "z"
|
||||||
|
}
|
||||||
|
|
||||||
|
PDU-2 ::= CHOICE {
|
||||||
|
str-p2 IA5String
|
||||||
}
|
}
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
Loading…
Reference in New Issue