From: František Dvořák Date: Tue, 19 Jul 2005 08:33:27 +0000 (+0000) Subject: One remaining detail for possibility to have optional enumeration fields. X-Git-Tag: merge_for_1_3_dst~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4e76b5145762285f85b0864dce468d510626681c;p=jra1mw.git One remaining detail for possibility to have optional enumeration fields. --- diff --git a/org.glite.lb.server/src/ws_typeref.c.T b/org.glite.lb.server/src/ws_typeref.c.T index df038b3..90b40f6 100644 --- a/org.glite.lb.server/src/ws_typeref.c.T +++ b/org.glite.lb.server/src/ws_typeref.c.T @@ -1075,10 +1075,7 @@ static int edg_wll_SoapToEvent( gen "\t\t\tout->$act.$fn = in->$name->$usuc;\n"; gen "\t\t\tsoap_unlink(soap,in->$name->$usuc);\n"; } elsif ($ft eq 'int') { - if ($f->{optional}) { - gen "\t\t\tout->$act.$fn = *in->$name->$usuc;\n"; - } - elsif ($f->{codes}) { + if ($f->{codes}) { if ($type eq '_common_') { gen "\t\t\tedg_wll_SoapTo$fuc(in->$name->$usuc,&(out->$act.$fn));\n"; } @@ -1086,6 +1083,9 @@ static int edg_wll_SoapToEvent( gen "\t\t\tedg_wll_SoapTo$name$fuc(in->$name->$usuc,&(out->$act.$fn));\n"; } } + elsif ($f->{optional}) { + gen "\t\t\tout->$act.$fn = *in->$name->$usuc;\n"; + } else { gen "\t\t\tout->$act.$fn = in->$name->$usuc;\n"; }