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, Adrian Pop

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 by cbelyaev, 17 years ago

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.

by cbelyaev, 17 years ago

Attachment: codegen.mo.patch added

Patch

comment:2 by cbelyaev, 17 years ago

Created an attachment (id=26)
Patch

by cbelyaev, 17 years ago

Attachment: Func.h added

Sample external C function header

comment:3 by cbelyaev, 17 years ago

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

by cbelyaev, 17 years ago

Attachment: Func.c added

Sample external C function code

comment:4 by cbelyaev, 17 years ago

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

by cbelyaev, 17 years ago

Attachment: matrix.mo added

Testcase

comment:5 by cbelyaev, 17 years ago

Created an attachment (id=29)
Testcase

by cbelyaev, 17 years ago

Attachment: matrix.mos added

Testcase script

comment:6 by cbelyaev, 17 years ago

Created an attachment (id=30)
Testcase script

comment:7 by Adrian Pop, 17 years ago

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.