Lev Walkin
b5450704fe
generate float instead of double if constraints suggest this
2017-10-04 02:54:16 -07:00
Lev Walkin
026e21abe1
narrowing to support 32-bit floats
2017-10-04 00:49:01 -07:00
Lev Walkin
14e75ed755
upgrade to a new API
2017-09-29 23:15:13 -07:00
Lev Walkin
1711a5dd0e
Merge branch 'master' of github.com:vlm/asn1c
2017-09-26 18:39:11 -07:00
Lev Walkin
2e93c223da
emit cross-compilable attributes
2017-09-26 18:29:15 -07:00
Bi-Ruei, Chiu
59b1bc8e90
Fix some memory leakage and access violation in recent code
2017-09-20 07:30:05 +08:00
Lev Walkin
154519a3a7
removed superfluous constraints duplication
2017-09-06 23:34:40 -07:00
Lev Walkin
b46156d9be
naming abstraction
2017-09-05 02:53:05 -07:00
Lev Walkin
6713bcb012
0..MAX constraint is positive for OER
2017-08-30 20:21:52 -07:00
Ryan Sleevi
a93d9971d2
Add unittest, which revealed that default booleans were not set properly
2017-08-28 17:37:09 -07:00
Lev Walkin
135d7dd4e1
pull extensions for aliased types
2017-08-28 00:21:38 -07:00
Lev Walkin
14fd3e5a89
added explicit (deprecated) ANY flag
2017-08-27 01:39:05 -07:00
Bi-Ruei, Chiu
1f87ac0058
Move type operations to another structure
...
Every type has free, print, check_constraints, ber_decoder, der_encoder,
xer_decoder, xer_encoder, uper_decoder, uper_encoder and outmost_tag
operations. We move them out to a separate structure asn_TYPE_operation_t.
Combined with previous logic simplification, these operations are based
on ASN.1 basic types, constructed types and string types. So we can
reduce the space occupied by asn_TYPE_descriptor_t variables.
2017-08-24 14:09:28 +08:00
Lev Walkin
ade508caed
avoid generating references to empty maps
2017-08-23 10:25:46 -07:00
Lev Walkin
53a28a26c4
empty information object sets are OK
2017-08-23 09:56:53 -07:00
Lev Walkin
d8e07c5f08
parameterized referencing of information object sets
2017-08-23 07:38:30 -07:00
Lev Walkin
cf3f6ebb9f
constness fix
2017-08-23 04:35:34 -07:00
Lev Walkin
792641eed2
add const
2017-08-22 20:41:58 -07:00
Lev Walkin
c0e03b946e
introduce namespaces
2017-08-22 01:48:23 -07:00
Lev Walkin
acdca41847
revert too broad of a change
2017-08-12 20:59:16 -07:00
Denis Filatov
dbb8990a2b
use special name decoration for embedded annonymous types
2017-08-12 20:47:14 -07:00
Lev Walkin
f6853ce38e
further runtime support for information object classes
2017-08-11 01:37:26 -07:00
Lev Walkin
6aae7c62c1
make J2735 compile again
2017-08-10 17:58:56 -07:00
Lev Walkin
5d929d87c7
signedness fix
2017-08-10 15:17:44 -07:00
Lev Walkin
9de6cd89ca
using ioc constraints in run time
2017-08-10 05:51:56 -07:00
Lev Walkin
cd2f48eb5a
structure comparison functions
2017-08-10 02:52:25 -07:00
Lev Walkin
ad0d637c90
generate runtime information object set tables
2017-08-08 02:02:42 -07:00
Lev Walkin
4dcf8367d9
refactor constraint matrix handling
2017-08-07 20:10:05 -07:00
Lev Walkin
62d95d2ef4
rm warnings
2017-08-06 23:41:11 -07:00
Lev Walkin
ea6635bdae
better parsing information object class sets
2017-08-06 23:23:04 -07:00
Lev Walkin
ebdf02646d
Merge pull request #173 from mattipee/mattipee-no-constraints
...
Omit constraints code if -fno-constraints
2017-08-05 18:18:58 -07:00
Lev Walkin
92fc0130ac
Merge pull request #168 from brchiu/fix_compile_J2735_issue
...
Fix compile SAE J2735_201603DA.ASN issue
2017-08-05 18:10:08 -07:00
mattipee
e0b99abe50
Omit constraints code if -fno-constraints
...
Raised in #122 , prevent reference to constraints in generated code if compiled with -fno-constraints
2017-08-04 11:44:04 +01:00
Lev Walkin
da997b1ea1
work in 128-bit integer values while compiling
2017-08-04 01:38:41 -07:00
Bi-Ruei, Chiu
1fa31c9e3e
Simplify the logic of accessing codec function for specific TYPE
2017-08-02 14:06:07 -07:00
Lev Walkin
6bc7a11d9e
follow internal convention
2017-08-02 13:32:24 -07:00
Lev Walkin
b9e98cbaed
avoid compile warning/error
2017-08-02 13:32:24 -07:00
Lev Walkin
322e35e6ec
removed unused function
2017-08-02 13:32:24 -07:00
Lev Walkin
4118ccf997
simplify numeric constraints checking in runtime
2017-08-02 13:32:24 -07:00
Lev Walkin
a28cbb9f66
add constraint debug
2017-08-02 13:32:23 -07:00
Lev Walkin
01582a7184
generate constraints on type
2017-08-02 13:32:23 -07:00
Lev Walkin
3c5d94164c
generate Root elements and Additions elements counters for OER
2017-08-02 13:32:20 -07:00
Lev Walkin
98eabc1c82
a pass over OER constraints
2017-08-02 13:32:18 -07:00
Lev Walkin
b33425f16b
fix OER stubs order
2017-08-02 13:32:18 -07:00
Lev Walkin
ba68c91b71
empty OER stub generator
2017-08-02 13:32:16 -07:00
Lev Walkin
46ef3f339e
retain constness of maps
2017-07-06 08:47:53 -07:00
Bi-Ruei, Chiu
94f0b645d4
Fix compile SAE J2735_201603DA.ASN issue
...
These are unmerged lines of code that I forgot adding in pull request #154 .
2017-06-29 02:32:14 +08:00
Lev Walkin
4087683d67
Merge pull request #158 from johvik/duplicate_const
...
Fix duplicate 'const' warnings
2017-06-27 08:28:49 -07:00
johvik
e70c40724c
Fix duplicate 'const' warnings
...
Since the typedef of asn_INTEGER_specifics_t also contains a const the
compiler complained about:
"warning: duplicate ‘const’ [-Wpedantic]"
2017-05-09 11:06:12 +02:00
Bi-Ruei, Chiu
80fd3065f4
Merge PR99 and its fixes to support parsing Information Object and Information Object Set
...
This is a collection of works :
1. Based on @zhanglei002's pull request 99.
2. A fix by @AuthenticEshkinKot and merged by @mouse07410 at
commit 2c8d366bbe1fc4e4c041e9b0eb9779f8a42d754b of https://github.com/mouse07410/asn1c
to support parsing of Information Object and Information Object Set
3. A fix by @Uri Blumenthal in asn1fix_derefv.c at :
commit ec0ade4f87c807e763e3f35fc5466adb6dda3473 of https://github.com/mouse07410/asn1c
to solve crash on asn1p_value_free().
4. My pull request 18 to @mouse07410's https://github.com/mouse07410/asn1c to solve
problems found during parsing ASN.1 modules of S1AP, RANAP and J2735-201603.
5. My pull request 22 to @mouse07410's https://github.com/mouse07410/asn1c to solve issue 147
and to solve the problem during parsing ASN.1 module of NBAP.
6. My pull request 23 to @mouse07410's https://github.com/mouse07410/asn1c to fix memory leakage
introduced in aforementioned commits.
Most code changes are the same as pull request 153 to this repository.
7. A fix of my bug in item 6 which result asn1c crash, fixed by @mouse07410.
2017-05-07 22:20:30 +08:00