Commit Graph

1839 Commits

Author SHA1 Message Date
Vasil Velichkov d82f77b2d2 Fix few duplicate 'const' warnings
error: duplicate 'const' [-Werror=edantic]
2017-03-26 04:46:00 -07:00
Vasil Velichkov 1144b350f3 When -Wpedantic is not supported try the -pedantic instead
GCC prior to 4.8 does not supprot -Wpedantic.
See https://gcc.gnu.org/gcc-4.8/changes.html

The travis-ci currently builds with gcc-4.6.3

  $ gcc --version
  gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
2017-03-26 04:42:26 -07:00
Vasil Velichkov 3b434ca548 Exclude test files from the code coverage report
Link asn1c/tests with libasn1cskeletons.a in order to improve
skeletons coverage. When the skeleton files are copied the lcov will
report coverage for each copy separatly.
2017-03-26 04:42:26 -07:00
Vasil Velichkov e318759ef2 Add code coverage using lcov and gcov
To generate the code coverage report you need gcov and lcov installed
and then execute

 ./configure --enable-code-coverage
 make check-code-coverage

 Writing directory view page.
 Overall coverage rate:
   lines......: 76.5% (10519 of 13759 lines)
   functions..: 85.5% (491 of 574 functions)
   branches...: 57.5% (7040 of 12250 branches)
 file:///home/user/asn1c/asn1c-0.9.28-coverage/index.html

Open the index.html with a web browser
2017-03-26 04:42:26 -07:00
Lev Walkin b98b286d7b more authors 2017-03-26 04:12:35 -07:00
Lev Walkin 47c8e47506 Merge pull request #104 from velichkov/asn1c_make_identifier_segfault
Fix segmentation fault in asn1c_make_identifier
2017-03-26 04:12:27 -07:00
Lev Walkin 06a37c85d9 more authors 2017-03-26 04:07:56 -07:00
Lev Walkin 110fc0d802 Merge pull request #102 from daa/master
Use wide types to decode x509 certificate in examples, solves #47
2017-03-26 04:07:09 -07:00
Lev Walkin 0ed483dbb6 more authors 2017-03-26 04:06:11 -07:00
Lev Walkin f3a100974d Merge pull request #128 from akire/windows-universal-build
Windows universal build
2017-03-26 04:04:43 -07:00
Lev Walkin e088a2b07a Merge branch 'master' into windows-universal-build 2017-03-26 04:04:32 -07:00
Lev Walkin 9e0bf1b87a refer to defined macro 2017-03-26 04:03:43 -07: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
Lev Walkin fc9687925f author fix 2017-03-26 03:52:57 -07:00
Lev Walkin 7e6775786d Merge pull request #90 from brchiu/fix_escape_character_missing
Solve "make check-per" failed on Lubuntu
2017-03-26 03:51:30 -07:00
Lev Walkin d27d5b5e72 Merge pull request #89 from brchiu/unify_specs_variable_name
Unify the naming of asn_OCTET_STRING_specifics_t variables
2017-03-26 03:50:37 -07:00
Lev Walkin a964e03306 removed more unnecessary checks 2017-03-26 03:48:48 -07:00
Lev Walkin fa9bb6dcfd version bump 2017-03-26 03:48:47 -07:00
Lev Walkin 98c6b31eca Merge pull request #87 from elfring/Remove_unnecessary_checks1
Delete unnecessary checks before some function calls
2017-03-26 03:43:23 -07:00
Lev Walkin 792b22b912 date 2017-03-26 03:29:55 -07:00
Lev Walkin f43b5025ae include INSTALL into distribution 2017-03-26 03:25:57 -07:00
Lev Walkin 997d4c78e6 copyright info 2017-03-26 03:16:05 -07:00
Lev Walkin 9413414cdd better dir 2017-03-26 03:11:02 -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
Vasil Velichkov e5006dc658 Add check64-134.-gen-PER.c to EXTRA_DIST
becuse the `make dist` does not include it in the archive and
`make distckeck` fails on 64bit systems
2016-12-13 18:13:23 +02:00
Vasil Velichkov 89c49eeff8 Rewrite the 64bit test. Fixes #131
The old test was not working at all and was failing on both 32 and 64
bit systems with

