Changeset 6b899c3 in OpenModelica
- Timestamp:
- 2012-11-16T22:53:52+01:00 (11 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 234451a
- Parents:
- 9913f672
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Compiler/FrontEnd/Inst.mo
rf15694a2 r6b899c3 12843 12843 (cache,SOME((exp,prop,attr))) = Static.elabCref(cache,env,cref,impl,false /* Do NOT vectorize arrays; we require a CREF */,pre,info); 12844 12844 (cache,extarg) = instExtGetFargsSingle(cache,env,exp,prop); 12845 assertExtArgOutputIsCrefVariable( extarg,Types.getPropType(prop),Types.propAllConst(prop),info);12845 assertExtArgOutputIsCrefVariable(lang,extarg,Types.getPropType(prop),Types.propAllConst(prop),info); 12846 12846 then 12847 12847 (cache,extarg); … … 12856 12856 12857 12857 protected function assertExtArgOutputIsCrefVariable 12858 input Option<String> lang; 12858 12859 input DAE.ExtArg arg; 12859 12860 input DAE.Type ty; … … 12861 12862 input Absyn.Info info; 12862 12863 algorithm 12863 _ := match ( arg,ty,c,info)12864 _ := match (lang,arg,ty,c,info) 12864 12865 local 12865 12866 String str; 12866 case (_,DAE.T_ARRAY(ty = _),_,_) 12867 case (SOME("builtin"),_,_,_,_) then (); 12868 case (_,_,DAE.T_ARRAY(ty = _),_,_) 12867 12869 equation 12868 12870 str = Types.unparseType(ty); 12869 12871 Error.addSourceMessage(Error.EXTERNAL_FUNCTION_RESULT_ARRAY_TYPE,{str},info); 12870 12872 then fail(); 12871 case ( DAE.EXTARG(type_=_),_,DAE.C_VAR(),_) then ();12872 case (_,_, DAE.C_VAR(),_)12873 case (_,DAE.EXTARG(type_=_),_,DAE.C_VAR(),_) then (); 12874 case (_,_,_,DAE.C_VAR(),_) 12873 12875 equation 12874 12876 str = DAEDump.dumpExtArgStr(arg);
Note: See TracChangeset
for help on using the changeset viewer.