new twists

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1341 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2007-06-26 10:14:11 +00:00
parent 3b04fba8fd
commit 2fca3ee875
4 changed files with 13 additions and 3 deletions

View File

@ -242,7 +242,7 @@ compare_with_data_out(const char *fname, char *buf, int size) {
mustfail = lastChar == 'P';
compare = lastChar != 'C';
if(compare && getenv("REGENERATE")) {
if((compare && !mustfail) && getenv("REGENERATE")) {
f = fopen(outName, "w");
fwrite(buf, 1, size, f);
fclose(f);

Binary file not shown.

View File

@ -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.
* Redistribution and modifications are permitted subject to BSD license.
*/

View File

@ -14,7 +14,17 @@ BEGIN
PDU ::= SEQUENCE {
...,
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