mirror of https://gerrit.osmocom.org/asn1c
const
This commit is contained in:
parent
84291e0c7e
commit
e3e4157cfc
|
@ -1364,7 +1364,7 @@ emit_constraint_checking_code(arg_t *arg) {
|
||||||
ACT_EL_VALUE);
|
ACT_EL_VALUE);
|
||||||
|
|
||||||
if(size_present || value_present) {
|
if(size_present || value_present) {
|
||||||
OUT("%s_t *st = sptr;\n", MKID(arg->expr->Identifier));
|
OUT("const %s_t *st = sptr;\n", MKID(arg->expr->Identifier));
|
||||||
if(size_present) {
|
if(size_present) {
|
||||||
OUT("size_t size;\n");
|
OUT("size_t size;\n");
|
||||||
OUT("size_t min_size __attribute__ ((unused)) = %ld;\n",
|
OUT("size_t min_size __attribute__ ((unused)) = %ld;\n",
|
||||||
|
@ -1848,7 +1848,7 @@ emit_alphabet_check_cycle(arg_t *arg) {
|
||||||
|
|
||||||
OUT("/* The underlying type is %s */\n",
|
OUT("/* The underlying type is %s */\n",
|
||||||
ASN_EXPR_TYPE2STR(etype));
|
ASN_EXPR_TYPE2STR(etype));
|
||||||
OUT("%s_t *st = sptr;\n", MKID(arg->expr->Identifier));
|
OUT("const %s_t *st = sptr;\n", MKID(arg->expr->Identifier));
|
||||||
|
|
||||||
switch(etype) {
|
switch(etype) {
|
||||||
case ASN_STRING_UTF8String:
|
case ASN_STRING_UTF8String:
|
||||||
|
|
Loading…
Reference in New Issue