Commit Graph

453 Commits

Author SHA1 Message Date
Lev Walkin b46156d9be naming abstraction 2017-09-05 02:53:05 -07:00
Lev Walkin e0f2a5b46b 0..MAX is unsigned in constraints 2017-08-30 20:21:52 -07:00
Lev Walkin 84382cc1f5 fix infinite recursion in constraints 2017-08-29 22:06:03 -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 20dc624722 new tests 2017-08-27 23:48:46 -07:00
Lev Walkin f9f3e06e21 NativeEnumerated for OER, and tests 2017-08-27 23:48:28 -07:00
Lev Walkin 14fd3e5a89 added explicit (deprecated) ANY flag 2017-08-27 01:39:05 -07:00
Lev Walkin 026055ff81 avoid referencing skeletons to avoid duplicating symbols 2017-08-27 01:28:59 -07:00
Lev Walkin 122002e3a7 generate codecs flags 2017-08-26 23:31:09 -07:00
Lev Walkin 6cd0d567f0 moved out common bit manipulation code 2017-08-26 23:31:09 -07:00
Lev Walkin 8d99d7b5c8 introduced ASN_STRUCT_RESET; preferred over ASN_STRUCT_FREE_CONTENTS_ONLY 2017-08-25 01:06:00 -07:00
Lev Walkin 56d59b46c0 moved skeletons tests out 2017-08-24 13:54:58 -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 e391708ff1 regenerated test cases 2017-08-23 10:29:38 -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 f75b874253 specialization fix, tested on value specialization 2017-08-23 04:44:18 -07:00
Lev Walkin 9ded96c6b2 constness in tests 2017-08-23 04:38:39 -07:00
Lev Walkin e9050cc9c7 inner parameterization test (incomplete) 2017-08-22 02:40:00 -07:00
Lev Walkin db33c8dbde check compile result for 142 2017-08-22 01:41:58 -07:00
Denis Filatov b298f2d210 test for anonymous type decoration 2017-08-12 20:49:46 -07:00
Lev Walkin 18660d26bb regenerated with new ioc code 2017-08-12 20:45:23 -07:00
Lev Walkin f6853ce38e further runtime support for information object classes 2017-08-11 01:37:26 -07:00
Lev Walkin d357f3d53f fix ioc value encoding 2017-08-10 17:40:37 -07:00
Lev Walkin 83d8b2f2a5 fix regeneration 2017-08-10 17:17:01 -07:00
Lev Walkin 700df493dd reshuffled the tests layout 2017-08-10 14:59:15 -07:00
Lev Walkin 67a30129f1 regenerated 2017-08-10 05:51:57 -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 d0f7b91eac print object sets tables for all information object sets 2017-08-07 18:13:04 -07:00
Lev Walkin ea6635bdae better parsing information object class sets 2017-08-06 23:23:04 -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 8041fe87b5 regenerate with simpler constraint checking code 2017-08-02 13:32:24 -07:00
Lev Walkin 5861e8a08d better constraint recognition (fix F-inv though) 2017-08-02 13:32:24 -07:00
Lev Walkin 8aed40c467 verify value range constraints for OER 2017-08-02 13:32:23 -07:00
Lev Walkin 69353a320b test that we ignore size constraints on not-known-multipler character string (utf8string) 2017-08-02 13:32:22 -07:00
Lev Walkin af4dfaa12a OER string test 2017-08-02 13:32:21 -07:00
Lev Walkin 3ad1e32b63 regenerated with OER constraints 2017-08-02 13:32:21 -07:00
Lev Walkin 1f820ba3c7 old test not needed 2017-08-02 13:32:21 -07:00
Lev Walkin 6db40f4c49 check OER in 32-bit and 64-bit modes 2017-08-02 13:32:21 -07:00
Lev Walkin 963fd86536 typo fix 2017-08-02 13:32:20 -07:00
Lev Walkin 40fa826a49 135 add optionals to make it interesting 2017-08-02 13:32:20 -07:00
Lev Walkin a2abcaab2e add OER to -print-constraints 2017-08-02 13:32:19 -07:00
Lev Walkin b2284470f9 add OER INTEGER constraint check 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 a46ab9c15c OER in doc 2017-08-02 13:32:15 -07:00
Lev Walkin 46ef3f339e retain constness of maps 2017-07-06 08:47:53 -07:00
Lev Walkin c7b2edb6e4 Merge pull request #156 from johvik/unused_variable
Add (void) when st is unused
2017-06-27 08:37:37 -07: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
johvik bd3dea9b7b Add (void) when st is unused
This is to get rid of the GCC warning:
"warning: unused variable ‘st’ [-Wunused-variable]"
2017-05-09 10:20:51 +02:00
Bi-Ruei, Chiu 2d6b8c0170 Add more test result for check-parsing.sh 2017-05-08 12:17:04 +08:00
johvik 792216e97f Skip last comma when there are no extensions
This is to get rid of the GCC warning:
"warning: comma at end of enumerator list [-Wpedantic]"
2017-04-11 10:42:21 +02:00
Lev Walkin 2e8ee8d5be Merge pull request #96 from brchiu/fix_declaration_inside_parameter_list_warning
Fix 'declaration inside parameter list' warning
2017-03-26 04:01:01 -07:00
Lev Walkin 4aa1e96d44 regenerated for version bump 2017-03-26 03:56:53 -07:00
Bi-Ruei, Chiu 9b87e5b095 Fix 'declaration inside parameter list' warning
1. Add forward definition section.
2. Move type definition inside A_SEQUENCE_OF() to forward definition section.
3. Modify asn1c_lang_C_type_CHOICE() ...etc functions to achieve it.
4. Modify test cases used during 'make check'.
2017-03-15 16:18:46 +08:00
Lev Walkin 4ecc33785d Makefile is part of distribution 2016-03-14 03:49:06 -07:00
Lev Walkin 7c1dc05f0e do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
Lev Walkin a7591b5c7f regenerated tests based on Wim L patch 2014-10-12 18:37:35 -07:00
Lev Walkin 04fbe62bbc check if timegm is present before emulating 2014-09-17 02:27:01 -07:00
Lev Walkin 05b32b8e33 bump up asn1c version 2014-09-14 18:03:24 -07:00
Lev Walkin e0d321a650 version 0.9.26 2014-09-11 01:28:57 -07:00
Lev Walkin 1550e5c94e change type width detection logic 2014-02-10 11:07:14 -08:00
Lev Walkin 58b74eb570 add signed integer tests for test 134 2014-02-10 09:24:39 -08:00
Lev Walkin 6c52784de1 PER-encoding of integers wider than 32 bits 2014-02-09 04:34:54 -08:00
Lev Walkin ea55215e3c split ADD_CFLAGS and TESTSUITE_CFLAGS 2014-01-14 02:15:13 -08:00
Lev Walkin f84cc014d4 check cc flags viability before setting them 2014-01-14 02:12:24 -08:00
Lev Walkin aef10c36f7 upgrade autotools 2014-01-14 01:47:25 -08:00
Lev Walkin 6169b8d565 fix default constraint checking 2013-12-07 11:02:44 -08:00
Lev Walkin f65e937759 additional PER test 2013-10-17 13:04:57 -07:00
Lev Walkin 9c70e74c0c remove warnings 2013-10-17 13:03:36 -07:00
Lev Walkin 4062b01cd5 add -fline-refs 2013-10-11 14:29:38 -07:00
Lev Walkin 2fce55d3b6 regenerated 2013-03-28 05:00:39 -07:00
Lev Walkin 2a744a7470 Behavior of -fnative-types made default; old behavior saved under -fwide-types 2013-03-27 01:56:23 -07:00
Lev Walkin e14480fa0b fix https://sourceforge.net/p/asn1c/bugs/51/ 2013-03-24 03:28:00 -07:00
Lev Walkin b3751947cb upgrade autotools 2012-09-02 19:36:47 -07:00
Lev Walkin e7c4b96655 update automake and move doc -> docsrc 2010-11-09 03:26:07 -08:00
Lev Walkin 4c776e5921 aclocal-1.10 2010-11-08 02:14:14 -08:00
Lev Walkin 190419b23c PER decoding of open types fix 2010-10-25 19:19:17 -07:00
Lev Walkin ffe79f4450 Enumeration constraints relaxed 2010-10-25 00:10:34 -07:00
Lev Walkin 4da95cf66c newer version of build tools 2010-10-16 03:18:57 -07:00
Lev Walkin 8bb57a29c1 unsigned integer of 32-bit widtth support for per 2007-12-03 13:41:36 +00:00
Lev Walkin a105cbc368 32-bit integer decode/encode in per 2007-11-06 02:35:13 +00:00
Lev Walkin 63b4126c09 C90-compliant negative LONG_MIN 2007-11-06 01:48:46 +00:00
Lev Walkin 27fd0b6a46 upgraded compatibility 2007-08-27 23:57:45 +00:00
Lev Walkin 08afe612de regeneration 2007-07-23 06:49:56 +00:00
Lev Walkin d7a6811e6a new members 2007-06-29 01:42:04 +00:00
Lev Walkin 8032f7ab44 optionality handling 2007-06-27 01:54:57 +00:00
Lev Walkin 34ff90088c pdu added 2007-06-26 23:58:16 +00:00
Lev Walkin a2987ea6f9 instrumentation 2007-06-26 23:56:54 +00:00
Lev Walkin ac6db37b7c new twists 2007-06-26 10:14:11 +00:00
Lev Walkin 06bf7ccb9f reautomakified 2007-06-24 09:13:16 +00:00
Lev Walkin fb953d1754 extensibility fix, at least 2007-06-23 20:06:04 +00:00
Lev Walkin 3a4689a7da BMPString and UniversalString support 2006-11-24 11:20:27 +00:00
Lev Walkin fbaeb8528d dtd for bit string 2006-11-21 10:39:52 +00:00
Lev Walkin 1b6d63d1f9 test for bitstring value constraint 2006-10-27 05:38:20 +00:00
Lev Walkin 1c8d5aacd0 bit string value constraints parsing 2006-10-27 05:37:39 +00:00
Lev Walkin 8e81b7669e multiple constraints of different type 2006-10-21 05:54:08 +00:00
Lev Walkin 5d1daaa59e value assignment handling 2006-10-21 05:53:39 +00:00
Lev Walkin 9ab21b8984 Fixed explicit tagging of an in-lined constructed type. 2006-10-19 02:46:01 +00:00
Lev Walkin 5c541f119e PatterConstraint parsing 2006-10-18 18:40:14 +00:00
Lev Walkin 4a4543ff64 empty IMPORTS section is allowed 2006-10-13 12:37:39 +00:00
Lev Walkin 07aaa34e7d choice constraint generation duplication dropped 2006-10-09 12:52:15 +00:00
Lev Walkin 4b5dae3d64 diffs 2006-10-09 12:27:44 +00:00
Lev Walkin 725883b28d more PER support 2006-10-09 12:07:58 +00:00
Lev Walkin 39cf947882 testing PER visible extensibility in constraints 2006-09-21 02:22:01 +00:00
Lev Walkin 1bad159a5f per constraints checking 2006-09-21 01:58:24 +00:00
Lev Walkin 5b62ca848d constraints for known-multiplier strings 2006-09-21 01:52:07 +00:00
Lev Walkin 8c2ca0b088 XER reference types encoding error 2006-09-17 06:31:08 +00:00
Lev Walkin 866bd7f76b *** empty log message *** 2006-09-14 10:35:20 +00:00
Lev Walkin 22b5ed4142 *** empty log message *** 2006-09-13 02:51:20 +00:00
Lev Walkin d83172f7d3 MEGACO (Media Gateway Control) protocol decoder 2006-09-09 04:49:45 +00:00
Lev Walkin 1b1c5fc79e bit string constraint checking changed 2006-09-08 19:38:11 +00:00
Lev Walkin 9e4f415c9e real test 2006-09-05 16:21:14 +00:00
Lev Walkin fbfc7bcb2f declashing 2006-08-28 02:45:44 +00:00
Lev Walkin 62e48d3dea test referenced value in BIT STRING 2006-08-28 02:33:35 +00:00
Lev Walkin ceac1544e8 non-negative value 2006-08-28 02:30:41 +00:00
Lev Walkin 0c27dd4508 name module 2006-08-28 02:25:55 +00:00
Lev Walkin a0c9290c01 identifier name clash 2006-08-28 02:24:24 +00:00
Lev Walkin ef4a32bd3f test whether bit string values are identifiers 2006-08-28 02:12:49 +00:00
Lev Walkin 5af1a6993b automake-1.9 2006-08-18 01:54:27 +00:00
Lev Walkin 9f5bb3ae4b per support 2006-08-18 01:46:46 +00:00
Lev Walkin 739d9bfb59 updated to ERRLOG -> CTFAIL 2006-07-13 13:28:32 +00:00
Lev Walkin 1eded3544e *** empty log message *** 2006-07-13 11:19:01 +00:00
Lev Walkin 650da77a4e testing optional component of a sequence 2006-06-17 03:30:43 +00:00
Lev Walkin 5045dfaba4 ObjectSets 2006-03-21 09:41:28 +00:00
Lev Walkin 1775697d9c object set 2006-03-21 07:54:45 +00:00
Lev Walkin 171487e6ed some more parameterization 2006-03-21 07:25:18 +00:00
Lev Walkin 0c0bca6bc4 parameterization: direct assignment 2006-03-21 04:48:15 +00:00
Lev Walkin a00d6b3714 refactored parameterization support 2006-03-21 03:40:38 +00:00
Lev Walkin 41635d33dd references 2006-03-18 05:06:57 +00:00
Lev Walkin 8838538855 class dereference 2006-03-17 02:37:08 +00:00
Lev Walkin 166e1634f9 *** empty log message *** 2006-03-16 11:07:13 +00:00
Lev Walkin dc4376dc2f more advanced stuff with defaults 2006-03-16 11:04:55 +00:00
Lev Walkin d370e9f57e parsing WITH SYNTAX clauses 2006-03-16 10:03:35 +00:00
Lev Walkin 5a405b25c9 no comment 2006-03-14 16:29:56 +00:00
Lev Walkin 6ec10329b9 attribute class 2006-03-14 11:48:01 +00:00
Lev Walkin 9c2285abf3 parsing object classes more properly 2006-03-09 08:49:26 +00:00
Lev Walkin 6b3ff54313 standard modules are being picked up 2006-03-06 14:51:00 +00:00
Lev Walkin 1b4d059c14 *** empty log message *** 2005-11-27 12:54:20 +00:00
Lev Walkin 59b176ee35 upgrade: PER related changes 2005-11-26 11:25:14 +00:00
Lev Walkin d1bfea65a0 SET OF/SEQUENCE OF interaction with named and unnamed CHOICE 2005-11-08 03:06:16 +00:00
Lev Walkin 5ab96cda95 new test for Choice 2005-11-07 15:26:47 +00:00
Lev Walkin 1c75173e2a test named sets... 2005-11-07 15:19:05 +00:00
Lev Walkin ac760bf5b9 SET mandatory map generation 2005-10-05 08:59:03 +00:00
Lev Walkin ef62540d72 compiler directives support; TMF 040-1 compatible 2005-09-05 05:17:57 +00:00
Lev Walkin ae7bf3fbe8 YuanMeng was very helpful in finding these 2005-08-29 10:31:14 +00:00
Lev Walkin fee6f715a2 real range 2005-08-27 03:13:51 +00:00
Lev Walkin 4696c74b72 asn1c code generator modifier: <asn1c:pointer> 2005-08-22 12:23:54 +00:00
Lev Walkin b85a8135da automatic dependency tracking 2005-08-18 13:38:19 +00:00
Lev Walkin 8eb4b572fd de-facto things 2005-08-16 16:57:17 +00:00
Lev Walkin cee931eec7 new circular references test 2005-08-16 16:56:59 +00:00
Lev Walkin 0f5d74c6d3 unions are not anonymous 2005-08-14 15:03:31 +00:00
Lev Walkin a02fb390b0 conditional type choice for -fbless-SIZE 2005-08-14 15:01:10 +00:00
Lev Walkin 4b55341c7b extensions of conditional native-typing to -fbless-SIZE constraints 2005-08-14 14:45:44 +00:00
Lev Walkin c3f0b89c0e PER visible constraints are used to select the native representation for INTEGER types 2005-08-14 02:40:04 +00:00
Lev Walkin 082cadcaaa PER visible constraints are used to select the native representation for INTEGER types 2005-08-14 02:18:27 +00:00
Lev Walkin b02a883595 BIT STRING enumerations 2005-08-13 23:51:47 +00:00
Lev Walkin 414b078337 generating enumeration tables for INTEGER types 2005-08-13 23:30:24 +00:00
Lev Walkin 2e9bd5c70b groking obsolete syntax 2005-08-13 09:07:11 +00:00
Lev Walkin e54e942f80 tagging mode is implicit if automatic tags environment is used 2005-07-21 01:18:19 +00:00
Lev Walkin 66d542b6b8 more heuristics testing 2005-07-04 02:03:57 +00:00
Lev Walkin 157504058c new tests for parametrization 2005-07-03 05:27:19 +00:00
Lev Walkin 2535a69eac Better ambigous comments handling. 2005-07-02 21:42:40 +00:00
Lev Walkin b3ee6a65e2 omitting the empty map 2005-05-27 21:58:41 +00:00
Lev Walkin 1b59716f36 some problem 2005-04-13 12:29:49 +00:00
Lev Walkin 87b14d326f uniform constraints checking 2005-03-31 21:52:53 +00:00
Lev Walkin 29a82196bb deeper validation; 2005-03-29 19:05:37 +00:00
Lev Walkin 5b7eeaffb2 better wrapping 2005-03-28 17:52:43 +00:00
Lev Walkin debca6c345 tests 2005-03-28 15:01:58 +00:00
Lev Walkin 5948beefe8 complex DEFAULT 2005-03-24 16:24:47 +00:00
Lev Walkin 1e448d3d33 Support for some CharsDefn 2005-03-24 14:26:38 +00:00
Lev Walkin 80d7dce997 constrained by 2005-03-20 14:50:50 +00:00
Lev Walkin 1893ddfbfa parsing support for CONSTRAINED BY 2005-03-20 14:28:32 +00:00
Lev Walkin 6bd424fa82 modules split 2005-03-20 13:12:58 +00:00
Lev Walkin ff7dd14772 ContainedSubtype support 2005-03-20 12:58:00 +00:00
Lev Walkin 4aa41f4d88 module name 2005-03-20 11:16:20 +00:00
Lev Walkin a7247f9ad2 string type compatibility 2005-03-20 11:07:34 +00:00
Lev Walkin 9871a29be2 more tests 2005-03-18 04:22:14 +00:00
Lev Walkin d6db8028e7 better OID printing 2005-03-18 03:53:05 +00:00
Lev Walkin 3ebc65a699 const qualifiers 2005-03-17 21:57:19 +00:00
Lev Walkin d6aa7aa46d not XMLValueList 2005-03-10 13:47:58 +00:00
Lev Walkin 412dec9f66 test for constraints on primitive types being defined 2005-03-10 11:30:23 +00:00
Lev Walkin c92a74641a testing of spaces in enumeration 2005-03-10 11:20:47 +00:00
Lev Walkin dad2f0935c testing for whitespace in enumerations 2005-03-09 22:19:47 +00:00
Lev Walkin e8318b8db1 fixed name clash in constraint checking code; also changed braces to double quote in #includes 2005-03-06 09:29:03 +00:00
Lev Walkin bf56d5495e removed suprtfluous stuff 2005-03-04 23:50:56 +00:00
Lev Walkin caf0d5a755 proper handling of reserved identifiers 2005-03-04 23:48:19 +00:00
Lev Walkin fe7f6ecddd *** empty log message *** 2005-03-04 22:38:22 +00:00
Lev Walkin c8285715f6 support for a class of circular references 2005-03-04 22:18:20 +00:00
Lev Walkin e0272aa038 new internal layout 2005-03-04 11:26:08 +00:00
Lev Walkin b7f1797ae2 test for successful compilation 2005-03-04 09:10:19 +00:00
Lev Walkin 295e245804 strict enumeration support 2005-02-25 11:47:59 +00:00
Lev Walkin 9f30ef19a2 less space 2005-02-25 11:08:02 +00:00
Lev Walkin c7312e9599 new tests 2005-02-25 10:24:53 +00:00
Lev Walkin c9ad02e399 do not override specifics 2005-02-25 10:24:45 +00:00
Lev Walkin b47df09b06 tests 2005-02-25 08:35:54 +00:00