aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/per_support.h
diff options
context:
space:
mode:
authorWim Lewis <wiml@omnigroup.com>2014-07-29 11:30:10 -0700
committerWim Lewis <wiml@omnigroup.com>2014-07-29 11:30:10 -0700
commit18c2ec9f1dfdc565dc8c6a1a9d826f5f9a5861b7 (patch)
treebfe05721fbc402cef4369b0f034ba85f1c9556f9 /skeletons/per_support.h
parentfb6344ef750a4d822ecd613819deba89b181b932 (diff)
Declare the tags[] tables in skeletons as const.
Constify the PER support structure. Constify a few other private tables in the skeleton code.
Diffstat (limited to 'skeletons/per_support.h')
-rw-r--r--skeletons/per_support.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/skeletons/per_support.h b/skeletons/per_support.h
index 10c84ed0..a75ac94f 100644
--- a/skeletons/per_support.h
+++ b/skeletons/per_support.h
@@ -15,7 +15,7 @@ extern "C" {
/*
* Pre-computed PER constraints.
*/
-typedef struct asn_per_constraint_s {
+typedef const struct asn_per_constraint_s {
enum asn_per_constraint_flags {
APC_UNCONSTRAINED = 0x0, /* No PER visible constraints */
APC_SEMI_CONSTRAINED = 0x1, /* Constrained at "lb" */
@@ -27,9 +27,9 @@ typedef struct asn_per_constraint_s {
long lower_bound; /* "lb" value */
long upper_bound; /* "ub" value */
} asn_per_constraint_t;
-typedef struct asn_per_constraints_s {
- asn_per_constraint_t value;
- asn_per_constraint_t size;
+typedef const struct asn_per_constraints_s {
+ struct asn_per_constraint_s value;
+ struct asn_per_constraint_s size;
int (*value2code)(unsigned int value);
int (*code2value)(unsigned int code);
} asn_per_constraints_t;