Opened 17 years ago

Last modified 17 years ago

#146 closed defect (fixed)

Uncomplete generation of output array variable in external function call wrapper

Reported by: cbelyaev Owned by: cbelyaev
Priority: blocker Milestone:
Component: Version:
Keywords: Cc: cbelyaev, adrpo

Description


Attachments (5)

codegen.mo.patch (2.2 KB) - added by cbelyaev 17 years ago.
Patch
Func.h (69 bytes) - added by cbelyaev 17 years ago.
Sample external C function header
Func.c (247 bytes) - added by cbelyaev 17 years ago.
Sample external C function code
matrix.mo (294 bytes) - added by cbelyaev 17 years ago.
Testcase
matrix.mos (149 bytes) - added by cbelyaev 17 years ago.
Testcase script

Download all attachments as: .zip

Change History (12)

comment:1 Changed 17 years ago by cbelyaev

When generating external C function call wrapper code generation for output array variable initialization does not take place. Thus simulating halts with:
Assertion failed: real_array_ok(&a), file real_array.c, line 1271

Code sample and patch included.

Changed 17 years ago by cbelyaev

Patch

comment:2 Changed 17 years ago by cbelyaev

Created an attachment (id=26)
Patch

Changed 17 years ago by cbelyaev

Sample external C function header

comment:3 Changed 17 years ago by cbelyaev

Created an attachment (id=27)
Sample external C function header

Changed 17 years ago by cbelyaev

Sample external C function code

comment:4 Changed 17 years ago by cbelyaev

Created an attachment (id=28)
Sample external C function code

Changed 17 years ago by cbelyaev

Testcase

comment:5 Changed 17 years ago by cbelyaev

Created an attachment (id=29)
Testcase

Changed 17 years ago by cbelyaev

Testcase script

comment:6 Changed 17 years ago by cbelyaev

Created an attachment (id=30)
Testcase script

comment:7 Changed 17 years ago by adrpo

Hi Constantin,

I applied the patch in Subversion, revision: 3126.
Many thanks for the patch!

Cheers,
Adrian Pop/

Note: See TracTickets for help on using tickets.