Skip to content

Commit 4ad6f8a

Browse files
committed
Write arguments for external/argument, value type for reference evaluators
https://tracker.physiomeproject.org/show_bug.cgi?id=3833 https://tracker.physiomeproject.org/show_bug.cgi?id=3835
1 parent c40a3fb commit 4ad6f8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/fieldml_write.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static int writeBinds( xmlTextWriterPtr writer, FmlSessionHandle handle, FmlObje
167167

168168
static int writeArguments( xmlTextWriterPtr writer, FmlSessionHandle handle, FmlObjectHandle object )
169169
{
170-
int count = Fieldml_GetArgumentCount( handle, object, 0, 0 );
170+
int count = Fieldml_GetArgumentCount( handle, object, /*isBound*/0, /*isUsed*/1 );
171171
if( count <= 0 )
172172
{
173173
return 0;
@@ -177,7 +177,7 @@ static int writeArguments( xmlTextWriterPtr writer, FmlSessionHandle handle, Fml
177177

178178
for( int i = 1; i <= count; i++ )
179179
{
180-
FmlObjectHandle argument = Fieldml_GetArgument( handle, object, i, 0, 0 );
180+
FmlObjectHandle argument = Fieldml_GetArgument( handle, object, i, /*isBound*/0, /*isUsed*/1 );
181181
if( argument == FML_INVALID_HANDLE )
182182
{
183183
continue;
@@ -478,6 +478,7 @@ static int writeReferenceEvaluator( xmlTextWriterPtr writer, FmlSessionHandle ha
478478

479479
writeObjectName( writer, NAME_ATTRIB, handle, object );
480480
writeObjectName( writer, EVALUATOR_ATTRIB, handle, Fieldml_GetReferenceSourceEvaluator( handle, object ) );
481+
writeObjectName( writer, VALUE_TYPE_ATTRIB, handle, Fieldml_GetValueType( handle, object ) );
481482

482483
writeBinds( writer, handle, object );
483484

0 commit comments

Comments
 (0)