Changeset 4f671af in OpenModelica
- Timestamp:
- 2016-04-04T14:06:30+02:00 (8 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:
- 536387b
- Parents:
- b4f223e
- git-author:
- Martin Sjölund <martin.sjolund@…> (04/04/16 14:06:30)
- git-committer:
- hudson <openmodelica@…> (04/04/16 14:06:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Compiler/Util/List.mo
r98214dc r4f671af 407 407 output list<T> outList=inList2; 408 408 algorithm 409 if listEmpty(outList) then 410 outList := listReverse(inList1); 411 return; 412 end if; 409 // Do not optimize the case listEmpty(inList2) and listLength(inList1)==1 410 // since we use listReverseInPlace together with this function. 411 // An alternative would be to keep both (and rename this append_reverse_always_copy) 413 412 for e in inList1 loop 414 413 outList := e::outList;
Note: See TracChangeset
for help on using the changeset viewer.