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
5383f680
Commit
5383f680
authored
Oct 05, 2021
by
Senthil Prabakaran
Committed by
Mouse
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove angle brackets
parent
db8f61fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
skeletons/constr_CHOICE_jer.c
skeletons/constr_CHOICE_jer.c
+2
-2
skeletons/constr_SEQUENCE_OF_jer.c
skeletons/constr_SEQUENCE_OF_jer.c
+3
-3
skeletons/constr_SET_OF_jer.c
skeletons/constr_SET_OF_jer.c
+4
-4
skeletons/constr_SET_jer.c
skeletons/constr_SET_jer.c
+2
-2
skeletons/jer_encoder.c
skeletons/jer_encoder.c
+2
-2
No files found.
skeletons/constr_CHOICE_jer.c
View file @
5383f680
...
@@ -62,14 +62,14 @@ CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
...
@@ -62,14 +62,14 @@ CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
er
.
encoded
=
0
;
er
.
encoded
=
0
;
ASN__CALLBACK3
(
"
<"
,
1
,
mname
,
mlen
,
">
"
,
1
);
ASN__CALLBACK3
(
"
\"
"
,
1
,
mname
,
mlen
,
"
\"
"
,
1
);
tmper
=
elm
->
type
->
op
->
jer_encoder
(
elm
->
type
,
memb_ptr
,
tmper
=
elm
->
type
->
op
->
jer_encoder
(
elm
->
type
,
memb_ptr
,
ilevel
+
1
,
flags
,
cb
,
app_key
);
ilevel
+
1
,
flags
,
cb
,
app_key
);
if
(
tmper
.
encoded
==
-
1
)
return
tmper
;
if
(
tmper
.
encoded
==
-
1
)
return
tmper
;
er
.
encoded
+=
tmper
.
encoded
;
er
.
encoded
+=
tmper
.
encoded
;
ASN__CALLBACK3
(
"</"
,
2
,
mname
,
mlen
,
">"
,
1
);
//
ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
}
}
ASN__ENCODED_OK
(
er
);
ASN__ENCODED_OK
(
er
);
...
...
skeletons/constr_SEQUENCE_OF_jer.c
View file @
5383f680
...
@@ -33,7 +33,7 @@ SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -33,7 +33,7 @@ SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
if
(
mname
)
{
if
(
mname
)
{
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
);
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
);
ASN__CALLBACK3
(
"
<"
,
1
,
mname
,
mlen
,
">"
,
1
);
ASN__CALLBACK3
(
"
\"
"
,
1
,
mname
,
mlen
,
"
\"
:{"
,
3
);
}
}
tmper
=
elm
->
type
->
op
->
jer_encoder
(
elm
->
type
,
memb_ptr
,
ilevel
+
1
,
tmper
=
elm
->
type
->
op
->
jer_encoder
(
elm
->
type
,
memb_ptr
,
ilevel
+
1
,
...
@@ -44,11 +44,11 @@ SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -44,11 +44,11 @@ SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
const
char
*
name
=
elm
->
type
->
xml_tag
;
const
char
*
name
=
elm
->
type
->
xml_tag
;
size_t
len
=
strlen
(
name
);
size_t
len
=
strlen
(
name
);
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
+
1
);
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
+
1
);
ASN__CALLBACK3
(
"
<"
,
1
,
name
,
len
,
"/>"
,
2
);
ASN__CALLBACK3
(
"
\"
"
,
1
,
name
,
len
,
"
\"
"
,
1
);
}
}
if
(
mname
)
{
if
(
mname
)
{
ASN__CALLBACK3
(
"</"
,
2
,
mname
,
mlen
,
">
"
,
1
);
ASN__CALLBACK
(
"}
"
,
1
);
}
}
}
}
...
...
skeletons/constr_SET_OF_jer.c
View file @
5383f680
...
@@ -86,7 +86,7 @@ SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
...
@@ -86,7 +86,7 @@ SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
if
(
mname
)
{
if
(
mname
)
{
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
);
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
);
ASN__CALLBACK3
(
"
<"
,
1
,
mname
,
mlen
,
">
"
,
1
);
ASN__CALLBACK3
(
"
\"
"
,
1
,
mname
,
mlen
,
"
\"
"
,
1
);
}
}
if
(
!
xcan
&&
specs
->
as_XMLValueList
==
1
)
if
(
!
xcan
&&
specs
->
as_XMLValueList
==
1
)
...
@@ -102,9 +102,9 @@ SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
...
@@ -102,9 +102,9 @@ SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
ASN__CALLBACK3
(
"<"
,
1
,
name
,
len
,
"/>"
,
2
);
ASN__CALLBACK3
(
"<"
,
1
,
name
,
len
,
"/>"
,
2
);
}
}
if
(
mname
)
{
/* if(mname) { */
ASN__CALLBACK3
(
"</"
,
2
,
mname
,
mlen
,
">"
,
1
);
/* ASN__CALLBACK3("</", 2, mname, mlen, ">", 1); */
}
/* } */
}
}
...
...
skeletons/constr_SET_jer.c
View file @
5383f680
...
@@ -50,7 +50,7 @@ SET_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
...
@@ -50,7 +50,7 @@ SET_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
if
(
!
xcan
)
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
);
ASN__TEXT_INDENT
(
1
,
ilevel
);
ASN__CALLBACK3
(
"
<"
,
1
,
mname
,
mlen
,
">
"
,
1
);
ASN__CALLBACK3
(
"
\"
"
,
1
,
mname
,
mlen
,
"
\"
"
,
1
);
/* Print the member itself */
/* Print the member itself */
tmper
=
elm
->
type
->
op
->
jer_encoder
(
elm
->
type
,
memb_ptr
,
tmper
=
elm
->
type
->
op
->
jer_encoder
(
elm
->
type
,
memb_ptr
,
...
@@ -59,7 +59,7 @@ SET_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
...
@@ -59,7 +59,7 @@ SET_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
if
(
tmper
.
encoded
==
-
1
)
return
tmper
;
if
(
tmper
.
encoded
==
-
1
)
return
tmper
;
er
.
encoded
+=
tmper
.
encoded
;
er
.
encoded
+=
tmper
.
encoded
;
ASN__CALLBACK3
(
"</"
,
2
,
mname
,
mlen
,
">"
,
1
);
//
ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
}
}
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
-
1
);
if
(
!
xcan
)
ASN__TEXT_INDENT
(
1
,
ilevel
-
1
);
...
...
skeletons/jer_encoder.c
View file @
5383f680
...
@@ -24,13 +24,13 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -24,13 +24,13 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr,
mname
=
td
->
xml_tag
;
mname
=
td
->
xml_tag
;
mlen
=
strlen
(
mname
);
mlen
=
strlen
(
mname
);
ASN__CALLBACK3
(
"
<"
,
1
,
mname
,
mlen
,
">
"
,
1
);
ASN__CALLBACK3
(
"
\"
"
,
1
,
mname
,
mlen
,
"
\"
"
,
1
);
tmper
=
td
->
op
->
jer_encoder
(
td
,
sptr
,
1
,
0
,
cb
,
app_key
);
tmper
=
td
->
op
->
jer_encoder
(
td
,
sptr
,
1
,
0
,
cb
,
app_key
);
if
(
tmper
.
encoded
==
-
1
)
return
tmper
;
if
(
tmper
.
encoded
==
-
1
)
return
tmper
;
er
.
encoded
+=
tmper
.
encoded
;
er
.
encoded
+=
tmper
.
encoded
;
ASN__CALLBACK3
(
"</"
,
2
,
mname
,
mlen
,
">
\n
"
,
xcan
);
//
ASN__CALLBACK3("</", 2, mname, mlen, ">\n", xcan);
ASN__ENCODED_OK
(
er
);
ASN__ENCODED_OK
(
er
);
cb_failed:
cb_failed:
...
...
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