configure:13545: checking size of long is longer than 32 bit
configure:13561: gcc -c -g -O2 -Wall -Wcast-qual -Wchar-subscripts
-Wmissing-prototypes -Wmissing-declarations -Wno-error=cast-align
conftest.c >&5
conftest.c: In function 'main':
conftest.c:32:34: error: 'dummy' undeclared (first use in this function)
 switch (0) case 0: case (sizeof (dummy) >= 8):;
                                  ^
conftest.c:32:34: note: each undeclared identifier is reported only once
for each function it appears in
2016-12-13 17:14:57 +02:00
Lev Walkin 73d449d49c Merge branch 'master' of github.com:vlm/asn1c 2016-12-02 11:36:53 -08:00
Lev Walkin ba3a148eb1 recognize contributors 2016-12-02 11:36:33 -08:00
Lev Walkin f95c499d33 fix generated comments thanks to mkhon@github and Ymbirtt@github 2016-12-02 11:35:00 -08:00
Lev Walkin f3ecbcaaf2 Merge pull request #75 from devjoa/master
Fixed debug logging bug in per_get_few_bits.
2016-12-02 11:25:05 -08:00
Erika Thorsen 2aa10de1a8 Only remove __attributes__ in Windows builds 2016-11-28 08:35:08 +01:00
Bi-Ruei, Chiu 385cbe03d6 Solve "make check-per" failed on Lubuntu 2016-11-15 21:00:27 +08:00
Erika Thorsen afea72f494 Include stdint.h instead of typedef types if Visual Studio 2010 or newer. 2016-11-14 07:55:19 +01:00
Erika Thorsen 8723dc7337 Removed __attribute__ since its not Windows compliant 2016-11-14 07:54:43 +01:00
Bi-Ruei, Chiu 419ac3a6ce Unify the naming of asn_OCTET_STRING_specifics_t with code-generated
'_specifics_t' variables to have 'asn_SPC_' prefix instead of 'asn_DEF_'
prefix.
2016-11-09 20:38:41 +08:00
Bi-Ruei, Chiu 4661dae415 Free memory allocated in importStandardModules() 2016-11-09 00:59:41 +08:00
Bi-Ruei, Chiu b9adfc5f91 Free memory allocated in various functions
1. Add 'ref_cnt' field to asn1p_expr_t.
2. Initialize 'ref_cnt' field to zero when asn1p_expr_t is allocated.
3. Increase 'ref_cnt' field when asn1p_expr_t is cloned by asn1p_value_fromtype().
4. If 'ref_cnt' field of asn1p_expr_t is larger than zero, then asn1p_expr_free() only decrease its value.
5. Free memory pointed by fields of asn1p_expr_t and itself when 'ref_cnt' is zero and asn1p_expr_free() called.
6. Call asn1p_delete(asn) in main().
2016-11-09 00:17:25 +08:00
Bi-Ruei, Chiu 0bfcefc368 Free memory pointed by oid->arcs 2016-11-08 22:37:39 +08:00
Bi-Ruei, Chiu 6f34894ca3 Free memory allocated in asn1c_read_file_dependencies() and asn1c_deps_makelist() 2016-11-08 22:35:16 +08:00
Bi-Ruei, Chiu 64505efde4 Free memory pointed by r_value and r_size 2016-11-08 13:59:29 +08:00
Bi-Ruei, Chiu 9b78083824 Free memory allocated in asn1c_compiled_output() and asn1c_lang_C_type_SEx_OF_def() 2016-11-07 22:19:10 +08:00
Bi-Ruei, Chiu 12021b53b8 Free memory pointed by tag2el, tag2el_cxer and source_file_name 2016-11-04 11:59:45 +08:00
Ozbolt Menegatti 11a3d68be5 Refreshing reserved keywords 2016-10-24 15:22:57 +02:00
Lev Walkin d6a741287b formatting 2016-08-02 04:07:51 -07:00
Lev Walkin 4bf28a8e1b formatting 2016-08-02 04:07:40 -07:00
Lev Walkin 4af4112b9d formatting 2016-08-02 04:06:36 -07:00
Lev Walkin 657dbe7210 formatting 2016-08-02 04:05:48 -07:00
Lev Walkin 83b52d8fdb INSTALL -> INSTALL.md 2016-08-02 04:03:03 -07:00
Lev Walkin 93ed494210 Merge branch 'master' of github.com:vlm/asn1c 2016-08-02 03:54:39 -07:00