Merge lp:~ceejatec/zorba/sf-trunk into lp:zorba

Proposed by Chris Hillery
Status: Merged
Approved by: Chris Hillery
Approved revision: 10465
Merged at revision: 10462
Proposed branch: lp:~ceejatec/zorba/sf-trunk
Merge into: lp:zorba
Diff against target: 260 lines (+42/-45)
5 files modified
src/compiler/expression/expr.h (+0/-2)
src/compiler/expression/expr_iter.cpp (+2/-0)
src/store/api/shared_types.h (+1/-1)
src/store/naive/pul_primitives.cpp (+33/-40)
test/rbkt/Scripts/w3c/XQTS.xml (+6/-2)
To merge this branch: bzr merge lp:~ceejatec/zorba/sf-trunk
Reviewer Review Type Date Requested Status
Chris Hillery Approve
Review via email: mp+76344@code.launchpad.net

Commit message

Merge of Sourceforge changes through r12117.

Description of the change

Merge of Sourceforge changes through r12117.

To post a comment you must log in.
Revision history for this message
Chris Hillery (ceejatec) wrote :

These are presumably already-reviewed changes.

review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job sf-trunk-2011-09-21T08-00-06.307Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/compiler/expression/expr.h'
--- src/compiler/expression/expr.h 2011-09-16 19:36:18 +0000
+++ src/compiler/expression/expr.h 2011-09-21 07:59:23 +0000
@@ -199,8 +199,6 @@
199199
200public:200public:
201 const namespace_context* getNSCtx() const;201 const namespace_context* getNSCtx() const;
202
203 void compute_scripting_kind() = 0;
204};202};
205203
206204
207205
=== modified file 'src/compiler/expression/expr_iter.cpp'
--- src/compiler/expression/expr_iter.cpp 2011-09-16 19:36:18 +0000
+++ src/compiler/expression/expr_iter.cpp 2011-09-21 07:59:23 +0000
@@ -677,6 +677,7 @@
677 break;677 break;
678 }678 }
679679
680#ifdef ZORBA_WITH_DEBUGGER
680 case debugger_expr_kind:681 case debugger_expr_kind:
681 {682 {
682 debugger_expr* debuggerExpr = static_cast<debugger_expr*>(theExpr);683 debugger_expr* debuggerExpr = static_cast<debugger_expr*>(theExpr);
@@ -695,6 +696,7 @@
695 EXPR_ITER_END();696 EXPR_ITER_END();
696 break;697 break;
697 }698 }
699#endif
698700
699 case function_trace_expr_kind:701 case function_trace_expr_kind:
700 {702 {
701703
=== modified file 'src/store/api/shared_types.h'
--- src/store/api/shared_types.h 2011-09-12 22:42:28 +0000
+++ src/store/api/shared_types.h 2011-09-21 07:59:23 +0000
@@ -90,7 +90,7 @@
9090
91class ICChecker;91class ICChecker;
9292
93struct Annotation;93class Annotation;
94typedef rchandle<Annotation> Annotation_t;94typedef rchandle<Annotation> Annotation_t;
9595
9696
9797
=== modified file 'src/store/naive/pul_primitives.cpp'
--- src/store/naive/pul_primitives.cpp 2011-09-13 13:33:51 +0000
+++ src/store/naive/pul_primitives.cpp 2011-09-21 07:59:23 +0000
@@ -182,11 +182,11 @@
182{182{
183 theSibling.transfer(sibling);183 theSibling.transfer(sibling);
184184
185 uint64_t numNewChildren = 0;185 size_t numNewChildren = 0;
186 uint64_t numChildren = (uint64_t)children.size();186 size_t numChildren = children.size();
187 theNewChildren.resize(numChildren);187 theNewChildren.resize(numChildren);
188188
189 for (uint64_t i = 0; i < numChildren; i++)189 for (size_t i = 0; i < numChildren; i++)
190 {190 {
191 if (i > 0 &&191 if (i > 0 &&
192 children[i]->getNodeKind() == store::StoreConsts::textNode &&192 children[i]->getNodeKind() == store::StoreConsts::textNode &&
@@ -286,10 +286,11 @@
286 UpdatePrimitive(pul, aLoc, target),286 UpdatePrimitive(pul, aLoc, target),
287 theNumApplied(0)287 theNumApplied(0)
288{288{
289 uint64_t numAttrs = (uint64_t)attrs.size();289 size_t numAttrs = attrs.size();
290 theNewAttrs.resize(numAttrs);290 theNewAttrs.resize(numAttrs);
291 for (uint64_t i = 0; i < numAttrs; i++)291 for (size_t i = 0; i < numAttrs; i++) {
292 theNewAttrs[i].transfer(attrs[i]);292 theNewAttrs[i].transfer(attrs[i]);
293 }
293}294}
294295
295296
@@ -335,10 +336,11 @@
335{336{
336 theAttr.transfer(attr);337 theAttr.transfer(attr);
337338
338 uint64_t numAttrs = (uint64_t)newAttrs.size();339 size_t numAttrs = (uint64_t)newAttrs.size();
339 theNewAttrs.resize(numAttrs);340 theNewAttrs.resize(numAttrs);
340 for (uint64_t i = 0; i < numAttrs; i++)341 for (size_t i = 0; i < numAttrs; i++) {
341 theNewAttrs[i].transfer(newAttrs[i]);342 theNewAttrs[i].transfer(newAttrs[i]);
343 }
342}344}
343345
344346
@@ -737,11 +739,12 @@
737{739{
738 theName.transfer(name);740 theName.transfer(name);
739741
740 uint64_t numNodes = (uint64_t)nodes.size();742 size_t numNodes = (uint64_t)nodes.size();
741 theNodes.resize(numNodes);743 theNodes.resize(numNodes);
742744
743 for (uint64_t i = 0; i < numNodes; ++i)745 for (size_t i = 0; i < numNodes; ++i) {
744 theNodes[i].transfer(nodes[i]);746 theNodes[i].transfer(nodes[i]);
747 }
745}748}
746749
747750
@@ -758,11 +761,12 @@
758{761{
759 theName.transfer(name);762 theName.transfer(name);
760763
761 uint64_t numNodes = (uint64_t)nodes.size();764 size_t numNodes = (uint64_t)nodes.size();
762 theNodes.resize(numNodes);765 theNodes.resize(numNodes);
763766
764 for (uint64_t i = 0; i < numNodes; ++i)767 for (size_t i = 0; i < numNodes; ++i) {
765 theNodes[i].transfer(nodes[i]);768 theNodes[i].transfer(nodes[i]);
769 }
766}770}
767771
768772
@@ -873,9 +877,8 @@
873877
874 theIsApplied = true;878 theIsApplied = true;
875879
876 uint64_t numNodes = (uint64_t)theNodes.size();880 size_t numNodes = (uint64_t)theNodes.size();
877 for (uint64_t i = 0; i < numNodes; ++i)881 for (size_t i = 0; i < numNodes; ++i) {
878 {
879 lColl->addNode(theNodes[i], -1);882 lColl->addNode(theNodes[i], -1);
880 ++theNumApplied;883 ++theNumApplied;
881 }884 }
@@ -891,8 +894,7 @@
891 uint64_t lastPos;894 uint64_t lastPos;
892 try {895 try {
893 lastPos = to_xs_unsignedLong(lColl->size()) - 1;896 lastPos = to_xs_unsignedLong(lColl->size()) - 1;
894 } catch (std::range_error& e)897 } catch (std::range_error& e) {
895 {
896 throw ZORBA_EXCEPTION(898 throw ZORBA_EXCEPTION(
897 zerr::ZSTR0060_RANGE_EXCEPTION,899 zerr::ZSTR0060_RANGE_EXCEPTION,
898 ERROR_PARAMS(900 ERROR_PARAMS(
@@ -925,9 +927,8 @@
925927
926 theCollectionPul->setAdjustTreePositions();928 theCollectionPul->setAdjustTreePositions();
927929
928 uint64_t numNodes = (uint64_t)theNodes.size();930 size_t numNodes = (uint64_t)theNodes.size();
929 for (uint64_t i = 0; i < numNodes; ++i)931 for (size_t i = 0; i < numNodes; ++i) {
930 {
931 lColl->addNode(theNodes[i], i);932 lColl->addNode(theNodes[i], i);
932 ++theNumApplied;933 ++theNumApplied;
933 }934 }
@@ -940,8 +941,7 @@
940 (GET_STORE().getCollection(theName, theDynamicCollection).getp());941 (GET_STORE().getCollection(theName, theDynamicCollection).getp());
941 assert(lColl);942 assert(lColl);
942943
943 for (uint64_t i = 0; i < theNumApplied; ++i)944 for (size_t i = 0; i < theNumApplied; ++i) {
944 {
945 ZORBA_ASSERT(theNodes[i] == lColl->nodeAt(0));945 ZORBA_ASSERT(theNodes[i] == lColl->nodeAt(0));
946946
947 lColl->removeNode((uint64_t)0);947 lColl->removeNode((uint64_t)0);
@@ -960,9 +960,8 @@
960960
961 theIsApplied = true;961 theIsApplied = true;
962962
963 uint64_t numNodes = (uint64_t)theNodes.size();963 size_t numNodes = (uint64_t)theNodes.size();
964 for (uint64_t i = 0; i < numNodes; ++i)964 for (size_t i = 0; i < numNodes; ++i) {
965 {
966 lColl->addNode(theNodes[i], -1);965 lColl->addNode(theNodes[i], -1);
967 }966 }
968}967}
@@ -1072,8 +1071,7 @@
1072 uint64_t size;1071 uint64_t size;
1073 try {1072 try {
1074 size = to_xs_unsignedLong(lColl->size());1073 size = to_xs_unsignedLong(lColl->size());
1075 } catch (std::range_error& e)1074 } catch (std::range_error& e) {
1076 {
1077 throw ZORBA_EXCEPTION(1075 throw ZORBA_EXCEPTION(
1078 zerr::ZSTR0060_RANGE_EXCEPTION,1076 zerr::ZSTR0060_RANGE_EXCEPTION,
1079 ERROR_PARAMS(1077 ERROR_PARAMS(
@@ -1087,26 +1085,23 @@
10871085
1088 bool isLast = theIsLast;1086 bool isLast = theIsLast;
10891087
1090 if (theIsLast)1088 if (theIsLast) {
1091 {1089 for (size_t i = numNodes; i > 0; --i) {
1092 for (size_t i = numNodes; i > 0; --i)1090 if (theNodes[i-1] != lColl->nodeAt(size - i)) {
1093 {
1094 if (theNodes[i-1] != lColl->nodeAt(size - i))
1095 {
1096 isLast = false;1091 isLast = false;
1097 break;1092 break;
1098 }1093 }
1099 }1094 }
1100 }1095 }
11011096
1102 if (!isLast)1097 if (!isLast) {
1103 theCollectionPul->setAdjustTreePositions();1098 theCollectionPul->setAdjustTreePositions();
1099 }
11041100
1105 theFound.resize(numNodes);1101 theFound.resize(numNodes);
1106 thePositions.resize(numNodes);1102 thePositions.resize(numNodes);
11071103
1108 for (uint64_t i = 0; i < numNodes; ++i)1104 for (size_t i = 0; i < numNodes; ++i) {
1109 {
1110 theFound[i] = lColl->removeNode(theNodes[i], thePositions[i]);1105 theFound[i] = lColl->removeNode(theNodes[i], thePositions[i]);
1111 ++theNumApplied;1106 ++theNumApplied;
1112 }1107 }
@@ -1118,10 +1113,8 @@
1118 (GET_STORE().getCollection(theName, theDynamicCollection).getp());1113 (GET_STORE().getCollection(theName, theDynamicCollection).getp());
1119 assert(lColl);1114 assert(lColl);
11201115
1121 for (uint64_t i = 0; i < theNumApplied; ++i)1116 for (size_t i = 0; i < theNumApplied; ++i) {
1122 {1117 if (theFound[i]) {
1123 if (theFound[i])
1124 {
1125 lColl->addNode(theNodes[i], thePositions[i]);1118 lColl->addNode(theNodes[i], thePositions[i]);
1126 }1119 }
1127 }1120 }
11281121
=== modified file 'test/rbkt/Scripts/w3c/XQTS.xml'
--- test/rbkt/Scripts/w3c/XQTS.xml 2011-09-13 13:33:51 +0000
+++ test/rbkt/Scripts/w3c/XQTS.xml 2011-09-21 07:59:23 +0000
@@ -62,7 +62,9 @@
62 name="serializationInvocation" 62 name="serializationInvocation"
63 value="The result of an XQuery program can be serialized via the zorba::XQuery::execute methods (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1XQuery.html). Sequence of items can be serialized via the zorba::Serializer::serialize method (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1Serializer.html)."/>63 value="The result of an XQuery program can be serialized via the zorba::XQuery::execute methods (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1XQuery.html). Sequence of items can be serialized via the zorba::Serializer::serialize method (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1Serializer.html)."/>
6464
65 <implementation-defined-item name="serializationDefaults" value="Serialization Feature is supported. Implicit values are: byte-order-mark = no, encoding = UTF-8, media-type = '', normalization-form = '', omix-xml-declaration = no, standalone = omit, version = '1.0', method = xml, doctype-system = '', doctype-public = '', cdata-section-elements = empty list, include-content-type = no, undeclare-prefixes = no, indent = no"/>65 <implementation-defined-item
66 name="serializationDefaults"
67 value="Serialization Feature is supported. Implicit values are: byte-order-mark = no, encoding = UTF-8, media-type = '', normalization-form = '', omix-xml-declaration = no, standalone = omit, version = '1.0', method = xml, doctype-system = '', doctype-public = '', cdata-section-elements = empty list, include-content-type = no, undeclare-prefixes = no, indent = no"/>
6668
67 <implementation-defined-item 69 <implementation-defined-item
68 name="externalFunctionCall" 70 name="externalFunctionCall"
@@ -74,7 +76,9 @@
74 name="traceDestination" 76 name="traceDestination"
75 value="By default, it is std:cerr. Users can modify this via the StaticContext::setTraceStream method."/>77 value="By default, it is std:cerr. Users can modify this via the StaticContext::setTraceStream method."/>
7678
77 <implementation-defined-item name="integerOperations" value="Zorba raises [err:FOAR0002]"/>79 <implementation-defined-item
80 name="integerOperations"
81 value="Zorba raises [err:FOAR0002]"/>
7882
79 <implementation-defined-item name="decimalDigits" value=""/>83 <implementation-defined-item name="decimalDigits" value=""/>
8084

Subscribers

People subscribed via source and target branches