regenerated
diff --git a/tests/tests-asn1c-compiler/119-per-strings-OK.asn1.-Pgen-PER b/tests/tests-asn1c-compiler/119-per-strings-OK.asn1.-Pgen-PER
index 9edb4f0..fdca0be 100644
--- a/tests/tests-asn1c-compiler/119-per-strings-OK.asn1.-Pgen-PER
+++ b/tests/tests-asn1c-compiler/119-per-strings-OK.asn1.-Pgen-PER
@@ -1189,9 +1189,7 @@
.tag_mode = 0,
.type = &asn_DEF_PDU,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = ""
},
@@ -1210,15 +1208,13 @@
"many",
"many",
&asn_OP_SEQUENCE_OF,
- SEQUENCE_OF_constraint,
asn_DEF_many_tags_2,
sizeof(asn_DEF_many_tags_2)
/sizeof(asn_DEF_many_tags_2[0]) - 1, /* 1 */
asn_DEF_many_tags_2, /* Same as above */
sizeof(asn_DEF_many_tags_2)
/sizeof(asn_DEF_many_tags_2[0]), /* 2 */
- 0, /* No OER visible constraints */
- 0, /* No PER visible constraints */
+ { 0, 0, SEQUENCE_OF_constraint },
asn_MBR_many_2,
1, /* Single element */
&asn_SPC_many_specs_2 /* Additional specs */
@@ -1230,9 +1226,7 @@
.tag_mode = 0,
.type = &asn_DEF_many_2,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "many"
},
@@ -1241,9 +1235,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_IA5String,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "ia5"
},
@@ -1252,9 +1244,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_IA5String,
.type_selector = 0,
- .memb_constraints = memb_ia5_c_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ia5_c_constr_5,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ia5_c_constr_5, .general_constraints = memb_ia5_c_constraint_1 },
.default_value = 0,
.name = "ia5-c"
},
@@ -1263,9 +1253,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_IA5String,
.type_selector = 0,
- .memb_constraints = memb_ia5_ce_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ia5_ce_constr_6,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ia5_ce_constr_6, .general_constraints = memb_ia5_ce_constraint_1 },
.default_value = 0,
.name = "ia5-ce"
},
@@ -1274,9 +1262,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_IA5String,
.type_selector = 0,
- .memb_constraints = memb_ia5_ir_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ia5_ir_constr_7,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ia5_ir_constr_7, .general_constraints = memb_ia5_ir_constraint_1 },
.default_value = 0,
.name = "ia5-ir"
},
@@ -1285,9 +1271,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_VisibleString,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "vs"
},
@@ -1296,9 +1280,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_VisibleString,
.type_selector = 0,
- .memb_constraints = memb_vs_c_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_vs_c_constr_9,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_vs_c_constr_9, .general_constraints = memb_vs_c_constraint_1 },
.default_value = 0,
.name = "vs-c"
},
@@ -1307,9 +1289,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_VisibleString,
.type_selector = 0,
- .memb_constraints = memb_vs_ce_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_vs_ce_constr_10,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_vs_ce_constr_10, .general_constraints = memb_vs_ce_constraint_1 },
.default_value = 0,
.name = "vs-ce"
},
@@ -1318,9 +1298,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_VisibleString,
.type_selector = 0,
- .memb_constraints = memb_vs_ir_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_vs_ir_constr_11,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_vs_ir_constr_11, .general_constraints = memb_vs_ir_constraint_1 },
.default_value = 0,
.name = "vs-ir"
},
@@ -1329,9 +1307,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_PrintableString,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "pr"
},
@@ -1340,9 +1316,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_PrintableString,
.type_selector = 0,
- .memb_constraints = memb_pr_c_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_pr_c_constr_13,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_pr_c_constr_13, .general_constraints = memb_pr_c_constraint_1 },
.default_value = 0,
.name = "pr-c"
},
@@ -1351,9 +1325,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_PrintableString,
.type_selector = 0,
- .memb_constraints = memb_pr_ir_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_pr_ir_constr_14,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_pr_ir_constr_14, .general_constraints = memb_pr_ir_constraint_1 },
.default_value = 0,
.name = "pr-ir"
},
@@ -1362,9 +1334,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_NumericString,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "ns"
},
@@ -1373,9 +1343,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_NumericString,
.type_selector = 0,
- .memb_constraints = memb_ns_c_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ns_c_constr_16,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ns_c_constr_16, .general_constraints = memb_ns_c_constraint_1 },
.default_value = 0,
.name = "ns-c"
},
@@ -1384,9 +1352,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_NumericString,
.type_selector = 0,
- .memb_constraints = memb_ns_ce_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ns_ce_constr_17,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ns_ce_constr_17, .general_constraints = memb_ns_ce_constraint_1 },
.default_value = 0,
.name = "ns-ce"
},
@@ -1395,9 +1361,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_NumericString,
.type_selector = 0,
- .memb_constraints = memb_ns_ir_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ns_ir_constr_18,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ns_ir_constr_18, .general_constraints = memb_ns_ir_constraint_1 },
.default_value = 0,
.name = "ns-ir"
},
@@ -1406,9 +1370,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UTF8String,
.type_selector = 0,
- .memb_constraints = memb_ut_c_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ut_c_constr_19,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ut_c_constr_19, .general_constraints = memb_ut_c_constraint_1 },
.default_value = 0,
.name = "ut-c"
},
@@ -1417,9 +1379,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UTF8String,
.type_selector = 0,
- .memb_constraints = memb_ut_ce_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ut_ce_constr_20,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ut_ce_constr_20, .general_constraints = memb_ut_ce_constraint_1 },
.default_value = 0,
.name = "ut-ce"
},
@@ -1428,9 +1388,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UTF8String,
.type_selector = 0,
- .memb_constraints = memb_ut_ir_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_ut_ir_constr_21,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_ut_ir_constr_21, .general_constraints = memb_ut_ir_constraint_1 },
.default_value = 0,
.name = "ut-ir"
},
@@ -1439,9 +1397,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_BMPString,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "bm"
},
@@ -1450,9 +1406,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_BMPString,
.type_selector = 0,
- .memb_constraints = memb_bm_c_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_bm_c_constr_23,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_bm_c_constr_23, .general_constraints = memb_bm_c_constraint_1 },
.default_value = 0,
.name = "bm-c"
},
@@ -1461,9 +1415,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_BMPString,
.type_selector = 0,
- .memb_constraints = memb_bm_cs_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_bm_cs_constr_24,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_bm_cs_constr_24, .general_constraints = memb_bm_cs_constraint_1 },
.default_value = 0,
.name = "bm-cs"
},
@@ -1472,9 +1424,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_BMPString,
.type_selector = 0,
- .memb_constraints = memb_bm_ce_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_bm_ce_constr_25,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_bm_ce_constr_25, .general_constraints = memb_bm_ce_constraint_1 },
.default_value = 0,
.name = "bm-ce"
},
@@ -1483,9 +1433,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_BMPString,
.type_selector = 0,
- .memb_constraints = memb_bm_ir_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_bm_ir_constr_26,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_bm_ir_constr_26, .general_constraints = memb_bm_ir_constraint_1 },
.default_value = 0,
.name = "bm-ir"
},
@@ -1494,9 +1442,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UniversalString,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "us"
},
@@ -1505,9 +1451,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UniversalString,
.type_selector = 0,
- .memb_constraints = memb_us_c_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_us_c_constr_28,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_us_c_constr_28, .general_constraints = memb_us_c_constraint_1 },
.default_value = 0,
.name = "us-c"
},
@@ -1516,9 +1460,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UniversalString,
.type_selector = 0,
- .memb_constraints = memb_us_cs_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_us_cs_constr_29,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_us_cs_constr_29, .general_constraints = memb_us_cs_constraint_1 },
.default_value = 0,
.name = "us-cs"
},
@@ -1527,9 +1469,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UniversalString,
.type_selector = 0,
- .memb_constraints = memb_us_ce_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_us_ce_constr_30,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_us_ce_constr_30, .general_constraints = memb_us_ce_constraint_1 },
.default_value = 0,
.name = "us-ce"
},
@@ -1538,9 +1478,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_UniversalString,
.type_selector = 0,
- .memb_constraints = memb_us_ir_constraint_1,
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = &asn_PER_memb_us_ir_constr_31,
+ { .oer_constraints = 0, .per_constraints = &asn_PER_memb_us_ir_constr_31, .general_constraints = memb_us_ir_constraint_1 },
.default_value = 0,
.name = "us-ir"
},
@@ -1549,9 +1487,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_NativeReal,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "real"
},
@@ -1560,9 +1496,7 @@
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = &asn_DEF_OBJECT_IDENTIFIER,
.type_selector = 0,
- .memb_constraints = 0, /* Defer constraints checking to the member type */
- .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
- .per_constraints = 0, /* No PER visible constraints */
+ { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
.default_value = 0,
.name = "oid"
},
@@ -1618,15 +1552,13 @@
"PDU",
"PDU",
&asn_OP_SEQUENCE,
- SEQUENCE_constraint,
asn_DEF_PDU_tags_1,
sizeof(asn_DEF_PDU_tags_1)
/sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
asn_DEF_PDU_tags_1, /* Same as above */
sizeof(asn_DEF_PDU_tags_1)
/sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
- 0, /* No OER visible constraints */
- 0, /* No PER visible constraints */
+ { 0, 0, SEQUENCE_constraint },
asn_MBR_PDU_1,
31, /* Elements count */
&asn_SPC_PDU_specs_1 /* Additional specs */