Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
8041fe87
Commit
8041fe87
authored
Aug 02, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regenerate with simpler constraint checking code
parent
4118ccf9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
58 deletions
+58
-58
tests/136-oer-long-OK.asn1.-Pgen-OER
tests/136-oer-long-OK.asn1.-Pgen-OER
+24
-24
tests/137-oer-string-OK.asn1.-Pgen-OER
tests/137-oer-string-OK.asn1.-Pgen-OER
+6
-6
tests/138-oer-constraints-OK.asn1.-Pgen-OER
tests/138-oer-constraints-OK.asn1.-Pgen-OER
+28
-28
No files found.
tests/136-oer-long-OK.asn1.-Pgen-OER
View file @
8041fe87
...
...
@@ -345,41 +345,41 @@ memb_signed33ext_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
/*** <<< CTDEFS [T] >>> ***/
static asn_oer_constraints_t asn_OER_memb_unsigned8_constr_2 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 255
} /* (0..255) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (0..255) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_unsigned16_constr_3 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 65535
} /* (0..65535) */,
{ 0, 0, 0 }
};
{
2, 1
} /* (0..65535) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_unsigned16stack_constr_4 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 255
} /* (0..255) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (0..255) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_unsigned16stack_ext_constr_5 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 32767
} /* (0..32767) */,
{ 0, 0, 0 }
};
{
2, 1
} /* (0..32767) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_unsigned33_constr_6 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 5000000000
} /* (0..5000000000) */,
{ 0, 0, 0 }
};
{
8, 1
} /* (0..5000000000) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_minmax_constr_7 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
};
{ 0, 0 },
-1
};
static asn_oer_constraints_t asn_OER_memb_signed8_constr_9 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -128, 127
} /* (-128..127) */,
{ 0, 0, 0 }
};
{
1, 0
} /* (-128..127) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_signed16_constr_10 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -32768, 32767
} /* (-32768..32767) */,
{ 0, 0, 0 }
};
{
2, 0
} /* (-32768..32767) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_signed16stack_constr_11 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -128, 127
} /* (-128..127) */,
{ 0, 0, 0 }
};
{
1, 0
} /* (-128..127) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_signed16stack_ext_constr_12 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -32768, 32767
} /* (-32768..32767) */,
{ 0, 0, 0 }
};
{
2, 0
} /* (-32768..32767) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_signed32_constr_13 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -2000000000, 200000000
0 } /* (-2000000000..2000000000) */,
{ 0, 0, 0 }
};
{
4,
0 } /* (-2000000000..2000000000) */,
-1
};
static asn_oer_constraints_t asn_OER_memb_signed33ext_constr_14 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
};
{ 0, 0 },
-1
};
/*** <<< STAT-DEFS [T] >>> ***/
...
...
tests/137-oer-string-OK.asn1.-Pgen-OER
View file @
8041fe87
...
...
@@ -159,14 +159,14 @@ memb_con_universal_constraint_6(asn_TYPE_descriptor_t *td, const void *sptr,
/*** <<< CTDEFS [T] >>> ***/
static asn_oer_constraints_t asn_OER_memb_con_ia5_constr_7 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 2, 2 }
/* (SIZE(2..2)) */};
{ 0, 0 },
2
/* (SIZE(2..2)) */};
static asn_oer_constraints_t asn_OER_memb_con_utf8_constr_8 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
/* (SIZE(0..MAX)) */};
{ 0, 0 },
-1
/* (SIZE(0..MAX)) */};
static asn_oer_constraints_t asn_OER_memb_con_universal_constr_9 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 2, 2 }
/* (SIZE(2..2)) */};
{ 0, 0 },
2
/* (SIZE(2..2)) */};
/*** <<< STAT-DEFS [T] >>> ***/
...
...
tests/138-oer-constraints-OK.asn1.-Pgen-OER
View file @
8041fe87
...
...
@@ -285,8 +285,8 @@ B_0_0_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [B-0-0] >>> ***/
static asn_oer_constraints_t asn_OER_type_B_0_0_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 0
} /* (0..0) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (0..0) */,
-1
};
/*** <<< STAT-DEFS [B-0-0] >>> ***/
...
...
@@ -457,8 +457,8 @@ C_1_2_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [C-1-2] >>> ***/
static asn_oer_constraints_t asn_OER_type_C_1_2_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 1, 2
} /* (1..2) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (1..2) */,
-1
};
/*** <<< STAT-DEFS [C-1-2] >>> ***/
...
...
@@ -629,8 +629,8 @@ D_inv_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [D-inv] >>> ***/
static asn_oer_constraints_t asn_OER_type_D_inv_constr_1 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
};
{ 0, 0 },
-1
};
/*** <<< STAT-DEFS [D-inv] >>> ***/
...
...
@@ -801,8 +801,8 @@ E_2_5_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [E-2-5] >>> ***/
static asn_oer_constraints_t asn_OER_type_E_2_5_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 2, 5
} /* (2..5) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (2..5) */,
-1
};
/*** <<< STAT-DEFS [E-2-5] >>> ***/
...
...
@@ -973,8 +973,8 @@ F_inv_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [F-inv] >>> ***/
static asn_oer_constraints_t asn_OER_type_F_inv_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 10
} /* (0..10) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (0..10) */,
-1
};
/*** <<< STAT-DEFS [F-inv] >>> ***/
...
...
@@ -1145,8 +1145,8 @@ G_3_3_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [G-3-3] >>> ***/
static asn_oer_constraints_t asn_OER_type_G_3_3_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 3, 3
} /* (3..3) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (3..3) */,
-1
};
/*** <<< STAT-DEFS [G-3-3] >>> ***/
...
...
@@ -1317,8 +1317,8 @@ H_4_5_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [H-4-5] >>> ***/
static asn_oer_constraints_t asn_OER_type_H_4_5_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 4, 5
} /* (4..5) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (4..5) */,
-1
};
/*** <<< STAT-DEFS [H-4-5] >>> ***/
...
...
@@ -1489,8 +1489,8 @@ I_0_5_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [I-0-5] >>> ***/
static asn_oer_constraints_t asn_OER_type_I_0_5_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 5
} /* (0..5) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (0..5) */,
-1
};
/*** <<< STAT-DEFS [I-0-5] >>> ***/
...
...
@@ -1661,8 +1661,8 @@ J_4_9_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [J-4-9] >>> ***/
static asn_oer_constraints_t asn_OER_type_J_4_9_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 4, 9
} /* (4..9) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (4..9) */,
-1
};
/*** <<< STAT-DEFS [J-4-9] >>> ***/
...
...
@@ -1833,8 +1833,8 @@ K_inv_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [K-inv] >>> ***/
static asn_oer_constraints_t asn_OER_type_K_inv_constr_1 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
};
{ 0, 0 },
-1
};
/*** <<< STAT-DEFS [K-inv] >>> ***/
...
...
@@ -2005,8 +2005,8 @@ L_0_5_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [L-0-5] >>> ***/
static asn_oer_constraints_t asn_OER_type_L_0_5_constr_1 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 5
} /* (0..5) */,
{ 0, 0, 0 }
};
{
1, 1
} /* (0..5) */,
-1
};
/*** <<< STAT-DEFS [L-0-5] >>> ***/
...
...
@@ -2177,8 +2177,8 @@ M_inv_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [M-inv] >>> ***/
static asn_oer_constraints_t asn_OER_type_M_inv_constr_1 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
};
{ 0, 0 },
-1
};
/*** <<< STAT-DEFS [M-inv] >>> ***/
...
...
@@ -2349,8 +2349,8 @@ N_inv_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [N-inv] >>> ***/
static asn_oer_constraints_t asn_OER_type_N_inv_constr_1 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
};
{ 0, 0 },
-1
};
/*** <<< STAT-DEFS [N-inv] >>> ***/
...
...
@@ -2521,8 +2521,8 @@ O_inv_encode_oer(asn_TYPE_descriptor_t *td,
/*** <<< CTDEFS [O-inv] >>> ***/
static asn_oer_constraints_t asn_OER_type_O_inv_constr_1 GCC_NOTUSED = {
{ 0, 0
, 0
},
{ 0, 0, 0 }
};
{ 0, 0 },
-1
};
/*** <<< STAT-DEFS [O-inv] >>> ***/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment