Merge lp:~paul-lucas/zorba/pjl-misc into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Paul J. Lucas
Approved revision: 11267
Merged at revision: 11540
Proposed branch: lp:~paul-lucas/zorba/pjl-misc
Merge into: lp:zorba
Diff against target: 65 lines (+12/-4)
2 files modified
src/context/static_context.cpp (+11/-4)
src/context/static_context.h (+1/-0)
To merge this branch: bzr merge lp:~paul-lucas/zorba/pjl-misc
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+171441@code.launchpad.net

Commit message

Added ZORBA_IO_NS_PREFIX.

Description of the change

Added ZORBA_IO_NS_PREFIX.

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~paul-lucas/zorba/pjl-misc into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:281 (message):
  Validation queue job pjl-misc-2013-06-26T00-31-54.604Z is finished. The
  final status was:

  No tests were run - build or configure step must have failed.

  Not commiting changes.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

lp:~paul-lucas/zorba/pjl-misc updated
11267. By Paul J. Lucas

Fix.

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 pjl-misc-2013-06-26T02-01-06.391Z 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
1=== modified file 'src/context/static_context.cpp'
2--- src/context/static_context.cpp 2013-06-21 12:54:29 +0000
3+++ src/context/static_context.cpp 2013-06-26 01:59:30 +0000
4@@ -331,6 +331,9 @@
5 static_context::ZORBA_NS_PREFIX = "http://www.zorba-xquery.com/";
6
7 const char*
8+static_context::ZORBA_IO_NS_PREFIX = "http://zorba.io/";
9+
10+const char*
11 static_context::W3C_FN_NS = "http://www.w3.org/2005/xpath-functions";
12
13 const char*
14@@ -529,7 +532,8 @@
15 ********************************************************************************/
16 bool static_context::is_builtin_module(const zstring& ns)
17 {
18- if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0)
19+ if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0 ||
20+ ns.compare(0, strlen(ZORBA_IO_NS_PREFIX), ZORBA_IO_NS_PREFIX) == 0)
21 {
22 return (ns == ZORBA_MATH_FN_NS ||
23 ns == ZORBA_BASE64_FN_NS ||
24@@ -586,7 +590,8 @@
25 ********************************************************************************/
26 bool static_context::is_builtin_virtual_module(const zstring& ns)
27 {
28- if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0)
29+ if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0 ||
30+ ns.compare(0, strlen(ZORBA_IO_NS_PREFIX), ZORBA_IO_NS_PREFIX) == 0)
31 {
32 return (ns == ZORBA_SCRIPTING_FN_NS ||
33 ns == ZORBA_UTIL_FN_NS);
34@@ -612,7 +617,8 @@
35 ********************************************************************************/
36 bool static_context::is_non_pure_builtin_module(const zstring& ns)
37 {
38- if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0)
39+ if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0 ||
40+ ns.compare(0, strlen(ZORBA_IO_NS_PREFIX), ZORBA_IO_NS_PREFIX) == 0)
41 {
42 return (ns == ZORBA_MATH_FN_NS ||
43 ns == ZORBA_INTROSP_SCTX_FN_NS ||
44@@ -638,7 +644,8 @@
45 ********************************************************************************/
46 bool static_context::is_reserved_module(const zstring& ns)
47 {
48- if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0)
49+ if (ns.compare(0, strlen(ZORBA_NS_PREFIX), ZORBA_NS_PREFIX) == 0 ||
50+ ns.compare(0, strlen(ZORBA_IO_NS_PREFIX), ZORBA_IO_NS_PREFIX) == 0)
51 {
52 return (ns == ZORBA_OP_NS || ns == XQUERY_OP_NS);
53 }
54
55=== modified file 'src/context/static_context.h'
56--- src/context/static_context.h 2013-06-15 02:57:08 +0000
57+++ src/context/static_context.h 2013-06-26 01:59:30 +0000
58@@ -511,6 +511,7 @@
59 //
60
61 static const char* ZORBA_NS_PREFIX; // http://www.zorba-xquery.com/
62+ static const char* ZORBA_IO_NS_PREFIX; // http://zorba.io/
63
64 // Namespaces of external modules declaring zorba builtin functions
65 static const char* ZORBA_MATH_FN_NS;

Subscribers

People subscribed via source and target branches