]> rtime.felk.cvut.cz Git - frescor/forb.git/commitdiff
Fixed generation of prototypes with native out types
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 20 Oct 2008 13:20:39 +0000 (15:20 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 20 Oct 2008 13:20:39 +0000 (15:20 +0200)
forb-idl/forb-idl-utils.c

index dc8314d55c20cac6c54dc5b60e7ed5fd373804b9..bac2f9cc5af8f4c9238d2d378b877da2586be537 100644 (file)
@@ -526,8 +526,13 @@ oidl_param_info(IDL_tree in_param, IDL_ParamRole role, gboolean *isSlice)
        case IDLN_NATIVE:
                if ( IDL_NATIVE (param).user_type
                     && strcmp (IDL_NATIVE (param).user_type,
-                               "IDL_variable_length_struct") == 0 )
+                               "IDL_variable_length_struct") == 0 ) {
                        return role == DATA_OUT ? 2 : 1;
+               }
+               else {
+                       return role == DATA_IN ? 0 : 1;
+                 
+               }
                break;
 
        case IDLN_EXCEPT_DCL: