View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000145||ascend||compiler||public||2005-11-29 07:50||2008-02-10 13:02|
|Target Version||Fixed in Version||0.9.6|
|Summary||0000145: external statements and DYNAMIC_PACKAGES not working|
|Description||I have mentioned this issue on the mailing list and wiki (see [[ExternalLibraries]]). I will annotate further discoveries here.|
|Tags||No tags attached.|
In instantiate.c, the following is noted at line ~7640 (phew!):
/* BUG!: CheckStatement and New flavors of same ignore the
type EXT. We never use external relations inside a loop?!
well, ok, maybe they are always hidden as models */
||See also extfunc.c and packages.c|
Do a search on CreateExtern. I think that we dumped using Statements and instead created ExternalFunc (see ascend.y and extfunc.c) . Also grep on CreateBlackBoxRelation.
It's CreateEXTERN. This function currently creates a 'struct Statement *' of type 'EXT'.
Nothing further gets done with it after that though, apparently. So maybe doing something nifty with a 'struct ExternalFunc' could be a good idea here?
What is 'g_ExtVariablesTable' and does it get used somewhere?
I don't see calls to 'CreateBlackBoxRelation' anywhere except
in the function 'AddExtArrayChildren', which is only called from
'ExecuteBlackBoxEXT' which is in turn only called from 'ExecuteEXT',
which never seems to get called at all, because of something that seems
to be missing from 'DoExternal', possibly.
DYNAMIC_PACKAGES are working on Linux; I have a linking problem to overcome in Windows still.
A libtool developer recommended that I try:
||splitting out this task into the separate parts.|
|2005-11-29 07:50||john||New Issue|
|2005-11-29 07:51||john||Note Added: 0000049|
|2005-11-29 07:55||john||Relationship added||has duplicate 0000144|
|2005-11-29 07:56||john||Note Added: 0000050|
|2005-11-30 03:09||john||Note Added: 0000054|
|2006-02-07 13:19||john||Target release||=> 1.0|
|2006-02-07 13:23||john||Target release||1.0 => 0.9.6|
|2006-03-15 08:13||john||Note Added: 0000300|
|2006-03-15 08:13||john||Note Added: 0000301|
|2006-03-15 08:17||john||Note Edited: 0000301|
|2006-03-15 08:28||john||Status||new => assigned|
|2006-03-15 08:28||john||Assigned To||=> john|
|2006-03-15 16:29||john||Note Added: 0000303|
|2006-03-15 16:34||john||Relationship added||related to 0000247|
|2006-03-15 16:35||john||Status||assigned => resolved|
|2006-03-15 16:35||john||Resolution||open => fixed|
|2006-03-15 16:35||john||Note Added: 0000304|
|2006-06-22 07:36||john||Status||resolved => feedback|
|2006-06-22 07:48||john||Status||feedback => resolved|
|2006-06-22 07:48||john||Fixed in Version||=> 0.9.6|
|2008-02-10 13:02||john||Status||resolved => closed|