Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EXTERNAL support. #140 #5

Merged
merged 4 commits into from
Mar 27, 2017

Conversation

velichkov
Copy link

Similar to #3

  • Support bison v3 (cherry-pick db6c397 from Bison 3 no longer supports YYPARSE_PARAM and YYPARSE_PARAM_TYPE. vlm/asn1c#82)
  • Regenerate asn1p_l.c and asn1p_y.[ch] with (f)lex and bison/yacc on every compile
  • Remove EXTERNAL from asn1p_l.l and asn1p_y.y
  • Add EXTERNAL ASN.1 definition from ITU-T X.208 in
    skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1
  • Add a test case:
    tests/135-EXTERNAL-OK.asn and asn1c/tests/check-src/check-135.c
  • Regenerate all tests/*.asn1.-Pfwide-types files

mkhon and others added 4 commits March 27, 2017 19:36
- Remove EXTERNAL from asn1p_l.l and asn1p_y.y
- Add EXTERNAL ASN.1 definition from ITU-T X.208 in
  skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1
- Add a test case:
  tests/135-EXTERNAL-OK.asn and
  asn1c/tests/check-src/check-135.c
- Regenerate all tests/*.asn1.-Pfwide-types files
The Travis CI build fails because of (--enable-Werror)
asn1p_y.y: In function 'asn1p_error':
asn1p_y.y:2465:16: error: unused parameter 'param' [-Werror=unused-parameter]
@mouse07410
Copy link
Owner

Thank you!! Now - let's do the same for your #4 (that was merged into former master, but as the master is about to switch...)

mouse07410 pushed a commit that referenced this pull request Apr 9, 2017
See also http://stackoverflow.com/questions/25390720/va-arg-gives-something-strange-in-cygwin-x64

  Program received signal SIGSEGV, Segmentation fault.
  (gdb) bt
  #0  0x00007ffff7b7c8f1 in __strlen_sse2_pminub () from /lib64/libc.so.6
  #1  0x0000000000425d29 in asn1c_make_identifier (flags=flags@entry=(AMI_MASK_ONLY_SPACES | AMI_NODELIMITER), expr=expr@entry=0x0) at asn1c_misc.c:73
  #2  0x00000000004263ec in asn1c_type_name (arg=arg@entry=0x7fffffffe000, expr=expr@entry=0x6757c0, _format=<optimized out>,
      _format@entry=TNF_INCLUDE) at asn1c_misc.c:268
  #3  0x00000000004226fc in asn1c_lang_C_type_SIMPLE_TYPE (arg=arg@entry=0x7fffffffe000) at asn1c_C.c:1119
  #4  0x00000000004232c1 in asn1c_lang_C_type_common_INTEGER (arg=0x7fffffffe000) at asn1c_C.c:251
  #5  0x0000000000419c75 in asn1c_compile_expr (arg=arg@entry=0x7fffffffe000) at asn1compiler.c:100
  #6  0x0000000000419f33 in asn1_compile (asn=asn@entry=0x671e10, datadir=datadir@entry=0x426730 "/home/vasko/usr/share/asn1c",
      flags=flags@entry=A1C_NO_C99, argc=2, optc=0, argv=0x7fffffffe268) at asn1compiler.c:44
  #7  0x0000000000401f13 in main (ac=1, av=0x7fffffffe270) at asn1c.c:328
@velichkov velichkov deleted the external-gh140_mouse07410_115 branch April 20, 2017 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants