[nifi-minifi-cpp] Git Push Summary

2017-05-04 Thread aldrin
Repository: nifi-minifi-cpp
Updated Branches:
  refs/heads/MINIFI-149 [deleted] 305b910cf


[nifi-minifi-cpp] Git Push Summary

2017-05-04 Thread aldrin
Repository: nifi-minifi-cpp
Updated Branches:
  refs/heads/travis-integration [deleted] cff2531d4


[nifi-minifi-cpp] Git Push Summary

2017-05-04 Thread aldrin
Repository: nifi-minifi-cpp
Updated Branches:
  refs/heads/MINIFI-227 [deleted] 289ac43fe


[nifi-minifi-cpp] Git Push Summary

2017-05-04 Thread aldrin
Repository: nifi-minifi-cpp
Updated Branches:
  refs/heads/MINIFI-227-merge [deleted] 33b3759c0


[nifi-minifi-cpp] Git Push Summary

2017-05-04 Thread aldrin
Repository: nifi-minifi-cpp
Updated Branches:
  refs/heads/MINIFI-77 [deleted] 41fe43079


svn commit: r19468 - /dev/nifi/nifi-1.2.0/

2017-05-04 Thread bbende
Author: bbende
Date: Thu May  4 20:17:33 2017
New Revision: 19468

Log:
Staging Apache NiFi 1.2.0 RC1

Added:
dev/nifi/nifi-1.2.0/
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz   (with props)
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.asc
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.md5
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha1
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha256
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip   (with props)
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip.asc
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip.md5
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip.sha1
dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip.sha256
dev/nifi/nifi-1.2.0/nifi-1.2.0-source-release.zip   (with props)
dev/nifi/nifi-1.2.0/nifi-1.2.0-source-release.zip.asc
dev/nifi/nifi-1.2.0/nifi-1.2.0-source-release.zip.md5
dev/nifi/nifi-1.2.0/nifi-1.2.0-source-release.zip.sha1
dev/nifi/nifi-1.2.0/nifi-1.2.0-source-release.zip.sha256
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.tar.gz   (with props)
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.tar.gz.asc
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.tar.gz.md5
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.tar.gz.sha1
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.tar.gz.sha256
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.zip   (with props)
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.zip.asc
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.zip.md5
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.zip.sha1
dev/nifi/nifi-1.2.0/nifi-toolkit-1.2.0-bin.zip.sha256

Added: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz
==
Binary file - no diff available.

Propchange: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz
--
svn:mime-type = application/octet-stream

Added: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.asc
==
--- dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.asc (added)
+++ dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.asc Thu May  4 20:17:33 2017
@@ -0,0 +1,16 @@
+-BEGIN PGP SIGNATURE-
+
+iQIcBAABCgAGBQJZC3hPAAoJEKDdqe1QcRw5Hz8P/iCBoyMZr9Bfae2ioYYCOfyB
+AR+tGYjPDK1Kb4HX5kaXoClS/fxgcG/8m8EQ5ODyWOc5L5CvG+mxwrr5kiULgFkD
+En7EAhf1P3vuzAZ0r1KLAJopcKXs7E0ej6NStKJ9E1AEVVONjgLhmqXYh2baXc65
+OqTPl1jSxnC53qSYxdVIA7tkc3tk0HRRCsQk7DKlUFvngFsb2EdNCFuoNBLF9EqF
+7OayzUZwDBpVSYUm88MJ01FSPJCokGY195DmJZTYCTrM7o1y3ibF5lwIaRU+5Tla
+tsqitrEByMDQ/l+ik44TnYe7bBmvV7sqm8usuNBYuIAKJ1N5Opf5uX+mJtWKbf2n
+QYSNsoIjrSDtmNBRgUjSMmuEOW/iOIHt70pmc4HlEnsmAl8Uau6SV+7IJsvXVUkU
+OpzdWE1UqLO2UuKOtjb7MWbwpLO32GjXfDRAe7rtCWR879/DIDiE5J+HLLoyziSx
+zjswQ7hp4/xHAqXgsayS2PlP6Aoc0rje9mxcqPgq+tiuoTI7qQuwrubR9k/MQRGu
+9Bf+U/OKCoXIH9vDwidKKq43UhFMEvT65T703nkueq02h/RdTf0+IxVL0dFiUb8W
+09tsDljkkCRocRt/20j4i9yb/NLdTatedtNA4il+6lSZzYRirGrk9xjiCqjBrlqM
+nC3biCuOqqqhM2v8VSNs
+=Awj4
+-END PGP SIGNATURE-

Added: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.md5
==
--- dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.md5 (added)
+++ dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.md5 Thu May  4 20:17:33 2017
@@ -0,0 +1 @@
+1ad8d9cdf324abc76c2054036c14e5ef

Added: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha1
==
--- dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha1 (added)
+++ dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha1 Thu May  4 20:17:33 2017
@@ -0,0 +1 @@
+73f5bfe76876173bb537d8e83ae79e5bf2cf903e

Added: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha256
==
--- dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha256 (added)
+++ dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.tar.gz.sha256 Thu May  4 20:17:33 2017
@@ -0,0 +1 @@
+e0bd1e5ea565321a1fdac78fcbcd9623f84dbc6698cd53ea50d113f4125c7517

Added: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip
==
Binary file - no diff available.

Propchange: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip
--
svn:mime-type = application/octet-stream

Added: dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip.asc
==
--- dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip.asc (added)
+++ dev/nifi/nifi-1.2.0/nifi-1.2.0-bin.zip.asc Thu May  4 20:17:33 2017
@@ -0,0 +1,16 @@
+-BEGIN PGP SIGNATURE-
+
+iQIcBAABCgAGBQJZC3hbAAoJEKDdqe1QcRw5QnYP/1IFcnlSO0e9CbI8j7hHOXp7
+zVUNKrBj9W2IH90Je6006dRLNjrVEuMbaslXDqsPLyV4j0a5Fg+RDRW4F7pJo9uX
+075Q7Sge0A5g/aYmBiArLMA7kRGfXdJSH4mn90ZRvFepO98zuTFPM06x4gOZCGza
+aG0hmhOm39gkOxrqGmQ44bIDDIYML7mWtFEoKSt0iPxi80QPjxNauZb3OYwYKmv+
+R5XDH6Ez9+rFbQWHR0I3dsusOYeyMDobNbl8eG4k8dG0cMYJUPr1ngek4HBSlCua

[jira] [Commented] (MINIFI-258) Avoid using singleton for Configure.

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997332#comment-15997332
 ] 

ASF GitHub Bot commented on MINIFI-258:
---

Github user brosander commented on the issue:

https://github.com/apache/nifi-minifi-cpp/pull/91
  
Thanks for feedback, changed those back and am rerunning build/tests


> Avoid using singleton for Configure. 
> -
>
> Key: MINIFI-258
> URL: https://issues.apache.org/jira/browse/MINIFI-258
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++
>Reporter: marco polo
>Assignee: Bryan Rosander
>
> Avoiding a singleton for Configure will allow us to eventually support 
> multiple, disparate flows. The object FlowConfiguration can be passed with 
> the information in Configure. This has increased coupling dramatically while 
> also limiting how configurations can be stored within minifi. 
> It stands to reason that to eventually support C2 activities and to 
> facilitate multiple configurations, we will need to remove state from the 
> global level and make it something that is referenced from the objects which 
> care ( proper encapsulation ). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[nifi] Git Push Summary

2017-05-04 Thread bbende
Repository: nifi
Updated Tags:  refs/tags/nifi-1.2.0-RC1 [created] 21035b9b5


[jira] [Commented] (MINIFI-258) Avoid using singleton for Configure.

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997275#comment-15997275
 ] 

ASF GitHub Bot commented on MINIFI-258:
---

Github user phrocker commented on a diff in the pull request:

https://github.com/apache/nifi-minifi-cpp/pull/91#discussion_r114861939
  
--- Diff: libminifi/include/core/yaml/YamlConfiguration.h ---
@@ -41,10 +42,12 @@ namespace core {
 class YamlConfiguration : public FlowConfiguration {
 
  public:
-  YamlConfiguration(std::shared_ptr repo,
-std::shared_ptr flow_file_repo,
+  YamlConfiguration(const std::shared_ptr ,
--- End diff --

might have to do the same here to avoid removing const ( which you can do 
obviously ) 


> Avoid using singleton for Configure. 
> -
>
> Key: MINIFI-258
> URL: https://issues.apache.org/jira/browse/MINIFI-258
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++
>Reporter: marco polo
>Assignee: Bryan Rosander
>
> Avoiding a singleton for Configure will allow us to eventually support 
> multiple, disparate flows. The object FlowConfiguration can be passed with 
> the information in Configure. This has increased coupling dramatically while 
> also limiting how configurations can be stored within minifi. 
> It stands to reason that to eventually support C2 activities and to 
> facilitate multiple configurations, we will need to remove state from the 
> global level and make it something that is referenced from the objects which 
> care ( proper encapsulation ). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-258) Avoid using singleton for Configure.

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997274#comment-15997274
 ] 

ASF GitHub Bot commented on MINIFI-258:
---

Github user phrocker commented on a diff in the pull request:

https://github.com/apache/nifi-minifi-cpp/pull/91#discussion_r114861428
  
--- Diff: libminifi/include/core/ConfigurationFactory.h ---
@@ -30,25 +30,29 @@ namespace core {
 
 template
 typename std::enable_if::value, T*>::type instantiate(
-std::shared_ptr repo,
-std::shared_ptr flow_file_repo, const std::string 
path) {
+const std::shared_ptr ,
+const std::shared_ptr _file_repo, const 
std::string path) {
   throw std::runtime_error("Cannot instantiate class");
 }
 
 template
 typename std::enable_if::type instantiate(
-std::shared_ptr repo,
-std::shared_ptr flow_file_repo, const std::string 
path) {
-  return new T(repo, flow_file_repo, path);
+const std::shared_ptr ,
+const std::shared_ptr _file_repo,
+const std::shared_ptr _factory,
+const std::string path) {
+  return new T(repo, flow_file_repo, stream_factory, path);
 }
 
 /**
  * Configuration factory is used to create a new FlowConfiguration
  * object.
  */
 std::unique_ptr createFlowConfiguration(
--- End diff --

Same as flow controller. The ones in instantiate, above, are fine. 


> Avoid using singleton for Configure. 
> -
>
> Key: MINIFI-258
> URL: https://issues.apache.org/jira/browse/MINIFI-258
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++
>Reporter: marco polo
>Assignee: Bryan Rosander
>
> Avoiding a singleton for Configure will allow us to eventually support 
> multiple, disparate flows. The object FlowConfiguration can be passed with 
> the information in Configure. This has increased coupling dramatically while 
> also limiting how configurations can be stored within minifi. 
> It stands to reason that to eventually support C2 activities and to 
> facilitate multiple configurations, we will need to remove state from the 
> global level and make it something that is referenced from the objects which 
> care ( proper encapsulation ). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-258) Avoid using singleton for Configure.

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997276#comment-15997276
 ] 

ASF GitHub Bot commented on MINIFI-258:
---

Github user phrocker commented on a diff in the pull request:

https://github.com/apache/nifi-minifi-cpp/pull/91#discussion_r114863373
  
--- Diff: libminifi/include/FlowController.h ---
@@ -64,8 +64,9 @@ class FlowController : public core::CoreComponent {
   /**
* Flow controller constructor
*/
-  FlowController(std::shared_ptr provenance_repo,
- std::shared_ptr flow_file_repo,
+  FlowController(const std::shared_ptr _repo,
--- End diff --

we could move the original std shared ptr to subsume ownership, but I'm not 
sure we want that. We want to say we're sharing ownership with this object and 
thus this object ( FlowController ) helps in determining the lifetime of 
shared_ptr. 


> Avoid using singleton for Configure. 
> -
>
> Key: MINIFI-258
> URL: https://issues.apache.org/jira/browse/MINIFI-258
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++
>Reporter: marco polo
>Assignee: Bryan Rosander
>
> Avoiding a singleton for Configure will allow us to eventually support 
> multiple, disparate flows. The object FlowConfiguration can be passed with 
> the information in Configure. This has increased coupling dramatically while 
> also limiting how configurations can be stored within minifi. 
> It stands to reason that to eventually support C2 activities and to 
> facilitate multiple configurations, we will need to remove state from the 
> global level and make it something that is referenced from the objects which 
> care ( proper encapsulation ). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-258) Avoid using singleton for Configure.

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997273#comment-15997273
 ] 

ASF GitHub Bot commented on MINIFI-258:
---

Github user phrocker commented on a diff in the pull request:

https://github.com/apache/nifi-minifi-cpp/pull/91#discussion_r114864639
  
--- Diff: libminifi/include/EventDrivenSchedulingAgent.h ---
@@ -38,8 +38,8 @@ class EventDrivenSchedulingAgent : public 
ThreadedSchedulingAgent {
   /*!
* Create a new processor
*/
-  EventDrivenSchedulingAgent(std::shared_ptr repo)
-  : ThreadedSchedulingAgent(repo) {
+  EventDrivenSchedulingAgent(const std::shared_ptr 
, const std::shared_ptr )
--- End diff --

These schedulers stop in a way in which we don't guarantee threads to stop. 
We wait in flow controller 1s to stop threads, thus we can't be 100% certain 
that the scheduled threads have stopped. They "probably" did, but we likely 
want to keep this pass by value to ensure that we are guaranteed shared 
ownership of the shared repo. Since the threads are daemon threads, they will 
stop eventually, but we probably want to avoid the error of a dereferencing 
deleted memory if we can to aid in eventual recoverability ( if that's a thing 
).


> Avoid using singleton for Configure. 
> -
>
> Key: MINIFI-258
> URL: https://issues.apache.org/jira/browse/MINIFI-258
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++
>Reporter: marco polo
>Assignee: Bryan Rosander
>
> Avoiding a singleton for Configure will allow us to eventually support 
> multiple, disparate flows. The object FlowConfiguration can be passed with 
> the information in Configure. This has increased coupling dramatically while 
> also limiting how configurations can be stored within minifi. 
> It stands to reason that to eventually support C2 activities and to 
> facilitate multiple configurations, we will need to remove state from the 
> global level and make it something that is referenced from the objects which 
> care ( proper encapsulation ). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-258) Avoid using singleton for Configure.

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997272#comment-15997272
 ] 

ASF GitHub Bot commented on MINIFI-258:
---

Github user phrocker commented on a diff in the pull request:

https://github.com/apache/nifi-minifi-cpp/pull/91#discussion_r114860818
  
--- Diff: libminifi/include/FlowController.h ---
@@ -64,8 +64,9 @@ class FlowController : public core::CoreComponent {
   /**
* Flow controller constructor
*/
-  FlowController(std::shared_ptr provenance_repo,
- std::shared_ptr flow_file_repo,
+  FlowController(const std::shared_ptr _repo,
--- End diff --

The reason these were pass by value was that we wanted to ensure that we 
increment the ref counter for flow controller. Thus we won't deallocate memory 
during its scope. It's a safety mechanism and more importantly indicates that 
these need to survive FlowController


> Avoid using singleton for Configure. 
> -
>
> Key: MINIFI-258
> URL: https://issues.apache.org/jira/browse/MINIFI-258
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++
>Reporter: marco polo
>Assignee: Bryan Rosander
>
> Avoiding a singleton for Configure will allow us to eventually support 
> multiple, disparate flows. The object FlowConfiguration can be passed with 
> the information in Configure. This has increased coupling dramatically while 
> also limiting how configurations can be stored within minifi. 
> It stands to reason that to eventually support C2 activities and to 
> facilitate multiple configurations, we will need to remove state from the 
> global level and make it something that is referenced from the objects which 
> care ( proper encapsulation ). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-258) Avoid using singleton for Configure.

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997271#comment-15997271
 ] 

ASF GitHub Bot commented on MINIFI-258:
---

Github user phrocker commented on a diff in the pull request:

https://github.com/apache/nifi-minifi-cpp/pull/91#discussion_r114861465
  
--- Diff: libminifi/include/core/FlowConfiguration.h ---
@@ -55,8 +56,9 @@ class FlowConfiguration : public CoreComponent {
* Constructor that will be used for configuring
* the flow controller.
*/
-  FlowConfiguration(std::shared_ptr repo,
-std::shared_ptr flow_file_repo,
+  FlowConfiguration(const std::shared_ptr ,
--- End diff --

Same as flow controller


> Avoid using singleton for Configure. 
> -
>
> Key: MINIFI-258
> URL: https://issues.apache.org/jira/browse/MINIFI-258
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++
>Reporter: marco polo
>Assignee: Bryan Rosander
>
> Avoiding a singleton for Configure will allow us to eventually support 
> multiple, disparate flows. The object FlowConfiguration can be passed with 
> the information in Configure. This has increased coupling dramatically while 
> also limiting how configurations can be stored within minifi. 
> It stands to reason that to eventually support C2 activities and to 
> facilitate multiple configurations, we will need to remove state from the 
> global level and make it something that is referenced from the objects which 
> care ( proper encapsulation ). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (MINIFI-293) Remove unused third party dependencies not accounted for in L

2017-05-04 Thread Aldrin Piri (JIRA)

 [ 
https://issues.apache.org/jira/browse/MINIFI-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aldrin Piri resolved MINIFI-293.

Resolution: Fixed

> Remove unused third party dependencies not accounted for in L
> ---
>
> Key: MINIFI-293
> URL: https://issues.apache.org/jira/browse/MINIFI-293
> Project: Apache NiFi MiNiFi
>  Issue Type: Task
>  Components: Build, C++
>Reporter: Aldrin Piri
>Assignee: Aldrin Piri
>Priority: Blocker
> Fix For: cpp-0.2.0
>
>
> Components in civetweb as optional inclusions are not used by our build and 
> should be removed.  These include a host of libraries which, while ALv2 
> friendly, are not currently being utilized.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-275) Configuration without IDs for components causes exceptions

2017-05-04 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997262#comment-15997262
 ] 

ASF subversion and git services commented on MINIFI-275:


Commit 8958496bf785f37311fb383055276d5e8518b6da in nifi-minifi-cpp's branch 
refs/heads/master from [~kdoran]
[ https://git-wip-us.apache.org/repos/asf?p=nifi-minifi-cpp.git;h=8958496 ]

MINIFI-294 Required vs. optional fields in config YAML

Long description of the changes in this commit can be found in the
JIRA for MINFI-294. Basically, better checks are now in place and
in the case of missing required fields, better error messaging.
This builds upon improvements made in MINIFI-275, and also
updates the config.yml exampe in the README.md file to match the
code.

This closes #90.

Signed-off-by: Aldrin Piri 


> Configuration without IDs for components causes exceptions
> --
>
> Key: MINIFI-275
> URL: https://issues.apache.org/jira/browse/MINIFI-275
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++, Processing Configuration
>Reporter: Aldrin Piri
>Assignee: Kevin Doran
>Priority: Blocker
> Fix For: cpp-0.2.0
>
> Attachments: config.TEST.yml
>
>
> One of the changes to how components are handled in C++ introduced a defect 
> into the original construct over the version 1 schema of the YAML.  
> The absence of this ID causes a YAML exception.  
> We should provide handling to support configurations how they were created 
> originally, possibly providing a default/generated ID where one isn't 
> specified, and start laying the foundation for versioned schemas as provided 
> in our Java implementation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-294) Better handling of required vs. optional fields in config schema v1

2017-05-04 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997261#comment-15997261
 ] 

ASF subversion and git services commented on MINIFI-294:


Commit 8958496bf785f37311fb383055276d5e8518b6da in nifi-minifi-cpp's branch 
refs/heads/master from [~kdoran]
[ https://git-wip-us.apache.org/repos/asf?p=nifi-minifi-cpp.git;h=8958496 ]

MINIFI-294 Required vs. optional fields in config YAML

Long description of the changes in this commit can be found in the
JIRA for MINFI-294. Basically, better checks are now in place and
in the case of missing required fields, better error messaging.
This builds upon improvements made in MINIFI-275, and also
updates the config.yml exampe in the README.md file to match the
code.

This closes #90.

Signed-off-by: Aldrin Piri 


> Better handling of required vs. optional fields in config schema v1
> ---
>
> Key: MINIFI-294
> URL: https://issues.apache.org/jira/browse/MINIFI-294
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++, Documentation, Processing Configuration
>Reporter: Kevin Doran
>Assignee: Kevin Doran
>Priority: Critical
> Fix For: cpp-0.2.0
>
>
> This is a followup task to MINIFI-275. While the scope of MINIFI-275 was 
> minifi-cpp processing of components without id fields, which are optional in 
> config schema v1, this ticket covers all fields for all component types, 
> either doing string checks for required fields (with useful error messages if 
> absent) or graceful handling of missing optional fields.
> The Config Schema V1 in the minifi-java codebase will be used as a guide for 
> which fields to treat as required and which to treat as optional. [~aldrin] - 
> please confirm that is the correct assumption for minifi-cpp. The Java 
> implementation can be found at [1]. Specifically, in the Java code, required 
> fields are loaded using `getRequiredKeyAsType() and optional fields are 
> loaded using `getOptionalKeyAsType()`
> Also in scope for this ticket is to update the config.yml examples in the 
> minifi-cpp README.md file to make sure they are not missing required fields. 
> During testing, it was found that one example config.yml is missing source 
> name and destination name, which are required in config schema v1.
> [1] 
> https://github.com/apache/nifi-minifi/tree/master/minifi-commons/minifi-commons-schema/src/main/java/org/apache/nifi/minifi/commons/schema/v1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-293) Remove unused third party dependencies not accounted for in L

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997263#comment-15997263
 ] 

ASF GitHub Bot commented on MINIFI-293:
---

Github user asfgit closed the pull request at:

https://github.com/apache/nifi-minifi-cpp/pull/89


> Remove unused third party dependencies not accounted for in L
> ---
>
> Key: MINIFI-293
> URL: https://issues.apache.org/jira/browse/MINIFI-293
> Project: Apache NiFi MiNiFi
>  Issue Type: Task
>  Components: Build, C++
>Reporter: Aldrin Piri
>Assignee: Aldrin Piri
>Priority: Blocker
> Fix For: cpp-0.2.0
>
>
> Components in civetweb as optional inclusions are not used by our build and 
> should be removed.  These include a host of libraries which, while ALv2 
> friendly, are not currently being utilized.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[38/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/commonjs.txt
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/commonjs.txt 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/commonjs.txt
deleted file mode 100644
index 54a1cd7..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/commonjs.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-CommonJS specification snapshots are included in the references/
-directory.  CommonJS is under the MIT license: http://www.commonjs.org/.

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/lua.txt
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/lua.txt 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/lua.txt
deleted file mode 100644
index 24e65f1..000
--- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/lua.txt
+++ /dev/null
@@ -1 +0,0 @@
-Lua is under the MIT license: http://www.lua.org/license.html.

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/murmurhash2.txt
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/murmurhash2.txt
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/murmurhash2.txt
deleted file mode 100644
index 7029925..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/licenses/murmurhash2.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c)  
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/mandel.js
--
diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/mandel.js 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/mandel.js
deleted file mode 100644
index 79b5195..000
--- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/mandel.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- *  Mandelbrot example:
- *
- *$ ./duk mandel.js
- *[...]
- */
-
-function mandel() {
-var w = 76, h = 28, iter = 100;
-var i, j, k, c;
-var x0, y0, xx, yy, xx2, yy2;
-var line;
-
-for (i = 0; i < h; i++) {
-y0 = (i / h) * 2.5 - 1.25;
-
-for (j = 0, line = []; j < w; j++) {
-x0 = (j / w) * 3.0 - 2.0;
-
-for (k = 0, xx = 0, yy = 0, c = '#'; k < iter; k++) {
-/* z -> z^2 + c
- *   -> (xx+i*yy)^2 + (x0+i*y0)
- *   -> xx*xx+i*2*xx*yy-yy*yy + x0 + i*y0
- *   -> (xx*xx - yy*yy + x0) + i*(2*xx*yy + y0)
- */
-
-xx2 = xx*xx; yy2 = yy*yy;
-
-if (xx2 + yy2 < 4.0) {
-yy = 2*xx*yy + y0;
-xx = xx2 - yy2 + x0;
-} else {
-/* xx^2 + yy^2 >= 4.0 */
-if (k < 3) { c = '.'; }
-else if (k < 5) { c = ','; }
-else if (k < 10) { c = '-'; }
-else { c = '='; }
-break;
-}
-}
-
-line.push(c);
-}
-
-print(line.join(''));
-}
-}
-
-try {
-mandel();
-} catch (e) {
-print(e.stack || e);
-}

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/polyfills/console-minimal.js
--
diff --git 

[30/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
deleted file mode 100644
index 0d8efb0..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
+++ /dev/null
@@ -1,2882 +0,0 @@
-/*
- *  Duktape.Buffer, Node.js Buffer, and Khronos/ES6 TypedArray built-ins
- */
-
-#include "duk_internal.h"
-
-/*
- *  Misc helpers
- */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Map DUK_HBUFFEROBJECT_ELEM_xxx to duk_hobject class number.
- * Sync with duk_hbufferobject.h and duk_hobject.h.
- */
-static const duk_uint8_t duk__buffer_class_from_elemtype[9] = {
-   DUK_HOBJECT_CLASS_UINT8ARRAY,
-   DUK_HOBJECT_CLASS_UINT8CLAMPEDARRAY,
-   DUK_HOBJECT_CLASS_INT8ARRAY,
-   DUK_HOBJECT_CLASS_UINT16ARRAY,
-   DUK_HOBJECT_CLASS_INT16ARRAY,
-   DUK_HOBJECT_CLASS_UINT32ARRAY,
-   DUK_HOBJECT_CLASS_INT32ARRAY,
-   DUK_HOBJECT_CLASS_FLOAT32ARRAY,
-   DUK_HOBJECT_CLASS_FLOAT64ARRAY
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Map DUK_HBUFFEROBJECT_ELEM_xxx to prototype object built-in index.
- * Sync with duk_hbufferobject.h.
- */
-static const duk_uint8_t duk__buffer_proto_from_elemtype[9] = {
-   DUK_BIDX_UINT8ARRAY_PROTOTYPE,
-   DUK_BIDX_UINT8CLAMPEDARRAY_PROTOTYPE,
-   DUK_BIDX_INT8ARRAY_PROTOTYPE,
-   DUK_BIDX_UINT16ARRAY_PROTOTYPE,
-   DUK_BIDX_INT16ARRAY_PROTOTYPE,
-   DUK_BIDX_UINT32ARRAY_PROTOTYPE,
-   DUK_BIDX_INT32ARRAY_PROTOTYPE,
-   DUK_BIDX_FLOAT32ARRAY_PROTOTYPE,
-   DUK_BIDX_FLOAT64ARRAY_PROTOTYPE
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Map DUK__FLX_xxx to byte size.
- */
-static const duk_uint8_t duk__buffer_nbytes_from_fldtype[6] = {
-   1,  /* DUK__FLD_8BIT */
-   2,  /* DUK__FLD_16BIT */
-   4,  /* DUK__FLD_32BIT */
-   4,  /* DUK__FLD_FLOAT */
-   8,  /* DUK__FLD_DOUBLE */
-   0   /* DUK__FLD_VARINT; not relevant here */
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Bitfield for each DUK_HBUFFEROBJECT_ELEM_xxx indicating which element types
- * are compatible with a blind byte copy for the TypedArray set() method (also
- * used for TypedArray constructor).  Array index is target buffer elem type,
- * bitfield indicates compatible source types.  The types must have same byte
- * size and they must be coercion compatible.
- */
-static duk_uint16_t duk__buffer_elemtype_copy_compatible[9] = {
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT8 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT8),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED
-* Note: INT8 is -not- copy compatible, e.g. -1 would coerce to 0x00.
-*/
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_INT8 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT8),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT16 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT16) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT16),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_INT16 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT16) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT16),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT32 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT32) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT32),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_INT32 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT32) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT32),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_FLOAT32 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_FLOAT32),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_FLOAT64 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_FLOAT64)
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Shared helper. */
-DUK_LOCAL duk_hbufferobject *duk__getrequire_bufobj_this(duk_context *ctx, 
duk_bool_t throw_flag) {
-   duk_hthread *thr;
-   duk_tval *tv;
-   duk_hbufferobject *h_this;
-
-   DUK_ASSERT(ctx != NULL);
-   thr = (duk_hthread *) ctx;
-
-   tv = duk_get_borrowed_this_tval(ctx);
-   DUK_ASSERT(tv != NULL);
-   if (DUK_TVAL_IS_OBJECT(tv)) {
-   h_this = (duk_hbufferobject *) DUK_TVAL_GET_OBJECT(tv);
-   DUK_ASSERT(h_this != NULL);
-   

[45/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug_meta.json
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug_meta.json
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug_meta.json
deleted file mode 100644
index 41de1c2..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug_meta.json
+++ /dev/null
@@ -1,1497 +0,0 @@
-{
-"opcodes": [
-{
-"args": [
-"A_R", 
-"BC_R"
-], 
-"name": "LDREG"
-}, 
-{
-"args": [
-"A_R", 
-"BC_R"
-], 
-"name": "STREG"
-}, 
-{
-"args": [
-"A_R", 
-"BC_C"
-], 
-"name": "LDCONST"
-}, 
-{
-"args": [
-"A_R", 
-"BC_LDINT"
-], 
-"name": "LDINT"
-}, 
-{
-"args": [
-"A_R", 
-"BC_LDINTX"
-], 
-"name": "LDINTX"
-}, 
-{
-"args": [
-"A_R", 
-"B_R", 
-"C_I"
-], 
-"name": "MPUTOBJ"
-}, 
-{
-"args": [
-"A_R", 
-"B_RI", 
-"C_I"
-], 
-"name": "MPUTOBJI"
-}, 
-{
-"args": [
-"A_R", 
-"B_R", 
-"C_I"
-], 
-"name": "MPUTARR"
-}, 
-{
-"args": [
-"A_R", 
-"B_RI", 
-"C_I"
-], 
-"name": "MPUTARRI"
-}, 
-{
-"args": [
-"B_R", 
-"C_I"
-], 
-"name": "NEW"
-}, 
-{
-"args": [
-"B_RI", 
-"C_I"
-], 
-"name": "NEWI"
-}, 
-{
-"args": [
-"A_R", 
-"B_RC", 
-"C_RC"
-], 
-"name": "REGEXP"
-}, 
-{
-"args": [
-"A_R", 
-"B_R"
-], 
-"name": "CSREG"
-}, 
-{
-"args": [
-"A_RI", 
-"B_R"
-], 
-"name": "CSREGI"
-}, 
-{
-"args": [
-"A_R", 
-"BC_C"
-], 
-"name": "GETVAR"
-}, 
-{
-"args": [
-"A_R", 
-"BC_C"
-], 
-"name": "PUTVAR"
-}, 
-{
-"args": [
-"A_H", 
-"B_RC", 
-"C_RC"
-], 
-"flags": [
-{
-"mask": 64, 
-"name": "writable"
-}, 
-{
-"mask": 128, 
-"name": "enumerable"
-}, 
-{
-"mask": 256, 
-"name": "configurable"
-}, 
-{
-"mask": 512, 
-"name": "accessor"
-}, 
-{
-"mask": 1024, 
-"name": "undef_value"
-}, 
-{
-"mask": 2048, 
-"name": "func_decl"
-}
-], 
-"name": "DECLVAR"
-}, 
-{
-"args": [
-"A_R", 
-"B_RC"
-], 
-"name": "DELVAR"
-}, 
-{
-"args": [
-"A_R", 
-"B_RC"
-], 
-"name": "CSVAR"
-}, 
-{
-"args": [
-"A_RI", 
-"B_RC"
-], 
-"name": "CSVARI"
-}, 
-{
-"args": [
-"A_R", 
-"BC_I"
-], 
-"name": "CLOSURE"
-}, 
-{
-"args": [
-"A_R", 
-"B_RC", 
-"C_RC"
-], 
-"name": "GETPROP"
-}, 
-{
-"args": [
-"A_R", 
-"B_RC", 
-"C_RC"
-], 
-"name": "PUTPROP"
-}, 
-{
-"args": [
-"A_R", 
-"B_R", 
-"C_RC"
-], 
-"name": 

[15/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject.h
deleted file mode 100644
index 4127e0e..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject.h
+++ /dev/null
@@ -1,926 +0,0 @@
-/*
- *  Heap object representation.
- *
- *  Heap objects are used for Ecmascript objects, arrays, and functions,
- *  but also for internal control like declarative and object environment
- *  records.  Compiled functions, native functions, and threads are also
- *  objects but with an extended C struct.
- *
- *  Objects provide the required Ecmascript semantics and exotic behaviors
- *  especially for property access.
- *
- *  Properties are stored in three conceptual parts:
- *
- *1. A linear 'entry part' contains ordered key-value-attributes triples
- *   and is the main method of string properties.
- *
- *2. An optional linear 'array part' is used for array objects to store a
- *   (dense) range of [0,N[ array indexed entries with default attributes
- *   (writable, enumerable, configurable).  If the array part would become
- *   sparse or non-default attributes are required, the array part is
- *   abandoned and moved to the 'entry part'.
- *
- *3. An optional 'hash part' is used to optimize lookups of the entry
- *   part; it is used only for objects with sufficiently many properties
- *   and can be abandoned without loss of information.
- *
- *  These three conceptual parts are stored in a single memory allocated area.
- *  This minimizes memory allocation overhead but also means that all three
- *  parts are resized together, and makes property access a bit complicated.
- */
-
-#ifndef DUK_HOBJECT_H_INCLUDED
-#define DUK_HOBJECT_H_INCLUDED
-
-/* Object flag.  There are currently 26 flag bits available.  Make sure
- * this stays in sync with debugger object inspection code.
- */
-#define DUK_HOBJECT_FLAG_EXTENSIBLEDUK_HEAPHDR_USER_FLAG(0)   /* 
object is extensible */
-#define DUK_HOBJECT_FLAG_CONSTRUCTABLE DUK_HEAPHDR_USER_FLAG(1)   /* 
object is constructable */
-#define DUK_HOBJECT_FLAG_BOUND DUK_HEAPHDR_USER_FLAG(2)   /* 
object established using Function.prototype.bind() */
-#define DUK_HOBJECT_FLAG_COMPILEDFUNCTION  DUK_HEAPHDR_USER_FLAG(4)   /* 
object is a compiled function (duk_hcompiledfunction) */
-#define DUK_HOBJECT_FLAG_NATIVEFUNCTIONDUK_HEAPHDR_USER_FLAG(5)   /* 
object is a native function (duk_hnativefunction) */
-#define DUK_HOBJECT_FLAG_BUFFEROBJECT  DUK_HEAPHDR_USER_FLAG(6)   /* 
object is a buffer object (duk_hbufferobject) (always exotic) */
-#define DUK_HOBJECT_FLAG_THREADDUK_HEAPHDR_USER_FLAG(7)   /* 
object is a thread (duk_hthread) */
-#define DUK_HOBJECT_FLAG_ARRAY_PARTDUK_HEAPHDR_USER_FLAG(8)   /* 
object has an array part (a_size may still be 0) */
-#define DUK_HOBJECT_FLAG_STRICTDUK_HEAPHDR_USER_FLAG(9)   /* 
function: function object is strict */
-#define DUK_HOBJECT_FLAG_NOTAILDUK_HEAPHDR_USER_FLAG(10)  /* 
function: function must not be tail called */
-#define DUK_HOBJECT_FLAG_NEWENVDUK_HEAPHDR_USER_FLAG(11)  /* 
function: create new environment when called (see duk_hcompiledfunction) */
-#define DUK_HOBJECT_FLAG_NAMEBINDING   DUK_HEAPHDR_USER_FLAG(12)  /* 
function: create binding for func name (function templates only, used for named 
function expressions) */
-#define DUK_HOBJECT_FLAG_CREATEARGSDUK_HEAPHDR_USER_FLAG(13)  /* 
function: create an arguments object on function call */
-#define DUK_HOBJECT_FLAG_ENVRECCLOSED  DUK_HEAPHDR_USER_FLAG(14)  /* 
envrec: (declarative) record is closed */
-#define DUK_HOBJECT_FLAG_EXOTIC_ARRAY  DUK_HEAPHDR_USER_FLAG(15)  /* 
'Array' object, array length and index exotic behavior */
-#define DUK_HOBJECT_FLAG_EXOTIC_STRINGOBJ  DUK_HEAPHDR_USER_FLAG(16)  /* 
'String' object, array index exotic behavior */
-#define DUK_HOBJECT_FLAG_EXOTIC_ARGUMENTS  DUK_HEAPHDR_USER_FLAG(17)  /* 
'Arguments' object and has arguments exotic behavior (non-strict callee) */
-#define DUK_HOBJECT_FLAG_EXOTIC_DUKFUNCDUK_HEAPHDR_USER_FLAG(18)  /* 
Duktape/C (nativefunction) object, exotic 'length' */
-#define DUK_HOBJECT_FLAG_EXOTIC_PROXYOBJ   DUK_HEAPHDR_USER_FLAG(19)  /* 
'Proxy' object */
-
-#define DUK_HOBJECT_FLAG_CLASS_BASEDUK_HEAPHDR_USER_FLAG_NUMBER(20)
-#define DUK_HOBJECT_FLAG_CLASS_BITS5
-
-#define DUK_HOBJECT_GET_CLASS_NUMBER(h)\
-   DUK_HEAPHDR_GET_FLAG_RANGE(&(h)->hdr, DUK_HOBJECT_FLAG_CLASS_BASE, 

[07/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
deleted file mode 100644
index 695077b..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
+++ /dev/null
@@ -1,4507 +0,0 @@
-/*
- *  Ecmascript bytecode executor.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Local declarations.
- */
-
-DUK_LOCAL_DECL void duk__js_execute_bytecode_inner(duk_hthread *entry_thread, 
duk_size_t entry_callstack_top);
-
-/*
- *  Arithmetic, binary, and logical helpers.
- *
- *  Note: there is no opcode for logical AND or logical OR; this is on
- *  purpose, because the evalution order semantics for them make such
- *  opcodes pretty pointless: short circuiting means they are most
- *  comfortably implemented as jumps.  However, a logical NOT opcode
- *  is useful.
- *
- *  Note: careful with duk_tval pointers here: they are potentially
- *  invalidated by any DECREF and almost any API call.  It's still
- *  preferable to work without making a copy but that's not always
- *  possible.
- */
-
-DUK_LOCAL duk_double_t duk__compute_mod(duk_double_t d1, duk_double_t d2) {
-   /*
-*  Ecmascript modulus ('%') does not match IEEE 754 "remainder"
-*  operation (implemented by remainder() in C99) but does seem
-*  to match ANSI C fmod().
-*
-*  Compare E5 Section 11.5.3 and "man fmod".
-*/
-
-   return (duk_double_t) DUK_FMOD((double) d1, (double) d2);
-}
-
-DUK_LOCAL void duk__vm_arith_add(duk_hthread *thr, duk_tval *tv_x, duk_tval 
*tv_y, duk_small_uint_fast_t idx_z) {
-   /*
-*  Addition operator is different from other arithmetic
-*  operations in that it also provides string concatenation.
-*  Hence it is implemented separately.
-*
-*  There is a fast path for number addition.  Other cases go
-*  through potentially multiple coercions as described in the
-*  E5 specification.  It may be possible to reduce the number
-*  of coercions, but this must be done carefully to preserve
-*  the exact semantics.
-*
-*  E5 Section 11.6.1.
-*
-*  Custom types also have special behavior implemented here.
-*/
-
-   duk_context *ctx = (duk_context *) thr;
-   duk_double_union du;
-
-   DUK_ASSERT(thr != NULL);
-   DUK_ASSERT(ctx != NULL);
-   DUK_ASSERT(tv_x != NULL);  /* may be reg or const */
-   DUK_ASSERT(tv_y != NULL);  /* may be reg or const */
-   DUK_ASSERT_DISABLE(idx_z >= 0);  /* unsigned */
-   DUK_ASSERT((duk_uint_t) idx_z < (duk_uint_t) duk_get_top(ctx));
-
-   /*
-*  Fast paths
-*/
-
-#if defined(DUK_USE_FASTINT)
-   if (DUK_TVAL_IS_FASTINT(tv_x) && DUK_TVAL_IS_FASTINT(tv_y)) {
-   duk_int64_t v1, v2, v3;
-   duk_int32_t v3_hi;
-   duk_tval *tv_z;
-
-   /* Input values are signed 48-bit so we can detect overflow
-* reliably from high bits or just a comparison.
-*/
-
-   v1 = DUK_TVAL_GET_FASTINT(tv_x);
-   v2 = DUK_TVAL_GET_FASTINT(tv_y);
-   v3 = v1 + v2;
-   v3_hi = (duk_int32_t) (v3 >> 32);
-   if (DUK_LIKELY(v3_hi >= -0x8000LL && v3_hi <= 0x7fffLL)) {
-   tv_z = thr->valstack_bottom + idx_z;
-   DUK_TVAL_SET_FASTINT_UPDREF(thr, tv_z, v3);  /* side 
effects */
-   return;
-   } else {
-   /* overflow, fall through */
-   ;
-   }
-   }
-#endif  /* DUK_USE_FASTINT */
-
-   if (DUK_TVAL_IS_NUMBER(tv_x) && DUK_TVAL_IS_NUMBER(tv_y)) {
-   duk_tval *tv_z;
-
-   du.d = DUK_TVAL_GET_NUMBER(tv_x) + DUK_TVAL_GET_NUMBER(tv_y);
-   DUK_DBLUNION_NORMALIZE_NAN_CHECK();
-   DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED());
-
-   tv_z = thr->valstack_bottom + idx_z;
-   DUK_TVAL_SET_NUMBER_UPDREF(thr, tv_z, du.d);  /* side effects */
-   return;
-   }
-
-   /*
-*  Slow path: potentially requires function calls for coercion
-*/
-
-   duk_push_tval(ctx, tv_x);
-   duk_push_tval(ctx, tv_y);
-   duk_to_primitive(ctx, -2, DUK_HINT_NONE);  /* side effects -> don't use 
tv_x, tv_y after */
-   duk_to_primitive(ctx, -1, DUK_HINT_NONE);
-
-   /* As a first approximation, buffer values are coerced to strings
-* for addition.  This means that adding two buffers currently
-* results in a string.
-*/
-   if 

[02/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_numconv.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_numconv.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_numconv.c
deleted file mode 100644
index de9a474..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_numconv.c
+++ /dev/null
@@ -1,2266 +0,0 @@
-/*
- *  Number-to-string and string-to-number conversions.
- *
- *  Slow path number-to-string and string-to-number conversion is based on
- *  a Dragon4 variant, with fast paths for small integers.  Big integer
- *  arithmetic is needed for guaranteeing that the conversion is correct
- *  and uses a minimum number of digits.  The big number arithmetic has a
- *  fixed maximum size and does not require dynamic allocations.
- *
- *  See: doc/number-conversion.rst.
- */
-
-#include "duk_internal.h"
-
-#define DUK__IEEE_DOUBLE_EXP_BIAS  1023
-#define DUK__IEEE_DOUBLE_EXP_MIN   (-1022)   /* biased exp == 0 -> denormal, 
exp -1022 */
-
-#define DUK__DIGITCHAR(x)  duk_lc_digits[(x)]
-
-/*
- *  Tables generated with src/gennumdigits.py.
- *
- *  duk__str2num_digits_for_radix indicates, for each radix, how many input
- *  digits should be considered significant for string-to-number conversion.
- *  The input is also padded to this many digits to give the Dragon4
- *  conversion enough (apparent) precision to work with.
- *
- *  duk__str2num_exp_limits indicates, for each radix, the radix-specific
- *  minimum/maximum exponent values (for a Dragon4 integer mantissa)
- *  below and above which the number is guaranteed to underflow to zero
- *  or overflow to Infinity.  This allows parsing to keep bigint values
- *  bounded.
- */
-
-DUK_LOCAL const duk_uint8_t duk__str2num_digits_for_radix[] = {
-   69, 44, 35, 30, 27, 25, 23, 22, 20, 20,/* 2 to 11 */
-   20, 19, 19, 18, 18, 17, 17, 17, 16, 16,/* 12 to 21 */
-   16, 16, 16, 15, 15, 15, 15, 15, 15, 14,/* 22 to 31 */
-   14, 14, 14, 14, 14 /* 31 to 36 */
-};
-
-typedef struct {
-   duk_int16_t upper;
-   duk_int16_t lower;
-} duk__exp_limits;
-
-DUK_LOCAL const duk__exp_limits duk__str2num_exp_limits[] = {
-   { 957, -1147 }, { 605, -725 },  { 479, -575 },  { 414, -496 },
-   { 372, -446 },  { 342, -411 },  { 321, -384 },  { 304, -364 },
-   { 291, -346 },  { 279, -334 },  { 268, -323 },  { 260, -312 },
-   { 252, -304 },  { 247, -296 },  { 240, -289 },  { 236, -283 },
-   { 231, -278 },  { 227, -273 },  { 223, -267 },  { 220, -263 },
-   { 216, -260 },  { 213, -256 },  { 210, -253 },  { 208, -249 },
-   { 205, -246 },  { 203, -244 },  { 201, -241 },  { 198, -239 },
-   { 196, -237 },  { 195, -234 },  { 193, -232 },  { 191, -230 },
-   { 190, -228 },  { 188, -226 },  { 187, -225 },
-};
-
-/*
- *  Limited functionality bigint implementation.
- *
- *  Restricted to non-negative numbers with less than 32 * DUK__BI_MAX_PARTS 
bits,
- *  with the caller responsible for ensuring this is never exceeded.  No memory
- *  allocation (except stack) is needed for bigint computation.  Operations
- *  have been tailored for number conversion needs.
- *
- *  Argument order is "assignment order", i.e. target first, then arguments:
- *  x <- y * z  -->  duk__bi_mul(x, y, z);
- */
-
-/* This upper value has been experimentally determined; debug build will check
- * bigint size with assertions.
- */
-#define DUK__BI_MAX_PARTS  37  /* 37x32 = 1184 bits */
-
-#ifdef DUK_USE_DDDPRINT
-#define DUK__BI_PRINT(name,x)  duk__bi_print((name),(x))
-#else
-#define DUK__BI_PRINT(name,x)
-#endif
-
-/* Current size is about 152 bytes. */
-typedef struct {
-   duk_small_int_t n;
-   duk_uint32_t v[DUK__BI_MAX_PARTS];  /* low to high */
-} duk__bigint;
-
-#ifdef DUK_USE_DDDPRINT
-DUK_LOCAL void duk__bi_print(const char *name, duk__bigint *x) {
-   /* Overestimate required size; debug code so not critical to be tight. 
*/
-   char buf[DUK__BI_MAX_PARTS * 9 + 64];
-   char *p = buf;
-   duk_small_int_t i;
-
-   /* No NUL term checks in this debug code. */
-   p += DUK_SPRINTF(p, "%p n=%ld", (void *) x, (long) x->n);
-   if (x->n == 0) {
-   p += DUK_SPRINTF(p, " 0");
-   }
-   for (i = x->n - 1; i >= 0; i--) {
-   p += DUK_SPRINTF(p, " %08lx", (unsigned long) x->v[i]);
-   }
-
-   DUK_DDD(DUK_DDDPRINT("%s: %s", (const char *) name, (const char *) 
buf));
-}
-#endif
-
-#ifdef DUK_USE_ASSERTIONS
-DUK_LOCAL duk_small_int_t duk__bi_is_valid(duk__bigint *x) {
-   return (duk_small_int_t)
-  ( ((x->n >= 0) && (x->n <= DUK__BI_MAX_PARTS)) /* is valid size 
*/ &&
-((x->n == 0) || (x->v[x->n - 1] != 0)) /* is normalized */ );
-}
-#endif
-

[19/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.h
deleted file mode 100644
index f79557b..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.h
+++ /dev/null
@@ -1,144 +0,0 @@
-#ifndef DUK_DEBUGGER_H_INCLUDED
-#define DUK_DEBUGGER_H_INCLUDED
-
-/* Debugger protocol version is defined in the public API header. */
-
-/* Initial bytes for markers. */
-#define DUK_DBG_IB_EOM   0x00
-#define DUK_DBG_IB_REQUEST   0x01
-#define DUK_DBG_IB_REPLY 0x02
-#define DUK_DBG_IB_ERROR 0x03
-#define DUK_DBG_IB_NOTIFY0x04
-
-/* Other initial bytes. */
-#define DUK_DBG_IB_INT4  0x10
-#define DUK_DBG_IB_STR4  0x11
-#define DUK_DBG_IB_STR2  0x12
-#define DUK_DBG_IB_BUF4  0x13
-#define DUK_DBG_IB_BUF2  0x14
-#define DUK_DBG_IB_UNUSED0x15
-#define DUK_DBG_IB_UNDEFINED 0x16
-#define DUK_DBG_IB_NULL  0x17
-#define DUK_DBG_IB_TRUE  0x18
-#define DUK_DBG_IB_FALSE 0x19
-#define DUK_DBG_IB_NUMBER0x1a
-#define DUK_DBG_IB_OBJECT0x1b
-#define DUK_DBG_IB_POINTER   0x1c
-#define DUK_DBG_IB_LIGHTFUNC 0x1d
-#define DUK_DBG_IB_HEAPPTR   0x1e
-/* The short string/integer initial bytes starting from 0x60 don't have
- * defines now.
- */
-
-/* Error codes. */
-#define DUK_DBG_ERR_UNKNOWN  0x00
-#define DUK_DBG_ERR_UNSUPPORTED  0x01
-#define DUK_DBG_ERR_TOOMANY  0x02
-#define DUK_DBG_ERR_NOTFOUND 0x03
-#define DUK_DBG_ERR_APPLICATION  0x04
-
-/* Commands and notifys initiated by Duktape. */
-#define DUK_DBG_CMD_STATUS   0x01
-#define DUK_DBG_CMD_PRINT0x02
-#define DUK_DBG_CMD_ALERT0x03
-#define DUK_DBG_CMD_LOG  0x04
-#define DUK_DBG_CMD_THROW0x05
-#define DUK_DBG_CMD_DETACHING0x06
-#define DUK_DBG_CMD_APPNOTIFY0x07
-
-/* Commands initiated by debug client. */
-#define DUK_DBG_CMD_BASICINFO0x10
-#define DUK_DBG_CMD_TRIGGERSTATUS0x11
-#define DUK_DBG_CMD_PAUSE0x12
-#define DUK_DBG_CMD_RESUME   0x13
-#define DUK_DBG_CMD_STEPINTO 0x14
-#define DUK_DBG_CMD_STEPOVER 0x15
-#define DUK_DBG_CMD_STEPOUT  0x16
-#define DUK_DBG_CMD_LISTBREAK0x17
-#define DUK_DBG_CMD_ADDBREAK 0x18
-#define DUK_DBG_CMD_DELBREAK 0x19
-#define DUK_DBG_CMD_GETVAR   0x1a
-#define DUK_DBG_CMD_PUTVAR   0x1b
-#define DUK_DBG_CMD_GETCALLSTACK 0x1c
-#define DUK_DBG_CMD_GETLOCALS0x1d
-#define DUK_DBG_CMD_EVAL 0x1e
-#define DUK_DBG_CMD_DETACH   0x1f
-#define DUK_DBG_CMD_DUMPHEAP 0x20
-#define DUK_DBG_CMD_GETBYTECODE  0x21
-#define DUK_DBG_CMD_APPREQUEST   0x22
-#define DUK_DBG_CMD_GETHEAPOBJINFO   0x23
-#define DUK_DBG_CMD_GETOBJPROPDESC   0x24
-#define DUK_DBG_CMD_GETOBJPROPDESCRANGE  0x25
-
-/* The low 8 bits map directly to duk_hobject.h DUK_PROPDESC_FLAG_xxx.
- * The remaining flags are specific to the debugger.
- */
-#define DUK_DBG_PROPFLAG_INTERNAL(1 << 8)
-
-#if defined(DUK_USE_DEBUGGER_SUPPORT)
-DUK_INTERNAL_DECL void duk_debug_do_detach(duk_heap *heap);
-
-DUK_INTERNAL_DECL duk_bool_t duk_debug_read_peek(duk_hthread *thr);
-DUK_INTERNAL_DECL void duk_debug_write_flush(duk_hthread *thr);
-
-DUK_INTERNAL_DECL void duk_debug_skip_bytes(duk_hthread *thr, duk_size_t 
length);
-DUK_INTERNAL_DECL void duk_debug_skip_byte(duk_hthread *thr);
-
-DUK_INTERNAL_DECL void duk_debug_read_bytes(duk_hthread *thr, duk_uint8_t 
*data, duk_size_t length);
-DUK_INTERNAL_DECL duk_uint8_t duk_debug_read_byte(duk_hthread *thr);
-DUK_INTERNAL_DECL duk_int32_t duk_debug_read_int(duk_hthread *thr);
-DUK_INTERNAL_DECL duk_hstring *duk_debug_read_hstring(duk_hthread *thr);
-/* XXX: exposed duk_debug_read_pointer */
-/* XXX: exposed duk_debug_read_buffer */
-/* XXX: exposed duk_debug_read_hbuffer */
-#if 0
-DUK_INTERNAL_DECL duk_heaphdr *duk_debug_read_heapptr(duk_hthread *thr);
-#endif
-#if defined(DUK_USE_DEBUGGER_INSPECT)
-DUK_INTERNAL_DECL duk_heaphdr *duk_debug_read_any_ptr(duk_hthread *thr);
-#endif
-DUK_INTERNAL_DECL duk_tval *duk_debug_read_tval(duk_hthread *thr);
-
-DUK_INTERNAL_DECL void duk_debug_write_bytes(duk_hthread *thr, const 
duk_uint8_t *data, duk_size_t length);
-DUK_INTERNAL_DECL void 

[23/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
deleted file mode 100644
index 9bea59d..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
+++ /dev/null
@@ -1,854 +0,0 @@
-/*
- *  Automatically generated by genbuiltins.py, do not edit!
- */
-
-#ifndef DUK_BUILTINS_H_INCLUDED
-#define DUK_BUILTINS_H_INCLUDED
-
-#if defined(DUK_USE_ROM_STRINGS)
-#error ROM support not enabled, rerun make_dist.py with --rom-support
-#else  /* DUK_USE_ROM_STRINGS */
-#define DUK_STRIDX_UC_UNDEFINED   0
  /* 'Undefined' */
-#define DUK_HEAP_STRING_UC_UNDEFINED(heap)
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_UNDEFINED)
-#define DUK_HTHREAD_STRING_UC_UNDEFINED(thr)  
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_UNDEFINED)
-#define DUK_STRIDX_UC_NULL1
  /* 'Null' */
-#define DUK_HEAP_STRING_UC_NULL(heap) 
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_NULL)
-#define DUK_HTHREAD_STRING_UC_NULL(thr)   
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_NULL)
-#define DUK_STRIDX_UC_ARGUMENTS   2
  /* 'Arguments' */
-#define DUK_HEAP_STRING_UC_ARGUMENTS(heap)
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_ARGUMENTS)
-#define DUK_HTHREAD_STRING_UC_ARGUMENTS(thr)  
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_ARGUMENTS)
-#define DUK_STRIDX_UC_OBJECT  3
  /* 'Object' */
-#define DUK_HEAP_STRING_UC_OBJECT(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_OBJECT)
-#define DUK_HTHREAD_STRING_UC_OBJECT(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_OBJECT)
-#define DUK_STRIDX_UC_FUNCTION4
  /* 'Function' */
-#define DUK_HEAP_STRING_UC_FUNCTION(heap) 
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_FUNCTION)
-#define DUK_HTHREAD_STRING_UC_FUNCTION(thr)   
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_FUNCTION)
-#define DUK_STRIDX_ARRAY  5
  /* 'Array' */
-#define DUK_HEAP_STRING_ARRAY(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_ARRAY)
-#define DUK_HTHREAD_STRING_ARRAY(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_ARRAY)
-#define DUK_STRIDX_UC_STRING  6
  /* 'String' */
-#define DUK_HEAP_STRING_UC_STRING(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_STRING)
-#define DUK_HTHREAD_STRING_UC_STRING(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_STRING)
-#define DUK_STRIDX_UC_BOOLEAN 7
  /* 'Boolean' */
-#define DUK_HEAP_STRING_UC_BOOLEAN(heap)  
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_BOOLEAN)
-#define DUK_HTHREAD_STRING_UC_BOOLEAN(thr)
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_BOOLEAN)
-#define DUK_STRIDX_UC_NUMBER  8
  /* 'Number' */
-#define DUK_HEAP_STRING_UC_NUMBER(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_NUMBER)
-#define DUK_HTHREAD_STRING_UC_NUMBER(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_NUMBER)
-#define DUK_STRIDX_DATE   9
  /* 'Date' */
-#define DUK_HEAP_STRING_DATE(heap)
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_DATE)
-#define DUK_HTHREAD_STRING_DATE(thr)  
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_DATE)
-#define DUK_STRIDX_REG_EXP10   
  /* 'RegExp' */
-#define DUK_HEAP_STRING_REG_EXP(heap) 
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_REG_EXP)
-#define DUK_HTHREAD_STRING_REG_EXP(thr)   
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_REG_EXP)
-#define DUK_STRIDX_UC_ERROR   11   
  /* 'Error' */
-#define DUK_HEAP_STRING_UC_ERROR(heap) 

[25/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
deleted file mode 100644
index bf43750..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
+++ /dev/null
@@ -1,1314 +0,0 @@
-/*
- *  String built-ins
- */
-
-/* XXX: There are several limitations in the current implementation for
- * strings with >= 0x8000UL characters.  In some cases one would need
- * to be able to represent the range [-0x,0x] and so on.
- * Generally character and byte length are assumed to fit into signed 32
- * bits (< 0x8000UL).  Places with issues are not marked explicitly
- * below in all cases, look for signed type usage (duk_int_t etc) for
- * offsets/lengths.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Constructor
- */
-
-DUK_INTERNAL duk_ret_t duk_bi_string_constructor(duk_context *ctx) {
-   /* String constructor needs to distinguish between an argument not 
given at all
-* vs. given as 'undefined'.  We're a vararg function to handle this 
properly.
-*/
-
-   if (duk_get_top(ctx) == 0) {
-   duk_push_hstring_stridx(ctx, DUK_STRIDX_EMPTY_STRING);
-   } else {
-   duk_to_string(ctx, 0);
-   }
-   DUK_ASSERT(duk_is_string(ctx, 0));
-   duk_set_top(ctx, 1);
-
-   if (duk_is_constructor_call(ctx)) {
-   duk_push_object_helper(ctx,
-  DUK_HOBJECT_FLAG_EXTENSIBLE |
-  DUK_HOBJECT_FLAG_EXOTIC_STRINGOBJ |
-  
DUK_HOBJECT_CLASS_AS_FLAGS(DUK_HOBJECT_CLASS_STRING),
-  DUK_BIDX_STRING_PROTOTYPE);
-
-   /* String object internal value is immutable */
-   duk_dup(ctx, 0);
-   duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_INT_VALUE, 
DUK_PROPDESC_FLAGS_NONE);
-   }
-   /* Note: unbalanced stack on purpose */
-
-   return 1;
-}
-
-DUK_INTERNAL duk_ret_t duk_bi_string_constructor_from_char_code(duk_context 
*ctx) {
-   duk_hthread *thr = (duk_hthread *) ctx;
-   duk_bufwriter_ctx bw_alloc;
-   duk_bufwriter_ctx *bw;
-   duk_idx_t i, n;
-   duk_ucodepoint_t cp;
-
-   /* XXX: It would be nice to build the string directly but ToUint16()
-* coercion is needed so a generic helper would not be very
-* helpful (perhaps coerce the value stack first here and then
-* build a string from a duk_tval number sequence in one go?).
-*/
-
-   n = duk_get_top(ctx);
-
-   bw = _alloc;
-   DUK_BW_INIT_PUSHBUF(thr, bw, n);  /* initial estimate for ASCII only 
codepoints */
-
-   for (i = 0; i < n; i++) {
-   /* XXX: could improve bufwriter handling to write multiple 
codepoints
-* with one ensure call but the relative benefit would be quite 
small.
-*/
-
-#if defined(DUK_USE_NONSTD_STRING_FROMCHARCODE_32BIT)
-   /* ToUint16() coercion is mandatory in the E5.1 specification, 
but
-* this non-compliant behavior makes more sense because we 
support
-* non-BMP codepoints.  Don't use CESU-8 because that'd create
-* surrogate pairs.
-*/
-
-   cp = (duk_ucodepoint_t) duk_to_uint32(ctx, i);
-   DUK_BW_WRITE_ENSURE_XUTF8(thr, bw, cp);
-#else
-   cp = (duk_ucodepoint_t) duk_to_uint16(ctx, i);
-   DUK_BW_WRITE_ENSURE_CESU8(thr, bw, cp);
-#endif
-   }
-
-   DUK_BW_COMPACT(thr, bw);
-   duk_to_string(ctx, -1);
-   return 1;
-}
-
-/*
- *  toString(), valueOf()
- */
-
-DUK_INTERNAL duk_ret_t duk_bi_string_prototype_to_string(duk_context *ctx) {
-   duk_tval *tv;
-
-   duk_push_this(ctx);
-   tv = duk_require_tval(ctx, -1);
-   DUK_ASSERT(tv != NULL);
-
-   if (DUK_TVAL_IS_STRING(tv)) {
-   /* return as is */
-   return 1;
-   } else if (DUK_TVAL_IS_OBJECT(tv)) {
-   duk_hobject *h = DUK_TVAL_GET_OBJECT(tv);
-   DUK_ASSERT(h != NULL);
-
-   /* Must be a "string object", i.e. class "String" */
-   if (DUK_HOBJECT_GET_CLASS_NUMBER(h) != 
DUK_HOBJECT_CLASS_STRING) {
-   goto type_error;
-   }
-
-   duk_get_prop_stridx(ctx, -1, DUK_STRIDX_INT_VALUE);
-   DUK_ASSERT(duk_is_string(ctx, -1));
-
-   return 1;
-   } else {
-   goto type_error;
-   }
-
-   /* never here, but fall through */
-
- type_error:
-   return DUK_RET_TYPE_ERROR;
-}
-
-/*
- *  Character 

[36/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.c 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.c
deleted file mode 100644
index 9a65f55..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.c
+++ /dev/null
@@ -1,86570 +0,0 @@
-/*
- *  Single source autogenerated distributable for Duktape 1.5.2.
- *
- *  Git commit cad34ae155acb0846545ca6bf2d29f9463b22bbb (v1.5.2).
- *  Git branch HEAD.
- *
- *  See Duktape AUTHORS.rst and LICENSE.txt for copyright and
- *  licensing information.
- */
-
-/* LICENSE.txt */
-/*
-*  ===
-*  Duktape license
-*  ===
-*
-*  (http://opensource.org/licenses/MIT)
-*
-*  Copyright (c) 2013-2016 by Duktape authors (see AUTHORS.rst)
-*
-*  Permission is hereby granted, free of charge, to any person obtaining a copy
-*  of this software and associated documentation files (the "Software"), to 
deal
-*  in the Software without restriction, including without limitation the rights
-*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-*  copies of the Software, and to permit persons to whom the Software is
-*  furnished to do so, subject to the following conditions:
-*
-*  The above copyright notice and this permission notice shall be included in
-*  all copies or substantial portions of the Software.
-*
-*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
-*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-*  THE SOFTWARE.
-*/
-/* AUTHORS.rst */
-/*
-*  ===
-*  Duktape authors
-*  ===
-*
-*  Copyright
-*  =
-*
-*  Duktape copyrights are held by its authors.  Each author has a copyright
-*  to their contribution, and agrees to irrevocably license the contribution
-*  under the Duktape ``LICENSE.txt``.
-*
-*  Authors
-*  ===
-*
-*  Please include an e-mail address, a link to your GitHub profile, or 
something
-*  similar to allow your contribution to be identified accurately.
-*
-*  The following people have contributed code, website contents, or Wiki 
contents,
-*  and agreed to irrevocably license their contributions under the Duktape
-*  ``LICENSE.txt`` (in order of appearance):
-*
-*  * Sami Vaarala 
-*  * Niki Dobrev
-*  * Andreas \u00d6man 
-*  * L\u00e1szl\u00f3 Lang\u00f3 
-*  * Legimet 
-*  * Karl Skomski 
-*  * Bruce Pascoe 
-*  * Ren\u00e9 Hollander 
-*  * Julien Hamaide (https://github.com/crazyjul)
-*  * Sebastian G\u00f6tte (https://github.com/jaseg)
-*
-*  Other contributions
-*  ===
-*
-*  The following people have contributed something other than code (e.g. 
reported
-*  bugs, provided ideas, etc; roughly in order of appearance):
-*
-*  * Greg Burns
-*  * Anthony Rabine
-*  * Carlos Costa
-*  * Aur\u00e9lien Bouilland
-*  * Preet Desai (Pris Matic)
-*  * judofyr (http://www.reddit.com/user/judofyr)
-*  * Jason Woofenden
-*  * Micha\u0142 Przyby\u015b
-*  * Anthony Howe
-*  * Conrad Pankoff
-*  * Jim Schimpf
-*  * Rajaran Gaunker (https://github.com/zimbabao)
-*  * Andreas \u00d6man
-*  * Doug Sanden
-*  * Josh Engebretson (https://github.com/JoshEngebretson)
-*  * Remo Eichenberger (https://github.com/remoe)
-*  * Mamod Mehyar (https://github.com/mamod)
-*  * David Demelier (https://github.com/markand)
-*  * Tim Caswell (https://github.com/creationix)
-*  * Mitchell Blank Jr (https://github.com/mitchblank)
-*  * https://github.com/yushli
-*  * Seo Sanghyeon (https://github.com/sanxiyn)
-*  * Han ChoongWoo (https://github.com/tunz)
-*  * Joshua Peek (https://github.com/josh)
-*  * Bruce E. Pascoe (https://github.com/fatcerberus)
-*  * https://github.com/Kelledin
-*  * https://github.com/sstruchtrup
-*  * Michael Drake (https://github.com/tlsa)
-*  * https://github.com/chris-y
-*  * Laurent Zubiaur (https://github.com/lzubiaur)
-*  * Ole Andr\u00e9 Vadla Ravn\u00e5s (https://github.com/oleavr)
-*
-*  If you are accidentally missing from this list, send me an e-mail
-*  (``sami.vaar...@iki.fi``) and I'll fix the omission.
-*/
-/*
- *  Top-level include file to be used for all (internal) source files.
- *
- *  Source files should not include individual header files, as they
- *  have not been designed to be individually included.
- 

[22/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_config.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_config.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_config.h
deleted file mode 100644
index ef62235..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_config.h
+++ /dev/null
@@ -1,3804 +0,0 @@
-/*
- *  duk_config.h configuration header generated by genconfig.py.
- *
- *  Git commit: cad34ae155acb0846545ca6bf2d29f9463b22bbb
- *  Git describe: v1.5.2
- *  Git branch: HEAD
- *
- *  Supported platforms:
- *  - Mac OSX, iPhone, Darwin
- *  - OpenBSD
- *  - Generic BSD
- *  - Atari ST TOS
- *  - AmigaOS
- *  - Windows
- *  - Flashplayer (Crossbridge)
- *  - QNX
- *  - TI-Nspire
- *  - Emscripten
- *  - Linux
- *  - Solaris
- *  - Generic POSIX
- *  - Cygwin
- *  - Generic UNIX
- *  - Generic fallback
- *
- *  Supported architectures:
- *  - x86
- *  - x64
- *  - x32
- *  - ARM 32-bit
- *  - ARM 64-bit
- *  - MIPS 32-bit
- *  - MIPS 64-bit
- *  - PowerPC 32-bit
- *  - PowerPC 64-bit
- *  - SPARC 32-bit
- *  - SPARC 64-bit
- *  - SuperH
- *  - Motorola 68k
- *  - Emscripten
- *  - Generic
- *
- *  Supported compilers:
- *  - Clang
- *  - GCC
- *  - MSVC
- *  - Emscripten
- *  - TinyC
- *  - VBCC
- *  - Bruce's C compiler
- *  - Generic
- *
- */
-
-#if !defined(DUK_CONFIG_H_INCLUDED)
-#define DUK_CONFIG_H_INCLUDED
-
-/*
- *  Intermediate helper defines
- */
-
-/* DLL build detection */
-#if defined(DUK_OPT_DLL_BUILD)
-#define DUK_F_DLL_BUILD
-#elif defined(DUK_OPT_NO_DLL_BUILD)
-#undef DUK_F_DLL_BUILD
-#else
-/* not configured for DLL build */
-#undef DUK_F_DLL_BUILD
-#endif
-
-/* Apple OSX, iOS */
-#if defined(__APPLE__)
-#define DUK_F_APPLE
-#endif
-
-/* OpenBSD */
-#if defined(__OpenBSD__) || defined(__OpenBSD)
-#define DUK_F_OPENBSD
-#endif
-
-/* NetBSD */
-#if defined(__NetBSD__) || defined(__NetBSD)
-#define DUK_F_NETBSD
-#endif
-
-/* FreeBSD */
-#if defined(__FreeBSD__) || defined(__FreeBSD)
-#define DUK_F_FREEBSD
-#endif
-
-/* BSD variant */
-#if defined(DUK_F_FREEBSD) || defined(DUK_F_NETBSD) || defined(DUK_F_OPENBSD) 
|| \
-defined(__bsdi__) || defined(__DragonFly__)
-#define DUK_F_BSD
-#endif
-
-/* Atari ST TOS.  __TOS__ defined by PureC.  No platform define in VBCC
- * apparently, so to use with VBCC user must define __TOS__ manually.
-  */
-#if defined(__TOS__)
-#define DUK_F_TOS
-#endif
-
-/* Motorola 68K.  Not defined by VBCC, so user must define one of these
- * manually when using VBCC.
- */
-#if defined(__m68k__) || defined(M68000) || defined(__MC68K__)
-#define DUK_F_M68K
-#endif
-
-/* AmigaOS.  Neither AMIGA nor __amigaos__ is defined on VBCC, so user must
- * define 'AMIGA' manually when using VBCC.
- */
-#if defined(AMIGA) || defined(__amigaos__)
-#define DUK_F_AMIGAOS
-#endif
-
-/* PowerPC */
-#if defined(__powerpc) || defined(__powerpc__) || defined(__PPC__)
-#define DUK_F_PPC
-#if defined(__PPC64__) || defined(__LP64__) || defined(_LP64)
-#define DUK_F_PPC64
-#else
-#define DUK_F_PPC32
-#endif
-#endif
-
-/* Windows, both 32-bit and 64-bit */
-#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || \
-defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
-#define DUK_F_WINDOWS
-#if defined(_WIN64) || defined(WIN64)
-#define DUK_F_WIN64
-#else
-#define DUK_F_WIN32
-#endif
-#endif
-
-/* Flash player (e.g. Crossbridge) */
-#if defined(__FLASHPLAYER__)
-#define DUK_F_FLASHPLAYER
-#endif
-
-/* QNX */
-#if defined(__QNX__)
-#define DUK_F_QNX
-#endif
-
-/* TI-Nspire (using Ndless) */
-#if defined(_TINSPIRE)
-#define DUK_F_TINSPIRE
-#endif
-
-/* Emscripten (provided explicitly by user), improve if possible */
-#if defined(EMSCRIPTEN)
-#define DUK_F_EMSCRIPTEN
-#endif
-
-/* BCC (Bruce's C compiler): this is a "torture target" for compilation */
-#if defined(__BCC__) || defined(__BCC_VERSION__)
-#define DUK_F_BCC
-#endif
-
-/* Linux */
-#if defined(__linux) || defined(__linux__) || defined(linux)
-#define DUK_F_LINUX
-#endif
-
-/* illumos / Solaris */
-#if defined(__sun) && defined(__SVR4)
-#define DUK_F_SUN
-#endif
-
-/* POSIX */
-#if defined(__posix)
-#define DUK_F_POSIX
-#endif
-
-/* Cygwin */
-#if defined(__CYGWIN__)
-#define DUK_F_CYGWIN
-#endif
-
-/* Generic Unix (includes Cygwin) */
-#if defined(__unix) || defined(__unix__) || defined(unix) || \
-defined(DUK_F_LINUX) || defined(DUK_F_BSD)
-#define DUK_F_UNIX
-#endif
-
-/* stdint.h not available */
-#if defined(DUK_F_WINDOWS) && defined(_MSC_VER)
-#if (_MSC_VER < 1700)
-/* VS2012+ has stdint.h, < VS2012 does not (but it's available for download). 
*/
-#define 

[21/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
deleted file mode 100644
index 256d2dc..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- *  Debugging macros, DUK_DPRINT() and its variants in particular.
- *
- *  DUK_DPRINT() allows formatted debug prints, and supports standard
- *  and Duktape specific formatters.  See duk_debug_vsnprintf.c for details.
- *
- *  DUK_D(x), DUK_DD(x), and DUK_DDD(x) are used together with log macros
- *  for technical reasons.  They are concretely used to hide 'x' from the
- *  compiler when the corresponding log level is disabled.  This allows
- *  clean builds on non-C99 compilers, at the cost of more verbose code.
- *  Examples:
- *
- *DUK_D(DUK_DPRINT("foo"));
- *DUK_DD(DUK_DDPRINT("foo"));
- *DUK_DDD(DUK_DDDPRINT("foo"));
- *
- *  This approach is preferable to the old "double parentheses" hack because
- *  double parentheses make the C99 solution worse: __FILE__ and __LINE__ can
- *  no longer be added transparently without going through globals, which
- *  works poorly with threading.
- */
-
-#ifndef DUK_DEBUG_H_INCLUDED
-#define DUK_DEBUG_H_INCLUDED
-
-#ifdef DUK_USE_DEBUG
-
-#if defined(DUK_USE_DPRINT)
-#define DUK_D(x) x
-#else
-#define DUK_D(x) do { } while (0) /* omit */
-#endif
-
-#if defined(DUK_USE_DDPRINT)
-#define DUK_DD(x) x
-#else
-#define DUK_DD(x) do { } while (0) /* omit */
-#endif
-
-#if defined(DUK_USE_DDDPRINT)
-#define DUK_DDD(x) x
-#else
-#define DUK_DDD(x) do { } while (0) /* omit */
-#endif
-
-/*
- *  Exposed debug macros: debugging enabled
- */
-
-#define DUK_LEVEL_DEBUG1
-#define DUK_LEVEL_DDEBUG   2
-#define DUK_LEVEL_DDDEBUG  3
-
-#ifdef DUK_USE_VARIADIC_MACROS
-
-/* Note: combining __FILE__, __LINE__, and __func__ into fmt would be
- * possible compile time, but waste some space with shared function names.
- */
-#define DUK__DEBUG_LOG(lev,...)  duk_debug_log((duk_small_int_t) (lev), 
DUK_FILE_MACRO, (duk_int_t) DUK_LINE_MACRO, DUK_FUNC_MACRO, __VA_ARGS__);
-
-#define DUK_DPRINT(...)  DUK__DEBUG_LOG(DUK_LEVEL_DEBUG, __VA_ARGS__)
-
-#ifdef DUK_USE_DDPRINT
-#define DUK_DDPRINT(...) DUK__DEBUG_LOG(DUK_LEVEL_DDEBUG, __VA_ARGS__)
-#else
-#define DUK_DDPRINT(...)
-#endif
-
-#ifdef DUK_USE_DDDPRINT
-#define DUK_DDDPRINT(...)DUK__DEBUG_LOG(DUK_LEVEL_DDDEBUG, __VA_ARGS__)
-#else
-#define DUK_DDDPRINT(...)
-#endif
-
-#else  /* DUK_USE_VARIADIC_MACROS */
-
-#define DUK__DEBUG_STASH(lev)\
-   (void) DUK_SNPRINTF(duk_debug_file_stash, DUK_DEBUG_STASH_SIZE, "%s", 
(const char *) DUK_FILE_MACRO), \
-   duk_debug_file_stash[DUK_DEBUG_STASH_SIZE - 1] = (char) 0; \
-   (void) DUK_SNPRINTF(duk_debug_line_stash, DUK_DEBUG_STASH_SIZE, "%ld", 
(long) DUK_LINE_MACRO), \
-   duk_debug_line_stash[DUK_DEBUG_STASH_SIZE - 1] = (char) 0; \
-   (void) DUK_SNPRINTF(duk_debug_func_stash, DUK_DEBUG_STASH_SIZE, "%s", 
(const char *) DUK_FUNC_MACRO), \
-   duk_debug_func_stash[DUK_DEBUG_STASH_SIZE - 1] = (char) 0; \
-   (void) (duk_debug_level_stash = (lev))
-
-/* Without variadic macros resort to comma expression trickery to handle debug
- * prints.  This generates a lot of harmless warnings.  These hacks are not
- * needed normally because DUK_D() and friends will hide the entire debug log
- * statement from the compiler.
- */
-
-#ifdef DUK_USE_DPRINT
-#define DUK_DPRINT  DUK__DEBUG_STASH(DUK_LEVEL_DEBUG), (void) duk_debug_log  
/* args go here in parens */
-#else
-#define DUK_DPRINT  0 && /* args go here as a comma expression in parens */
-#endif
-
-#ifdef DUK_USE_DDPRINT
-#define DUK_DDPRINT  DUK__DEBUG_STASH(DUK_LEVEL_DDEBUG), (void) duk_debug_log  
/* args go here in parens */
-#else
-#define DUK_DDPRINT  0 && /* args */
-#endif
-
-#ifdef DUK_USE_DDDPRINT
-#define DUK_DDDPRINT  DUK__DEBUG_STASH(DUK_LEVEL_DDDEBUG), (void) 
duk_debug_log  /* args go here in parens */
-#else
-#define DUK_DDDPRINT  0 && /* args */
-#endif
-
-#endif  /* DUK_USE_VARIADIC_MACROS */
-
-#else  /* DUK_USE_DEBUG */
-
-/*
- *  Exposed debug macros: debugging disabled
- */
-
-#define DUK_D(x) do { } while (0) /* omit */
-#define DUK_DD(x) do { } while (0) /* omit */
-#define DUK_DDD(x) do { } while (0) /* omit */
-
-#ifdef DUK_USE_VARIADIC_MACROS
-
-#define DUK_DPRINT(...)
-#define DUK_DDPRINT(...)
-#define DUK_DDDPRINT(...)
-
-#else  /* DUK_USE_VARIADIC_MACROS */
-
-#define DUK_DPRINT0 && /* args go here as a comma expression in parens */
-#define DUK_DDPRINT   0 && /* args */
-#define DUK_DDDPRINT  0 && /* args */
-
-#endif  /* DUK_USE_VARIADIC_MACROS */
-
-#endif  /* DUK_USE_DEBUG */
-
-/*
- 

[46/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js
deleted file mode 100644
index ab0623f..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js
+++ /dev/null
@@ -1,2473 +0,0 @@
-/*
- *  Minimal debug web console for Duktape command line tool
- *
- *  See debugger/README.rst.
- *
- *  The web UI socket.io communication can easily become a bottleneck and
- *  it's important to ensure that the web UI remains responsive.  Basic rate
- *  limiting mechanisms (token buckets, suppressing identical messages, etc)
- *  are used here now.  Ideally the web UI would pull data on its own terms
- *  which would provide natural rate limiting.
- *
- *  Promises are used to structure callback chains.
- *
- *  https://github.com/petkaantonov/bluebird
- *  https://github.com/petkaantonov/bluebird/blob/master/API.md
- *  https://github.com/petkaantonov/bluebird/wiki/Promise-anti-patterns
- */
-
-var Promise = require('bluebird');
-var events = require('events');
-var stream = require('stream');
-var path = require('path');
-var fs = require('fs');
-var net = require('net');
-var byline = require('byline');
-var util = require('util');
-var readline = require('readline');
-var sprintf = require('sprintf').sprintf;
-var utf8 = require('utf8');
-var wrench = require('wrench');  // https://github.com/ryanmcgrath/wrench-js
-var yaml = require('yamljs');
-
-// Command line options (defaults here, overwritten if necessary)
-var optTargetHost = '127.0.0.1';
-var optTargetPort = 9091;
-var optHttpPort = 9092;
-var optJsonProxyPort = 9093;
-var optJsonProxy = false;
-var optSourceSearchDirs = [ '../tests/ecmascript' ];
-var optDumpDebugRead = null;
-var optDumpDebugWrite = null;
-var optDumpDebugPretty = null;
-var optLogMessages = false;
-
-// Constants
-var UI_MESSAGE_CLIPLEN = 128;
-var LOCALS_CLIPLEN = 64;
-var EVAL_CLIPLEN = 4096;
-var GETVAR_CLIPLEN = 4096;
-
-// Commands initiated by Duktape
-var CMD_STATUS = 0x01;
-var CMD_PRINT = 0x02;
-var CMD_ALERT = 0x03;
-var CMD_LOG = 0x04;
-var CMD_THROW = 0x05;
-var CMD_DETACHING = 0x06;
-
-// Commands initiated by the debug client (= us)
-var CMD_BASICINFO = 0x10;
-var CMD_TRIGGERSTATUS = 0x11;
-var CMD_PAUSE = 0x12;
-var CMD_RESUME = 0x13;
-var CMD_STEPINTO = 0x14;
-var CMD_STEPOVER = 0x15;
-var CMD_STEPOUT = 0x16;
-var CMD_LISTBREAK = 0x17;
-var CMD_ADDBREAK = 0x18;
-var CMD_DELBREAK = 0x19;
-var CMD_GETVAR = 0x1a;
-var CMD_PUTVAR = 0x1b;
-var CMD_GETCALLSTACK = 0x1c;
-var CMD_GETLOCALS = 0x1d;
-var CMD_EVAL = 0x1e;
-var CMD_DETACH = 0x1f;
-var CMD_DUMPHEAP = 0x20;
-var CMD_GETBYTECODE = 0x21;
-
-// Errors
-var ERR_UNKNOWN = 0x00;
-var ERR_UNSUPPORTED = 0x01;
-var ERR_TOOMANY = 0x02;
-var ERR_NOTFOUND = 0x03;
-
-// Marker objects for special protocol values
-var DVAL_EOM = { type: 'eom' };
-var DVAL_REQ = { type: 'req' };
-var DVAL_REP = { type: 'rep' };
-var DVAL_ERR = { type: 'err' };
-var DVAL_NFY = { type: 'nfy' };
-
-// String map for commands (debug dumping).  A single map works (instead of
-// separate maps for each direction) because command numbers don't currently
-// overlap.  So merge the YAML metadata.
-var debugCommandMeta = yaml.load('duk_debugcommands.yaml');
-var debugCommandNames = [];  // list of command names, merged client/target
-debugCommandMeta.target_commands.forEach(function (k, i) {
-debugCommandNames[i] = k;
-});
-debugCommandMeta.client_commands.forEach(function (k, i) {  // override
-debugCommandNames[i] = k;
-});
-var debugCommandNumbers = {};  // map from (merged) command name to number
-debugCommandNames.forEach(function (k, i) {
-debugCommandNumbers[k] = i;
-});
-
-// Duktape heaphdr type constants, must match C headers
-var DUK_HTYPE_STRING = 1;
-var DUK_HTYPE_OBJECT = 2;
-var DUK_HTYPE_BUFFER = 3;
-
-// Duktape internal class numbers, must match C headers
-var dukClassNameMeta = yaml.load('duk_classnames.yaml');
-var dukClassNames = dukClassNameMeta.class_names;
-
-// Bytecode opcode/extraop metadata
-var dukOpcodes = yaml.load('duk_opcodes.yaml');
-if (dukOpcodes.opcodes.length != 64) {
-throw new Error('opcode metadata length incorrect');
-}
-if (dukOpcodes.extra.length != 256) {
-throw new Error('extraop metadata length incorrect');
-}
-
-/*
- *  Miscellaneous helpers
- */
-
-var nybbles = '0123456789abcdef';
-
-/* Convert a buffer into a string using Unicode codepoints U+...U+00FF.
- * This is the NodeJS 'binary' encoding, but since it's being deprecated,
- * reimplement it here.  We need to avoid parsing strings as e.g. UTF-8:
- * although Duktape strings are usually UTF-8/CESU-8 that's not always the
- * case, e.g. for internal strings.  Buffer 

[44/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/static/style.css
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/static/style.css
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/static/style.css
deleted file mode 100644
index a105947..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/static/style.css
+++ /dev/null
@@ -1,516 +0,0 @@
-// 
http://stackoverflow.com/questions/71074/how-to-remove-firefoxs-dotted-outline-on-buttons-as-well-as-links/3844452#3844452
-:focus {
-   outline: none;
-}
-::-moz-focus-inner {
-   border: 0;
-}
-
-@keyframes pulsate {
-   from { opacity: 1; }
-   to { opacity: 0.25; }
-}
-
-#part-header {
-   background: #44;
-   color: #ff;
-   font: 24pt monospace;
-   border-bottom: 2px solid #cc;
-   padding: 20px 0px 20px 10px;
-}
-
-/* http://css-tricks.com/snippets/css/a-guide-to-flexbox/ */
-#part-middle {
-   display: flex;
-   flex-direction: row;
-   flex-wrap: nowrap;
-   justify-content: space-between;
-   align-items: stretch;
-   align-content: stretch;
-
-   min-height: 800px;
-
-   border-top: 1px solid #ff;
-   padding: 8px;
-   margin-top: 2px;
-}
-#left-area {
-   flex: 0 0 11em;
-   margin-right: 20px;
-   margin-bottom: 10px;
-}
-#center-area {
-   flex: 1 1 0;
-   margin-bottom: 10px;
-}
-#right-area {
-   flex: 0 0 40em;
-   margin-left: 20px;
-   margin-bottom: 10px;
-}
-
-#part-footer {
-   clear: both;
-   border-top: 2px solid #bb;
-   background: #ee;
-   color: #55;
-   text-align: center;
-   padding-top: 12px;
-   padding-bottom: 12px;
-   line-height: 1.5;
-}
-
-#exec-status {
-   margin-top: 25px;
-   margin-bottom: 25px;
-}
-#exec-state {
-   display: inline-block;
-   vertical-align: middle;
-}
-#exec-other {
-   display: inline-block;
-   vertical-align: middle;
-   font-size: 125%;
-}
-#current-state {
-   background: #228822;
-   color: #ff;
-   font: 16pt;
-   padding: 6pt;
-   border: 5px solid #228822;
-   border-radius: 10px;
-   font-size: 200%;
-   font-weight: bold;
-   margin-right: 10px;
-}
-#current-state.notrunning {
-   background: #88;
-   border: 5px solid #88;
-   border-radius: 10px;
-   animation: pulsate 0.7s cubic-bezier(0.75, 0, 0.75, 1) infinite 
alternate;
-}
-#exec-other:hover {
-   text-decoration: underline;
-   color: #ff;
-}
-
-#left-area button {
-   display: inline-block;
-   width: 100%;
-   min-width: 8em;
-   background: #226622;
-   color: #ff;
-   font: 16pt sans-serif;
-   font-weight: bold;
-   text-decoration: none;
-   margin: 10px 0 0 0;
-   padding: 0.4em;
-   border: 2px solid #00;
-   border-radius: 4px;
-}
-#left-area button a {
-   color: #ff;
-   text-decoration: none;
-}
-#left-area button:hover {
-   background: #55aa55;
-}
-#left-area button:disabled {
-   background: #55;
-   color: #88;
-}
-#left-area button:disabled a {
-   background: #55;
-   color: #88;
-}
-
-#pause-button.pending {
-   background: #ff;
-   animation: pulsate 0.2s cubic-bezier(0.75, 0, 0.75, 1) infinite 
alternate;
-}
-
-#attach-button {
-}
-#attach-button.enabled {
-   animation: pulsate 0.7s cubic-bezier(0.75, 0, 0.75, 1) infinite 
alternate;
-}
-
-.duktape-exec-line {
-   outline: 2px solid red;
-   background: #55;
-}
-.duktape-break-line {
-   outline: 2px solid white;
-}
-
-#output {
-   font: 9pt monospace;
-   color: #00;
-   border: 2px solid #cc;
-   border-radius: 5px;
-   padding: 3px;
-   height: 30ex;
-   overflow: scroll;
-   overflow-x: auto;
-   overflow-y: scroll;
-   white-space: pre;
-}
-#output .alert {
-   color: #ff;
-}
-/* Default color (should be overridden by level) */
-#output .log {
-   color: #00ff00;
-}
-/* Trace */
-#output .loglevel0 {
-   color: #cc;
-}
-/* Debug */
-#output .loglevel1 {
-   color: #cc;
-}
-/* Info */
-#output .loglevel2 {
-   color: #88;
-   font-weight: bold;
-}
-/* Warn */
-#output .loglevel3 {
-   color: #ff;
-   font-weight: bold;
-}
-/* Error */
-#output .loglevel4 {
-   color: #ff;
-   font-weight: bold;
-}
-/* Fatal */
-#output .loglevel5 {
-   background: #00;
-   color: #ff;
-   font-weight: bold;
-}
-#output .debugger-info {
-   color: #88;
-   font-weight: bold;
-   font-style: italic;
-}
-#output .debugger-debug {
-   color: #88;
-   font-weight: bold;
-   font-style: 

[50/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c
--
diff --git a/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c 
b/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c
deleted file mode 100644
index 9ac7f9f..000
--- a/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c
+++ /dev/null
@@ -1,476 +0,0 @@
-/**
-LuaXML License
-
-LuaXml is licensed under the terms of the MIT license reproduced below,
-the same as Lua itself. This means that LuaXml is free software and can be
-used for both academic and commercial purposes at absolutely no cost.
-
-Copyright (C) 2007-2013 Gerald Franz, eludi.net
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-#if defined __WIN32__ || defined WIN32
-# include 
-# define _EXPORT __declspec(dllexport)
-#else
-# define _EXPORT
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "civetweb_lua.h"
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#include 
-#include 
-#include 
-#include 
-
-static const char ESC=27;
-static const char OPN=28;
-static const char CLS=29;
-
-//--- auxliary functions ---
-
-static const char* char2code(unsigned char ch, char buf[8]) {
-unsigned char i=0;
-buf[i++]='&';
-buf[i++]='#';
-if(ch>99) buf[i++]=ch/100+48;
-if(ch>9) buf[i++]=(ch%100)/10+48;
-buf[i++]=ch%10+48;
-buf[i++]=';';
-buf[i]=0;
-return buf;
-}
-
-static size_t find(const char* s, const char* pattern, size_t start) {
-const char* found =strstr(s+start, pattern);
-return found ? found-s : strlen(s);
-}
-
-//--- internal tokenizer ---
-
-typedef struct Tokenizer_s  {
-/// stores string to be tokenized
-const char* s;
-/// stores size of string to be tokenized
-size_t s_size;
-/// stores current read position
-size_t i;
-/// stores current read context
-int tagMode;
-/// stores next token, if already determined
-const char* m_next;
-/// size of next token
-size_t m_next_size;
-/// pointer to current token
-char* m_token;
-/// size of current token
-size_t m_token_size;
-/// capacity of current token
-size_t m_token_capacity;
-} Tokenizer;
-
-Tokenizer* Tokenizer_new(const char* str, size_t str_size) {
-Tokenizer *tok = (Tokenizer*)malloc(sizeof(Tokenizer));
-memset(tok, 0, sizeof(Tokenizer));
-tok->s_size = str_size;
-tok->s = str;
-return tok;
-}
-
-void Tokenizer_delete(Tokenizer* tok) {
-free(tok->m_token);
-free(tok);
-}
-
-//void Tokenizer_print(Tokenizer* tok) { printf("  @%u %s\n", tok->i, 
!tok->m_token ? "(null)" : (tok->m_token[0]==ESC)?"(esc)" : 
(tok->m_token[0]==OPN)?"(open)": (tok->m_token[0]==CLS)?"(close)" : 
tok->m_token); fflush(stdout); }
-
-static const char* Tokenizer_set(Tokenizer* tok, const char* s, size_t size) {
-if(!size||!s) return 0;
-free(tok->m_token);
-tok->m_token = (char*)malloc(size+1);
-strncpy(tok->m_token,s, size);
-tok->m_token[size] = 0;
-tok->m_token_size = tok->m_token_capacity = size;
-//Tokenizer_print(tok);
-return tok->m_token;
-}
-
-static void Tokenizer_append(Tokenizer* tok, char ch) {
-if(tok->m_token_size+1>=tok->m_token_capacity) {
-tok->m_token_capacity = (tok->m_token_capacity==0) ? 16 : 
tok->m_token_capacity*2;
-tok->m_token = (char*)realloc(tok->m_token, tok->m_token_capacity);
-}
-tok->m_token[tok->m_token_size]=ch;
-tok->m_token[++tok->m_token_size]=0;
-}
-
-const char* Tokenizer_next(Tokenizer* tok) {
-const char* ESC_str = "\033";
-const char* OPEN_str = "\034";
-const char* CLOSE_str = "\035";
-int quotMode=0;
-int tokenComplete = 0;
-
-if(tok->m_token) {
-free(tok->m_token);
-tok->m_token = 0;
-tok->m_token_size=tok->m_token_capacity = 0;
-}
-
-   

[41/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c
deleted file mode 100644
index 4409926..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- *  Very simple example program for evaluating expressions from
- *  command line
- */
-
-#include "duktape.h"
-#include 
-
-static int eval_raw(duk_context *ctx) {
-   duk_eval(ctx);
-   return 1;
-}
-
-static int tostring_raw(duk_context *ctx) {
-   duk_to_string(ctx, -1);
-   return 1;
-}
-
-static void usage_exit(void) {
-   fprintf(stderr, "Usage: eval  [] ...\n");
-   fflush(stderr);
-   exit(1);
-}
-
-int main(int argc, char *argv[]) {
-   duk_context *ctx;
-   int i;
-   const char *res;
-
-   if (argc < 2) {
-   usage_exit();
-   }
-
-   ctx = duk_create_heap_default();
-   for (i = 1; i < argc; i++) {
-   printf("=== eval: '%s' ===\n", argv[i]);
-   duk_push_string(ctx, argv[i]);
-   duk_safe_call(ctx, eval_raw, 1 /*nargs*/, 1 /*nrets*/);
-   duk_safe_call(ctx, tostring_raw, 1 /*nargs*/, 1 /*nrets*/);
-   res = duk_get_string(ctx, -1);
-   printf("%s\n", res ? res : "null");
-   duk_pop(ctx);
-   }
-
-   duk_destroy_heap(ctx);
-
-   return 0;
-}

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
deleted file mode 100644
index 5b1b147..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
+++ /dev/null
@@ -1,76 +0,0 @@
-==
-Eventloop examples
-==
-
-Overview and usage
-==
-
-A few examples on how an event loop can be implemented with Duktape, mainly
-illlustrating how the Duktape interface works (not how event loops should be
-built otherwise).
-
-To test (Linux only, perhaps other Unix)::
-
-  $ make
-  $ ./evloop curses-timers.js # run with Ecmascript eventloop
-  $ ./evloop -c curses-timers.js  # run with C eventloop
-
-Implementation approaches
-=
-
-There are several approaches to implementation timers.  Here we demonstrate
-two main approaches:
-
-1. Using a C eventloop which calls into Javascript.  All the event loop state
-   like timers, sockets, etc, is held in C structures.
-   (See ``c_eventloop.c`` and ``c_eventloop.js``.)
-
-2. Using an Ecmascript eventloop which never returns.  All the event loop state
-   can be managed with Ecmascript code instead of C structures.  The Ecmascript
-   eventloop calls a Duktape/C helper to do the lowest level poll() call.
-   (See ``ecma_eventloop.js``.)
-
-Services provided
-=
-
-The event loop API provided by both examples is the same, and includes:
-
-* Timers: setTimeout, clearTimeout, setInterval, clearInterval
-
-* Sockets: simple network sockets
-
-In addition there are a few synchronous API bindings which are not event loop
-related:
-
-* File I/O
-
-* Curses, for doing beautiful character graphics
-
-Limitations
-===
-
-This is **not** a production quality event loop.  This is on purpose, to
-keep the example somewhat simple.  Some shortcomings include:
-
-* A production quality event loop would track its internal state (active
-  timers and sockets) much more efficiently.  In general memory usage and
-  code footprint can be reduced.
-
-* Buffer churn caused by allocating a new buffer for every socket read
-  should be eliminated by reusing buffers where appropriate.  Although
-  churn doesn't increase memory footprint with reference counting, it
-  is slower than reusing buffers and might increase memory fragmentation.
-
-* There is no way to suspend reading or writing in the example.  Adding
-  them is straightforward: the poll set needs to be managed dynamically.
-
-* The example uses poll() while one should use epoll() on Linux, kqueue()
-  on BSD systems, etc.
-
-* Timers are not very accurate, e.g. setInterval() does not try to guarantee
-  a steady schedule.  Instead, the next interval is scheduled after the
-  current callback has finished.  This is not the best behavior for some
-  environments, but avoids bunching callbacks.
-
-* Error handling is mostly missing.  Debug prints don't interact well
-  with curses.


[40/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
deleted file mode 100644
index 915faa9..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
+++ /dev/null
@@ -1,252 +0,0 @@
-/*
- *  Sandboxing example
- *
- *  Uses custom memory allocation functions which keep track of total amount
- *  of memory allocated, imposing a maximum total allocation size.
- */
-
-#include 
-#include 
-#include "duktape.h"
-
-/*
- *  Memory allocator which backs to standard library memory functions but
- *  keeps a small header to track current allocation size.
- *
- *  Many other sandbox allocation models are useful, e.g. preallocated pools.
- */
-
-typedef struct {
-   /* The double value in the union is there to ensure alignment is
-* good for IEEE doubles too.  In many 32-bit environments 4 bytes
-* would be sufficiently aligned and the double value is unnecessary.
-*/
-   union {
-   size_t sz;
-   double d;
-   } u;
-} alloc_hdr;
-
-static size_t total_allocated = 0;
-static size_t max_allocated = 256 * 1024;  /* 256kB sandbox */
-
-static void sandbox_dump_memstate(void) {
-#if 0
-   fprintf(stderr, "Total allocated: %ld\n", (long) total_allocated);
-   fflush(stderr);
-#endif
-}
-
-static void *sandbox_alloc(void *udata, duk_size_t size) {
-   alloc_hdr *hdr;
-
-   (void) udata;  /* Suppress warning. */
-
-   if (size == 0) {
-   return NULL;
-   }
-
-   if (total_allocated + size > max_allocated) {
-   fprintf(stderr, "Sandbox maximum allocation size reached, %ld 
requested in sandbox_alloc\n",
-   (long) size);
-   fflush(stderr);
-   return NULL;
-   }
-
-   hdr = (alloc_hdr *) malloc(size + sizeof(alloc_hdr));
-   if (!hdr) {
-   return NULL;
-   }
-   hdr->u.sz = size;
-   total_allocated += size;
-   sandbox_dump_memstate();
-   return (void *) (hdr + 1);
-}
-
-static void *sandbox_realloc(void *udata, void *ptr, duk_size_t size) {
-   alloc_hdr *hdr;
-   size_t old_size;
-   void *t;
-
-   (void) udata;  /* Suppress warning. */
-
-   /* Handle the ptr-NULL vs. size-zero cases explicitly to minimize
-* platform assumptions.  You can get away with much less in specific
-* well-behaving environments.
-*/
-
-   if (ptr) {
-   hdr = (alloc_hdr *) (((char *) ptr) - sizeof(alloc_hdr));
-   old_size = hdr->u.sz;
-
-   if (size == 0) {
-   total_allocated -= old_size;
-   free((void *) hdr);
-   sandbox_dump_memstate();
-   return NULL;
-   } else {
-   if (total_allocated - old_size + size > max_allocated) {
-   fprintf(stderr, "Sandbox maximum allocation 
size reached, %ld requested in sandbox_realloc\n",
-   (long) size);
-   fflush(stderr);
-   return NULL;
-   }
-
-   t = realloc((void *) hdr, size + sizeof(alloc_hdr));
-   if (!t) {
-   return NULL;
-   }
-   hdr = (alloc_hdr *) t;
-   total_allocated -= old_size;
-   total_allocated += size;
-   hdr->u.sz = size;
-   sandbox_dump_memstate();
-   return (void *) (hdr + 1);
-   }
-   } else {
-   if (size == 0) {
-   return NULL;
-   } else {
-   if (total_allocated + size > max_allocated) {
-   fprintf(stderr, "Sandbox maximum allocation 
size reached, %ld requested in sandbox_realloc\n",
-   (long) size);
-   fflush(stderr);
-   return NULL;
-   }
-
-   hdr = (alloc_hdr *) malloc(size + sizeof(alloc_hdr));
-   if (!hdr) {
-   return NULL;
-   }
-   hdr->u.sz = size;
-   total_allocated += size;
-   sandbox_dump_memstate();
-   return (void *) (hdr + 1);
-   }
-   }
-}
-
-static void sandbox_free(void *udata, void *ptr) {
-   alloc_hdr *hdr;

[33/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
deleted file mode 100644
index 38677ba..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- *  Compilation and evaluation
- */
-
-#include "duk_internal.h"
-
-typedef struct duk__compile_raw_args duk__compile_raw_args;
-struct duk__compile_raw_args {
-   duk_size_t src_length;  /* should be first on 64-bit platforms */
-   const duk_uint8_t *src_buffer;
-   duk_uint_t flags;
-};
-
-/* Eval is just a wrapper now. */
-DUK_EXTERNAL duk_int_t duk_eval_raw(duk_context *ctx, const char *src_buffer, 
duk_size_t src_length, duk_uint_t flags) {
-   duk_uint_t comp_flags;
-   duk_int_t rc;
-
-   DUK_ASSERT_CTX_VALID(ctx);
-
-   /* Note: strictness is *not* inherited from the current Duktape/C.
-* This would be confusing because the current strictness state
-* depends on whether we're running inside a Duktape/C activation
-* (= strict mode) or outside of any activation (= non-strict mode).
-* See tests/api/test-eval-strictness.c for more discussion.
-*/
-
-   /* [ ... source? filename? ] (depends on flags) */
-
-   comp_flags = flags;
-   comp_flags |= DUK_COMPILE_EVAL;
-   rc = duk_compile_raw(ctx, src_buffer, src_length, comp_flags);  /* may 
be safe, or non-safe depending on flags */
-
-   /* [ ... closure/error ] */
-
-   if (rc != DUK_EXEC_SUCCESS) {
-   rc = DUK_EXEC_ERROR;
-   goto got_rc;
-   }
-
-   duk_push_global_object(ctx);  /* explicit 'this' binding, see GH-164 */
-
-   if (flags & DUK_COMPILE_SAFE) {
-   rc = duk_pcall_method(ctx, 0);
-   } else {
-   duk_call_method(ctx, 0);
-   rc = DUK_EXEC_SUCCESS;
-   }
-
-   /* [ ... result/error ] */
-
- got_rc:
-   if (flags & DUK_COMPILE_NORESULT) {
-   duk_pop(ctx);
-   }
-
-   return rc;
-}
-
-/* Helper which can be called both directly and with duk_safe_call(). */
-DUK_LOCAL duk_ret_t duk__do_compile(duk_context *ctx) {
-   duk_hthread *thr = (duk_hthread *) ctx;
-   duk__compile_raw_args *comp_args;
-   duk_uint_t flags;
-   duk_small_uint_t comp_flags;
-   duk_hcompiledfunction *h_templ;
-
-   DUK_ASSERT_CTX_VALID(ctx);
-
-   /* Note: strictness is not inherited from the current Duktape/C
-* context.  Otherwise it would not be possible to compile
-* non-strict code inside a Duktape/C activation (which is
-* always strict now).  See tests/api/test-eval-strictness.c
-* for discussion.
-*/
-
-   /* [ ... source? filename? _args ] (depends on flags) */
-
-   comp_args = (duk__compile_raw_args *) duk_require_pointer(ctx, -1);
-   flags = comp_args->flags;
-   duk_pop(ctx);
-
-   /* [ ... source? filename? ] */
-
-   if (flags & DUK_COMPILE_NOFILENAME) {
-   /* Automatic filename: 'eval' or 'input'. */
-   duk_push_hstring_stridx(ctx, (flags & DUK_COMPILE_EVAL) ? 
DUK_STRIDX_EVAL : DUK_STRIDX_INPUT);
-   }
-
-   /* [ ... source? filename ] */
-
-   if (!comp_args->src_buffer) {
-   duk_hstring *h_sourcecode;
-
-   h_sourcecode = duk_get_hstring(ctx, -2);
-   if ((flags & DUK_COMPILE_NOSOURCE) ||  /* args incorrect */
-   (h_sourcecode == NULL)) {  /* e.g. 
duk_push_string_file_raw() pushed undefined */
-   /* XXX: when this error is caused by a nonexistent
-* file given to duk_peval_file() or similar, the
-* error message is not the best possible.
-*/
-   DUK_ERROR_API(thr, DUK_STR_NO_SOURCECODE);
-   }
-   DUK_ASSERT(h_sourcecode != NULL);
-   comp_args->src_buffer = (const duk_uint8_t *) 
DUK_HSTRING_GET_DATA(h_sourcecode);
-   comp_args->src_length = (duk_size_t) 
DUK_HSTRING_GET_BYTELEN(h_sourcecode);
-   }
-   DUK_ASSERT(comp_args->src_buffer != NULL);
-
-   /* XXX: unnecessary translation of flags */
-   comp_flags = 0;
-   if (flags & DUK_COMPILE_EVAL) {
-   comp_flags |= DUK_JS_COMPILE_FLAG_EVAL;
-   }
-   if (flags & DUK_COMPILE_FUNCTION) {
-   comp_flags |= DUK_JS_COMPILE_FLAG_EVAL |
- DUK_JS_COMPILE_FLAG_FUNCEXPR;
-   }
-   if (flags & DUK_COMPILE_STRICT) {
-   comp_flags |= DUK_JS_COMPILE_FLAG_STRICT;
-   }
-
- 

[49/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-dll
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-dll
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-dll
deleted file mode 100644
index 5d5d013..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-dll
+++ /dev/null
@@ -1,3415 +0,0 @@
-/*
- *  duk_config.h configuration header generated by genconfig.py.
- *
- *  Git commit: cad34ae155acb0846545ca6bf2d29f9463b22bbb
- *  Git describe: v1.5.2
- *  Git branch: HEAD
- *
- *  Supported platforms:
- *  - Mac OSX, iPhone, Darwin
- *  - OpenBSD
- *  - Generic BSD
- *  - Atari ST TOS
- *  - AmigaOS
- *  - Windows
- *  - Flashplayer (Crossbridge)
- *  - QNX
- *  - TI-Nspire
- *  - Emscripten
- *  - Linux
- *  - Solaris
- *  - Generic POSIX
- *  - Cygwin
- *  - Generic UNIX
- *  - Generic fallback
- *
- *  Supported architectures:
- *  - x86
- *  - x64
- *  - x32
- *  - ARM 32-bit
- *  - ARM 64-bit
- *  - MIPS 32-bit
- *  - MIPS 64-bit
- *  - PowerPC 32-bit
- *  - PowerPC 64-bit
- *  - SPARC 32-bit
- *  - SPARC 64-bit
- *  - SuperH
- *  - Motorola 68k
- *  - Emscripten
- *  - Generic
- *
- *  Supported compilers:
- *  - Clang
- *  - GCC
- *  - MSVC
- *  - Emscripten
- *  - TinyC
- *  - VBCC
- *  - Bruce's C compiler
- *  - Generic
- *
- */
-
-#if !defined(DUK_CONFIG_H_INCLUDED)
-#define DUK_CONFIG_H_INCLUDED
-
-/*
- *  Intermediate helper defines
- */
-
-/* DLL build detection */
-#if defined(DUK_OPT_DLL_BUILD)
-#define DUK_F_DLL_BUILD
-#elif defined(DUK_OPT_NO_DLL_BUILD)
-#undef DUK_F_DLL_BUILD
-#else
-/* configured for DLL build */
-#define DUK_F_DLL_BUILD
-#endif
-
-/* Apple OSX, iOS */
-#if defined(__APPLE__)
-#define DUK_F_APPLE
-#endif
-
-/* OpenBSD */
-#if defined(__OpenBSD__) || defined(__OpenBSD)
-#define DUK_F_OPENBSD
-#endif
-
-/* NetBSD */
-#if defined(__NetBSD__) || defined(__NetBSD)
-#define DUK_F_NETBSD
-#endif
-
-/* FreeBSD */
-#if defined(__FreeBSD__) || defined(__FreeBSD)
-#define DUK_F_FREEBSD
-#endif
-
-/* BSD variant */
-#if defined(DUK_F_FREEBSD) || defined(DUK_F_NETBSD) || defined(DUK_F_OPENBSD) 
|| \
-defined(__bsdi__) || defined(__DragonFly__)
-#define DUK_F_BSD
-#endif
-
-/* Atari ST TOS.  __TOS__ defined by PureC.  No platform define in VBCC
- * apparently, so to use with VBCC user must define __TOS__ manually.
-  */
-#if defined(__TOS__)
-#define DUK_F_TOS
-#endif
-
-/* Motorola 68K.  Not defined by VBCC, so user must define one of these
- * manually when using VBCC.
- */
-#if defined(__m68k__) || defined(M68000) || defined(__MC68K__)
-#define DUK_F_M68K
-#endif
-
-/* AmigaOS.  Neither AMIGA nor __amigaos__ is defined on VBCC, so user must
- * define 'AMIGA' manually when using VBCC.
- */
-#if defined(AMIGA) || defined(__amigaos__)
-#define DUK_F_AMIGAOS
-#endif
-
-/* PowerPC */
-#if defined(__powerpc) || defined(__powerpc__) || defined(__PPC__)
-#define DUK_F_PPC
-#if defined(__PPC64__) || defined(__LP64__) || defined(_LP64)
-#define DUK_F_PPC64
-#else
-#define DUK_F_PPC32
-#endif
-#endif
-
-/* Windows, both 32-bit and 64-bit */
-#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || \
-defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
-#define DUK_F_WINDOWS
-#if defined(_WIN64) || defined(WIN64)
-#define DUK_F_WIN64
-#else
-#define DUK_F_WIN32
-#endif
-#endif
-
-/* Flash player (e.g. Crossbridge) */
-#if defined(__FLASHPLAYER__)
-#define DUK_F_FLASHPLAYER
-#endif
-
-/* QNX */
-#if defined(__QNX__)
-#define DUK_F_QNX
-#endif
-
-/* TI-Nspire (using Ndless) */
-#if defined(_TINSPIRE)
-#define DUK_F_TINSPIRE
-#endif
-
-/* Emscripten (provided explicitly by user), improve if possible */
-#if defined(EMSCRIPTEN)
-#define DUK_F_EMSCRIPTEN
-#endif
-
-/* BCC (Bruce's C compiler): this is a "torture target" for compilation */
-#if defined(__BCC__) || defined(__BCC_VERSION__)
-#define DUK_F_BCC
-#endif
-
-/* Linux */
-#if defined(__linux) || defined(__linux__) || defined(linux)
-#define DUK_F_LINUX
-#endif
-
-/* illumos / Solaris */
-#if defined(__sun) && defined(__SVR4)
-#define DUK_F_SUN
-#endif
-
-/* POSIX */
-#if defined(__posix)
-#define DUK_F_POSIX
-#endif
-
-/* Cygwin */
-#if defined(__CYGWIN__)
-#define DUK_F_CYGWIN
-#endif
-
-/* Generic Unix (includes Cygwin) */
-#if defined(__unix) || defined(__unix__) || defined(unix) || \
-defined(DUK_F_LINUX) || defined(DUK_F_BSD)
-#define DUK_F_UNIX
-#endif
-
-/* stdint.h not available */
-#if defined(DUK_F_WINDOWS) && defined(_MSC_VER)
-#if (_MSC_VER < 1700)
-/* VS2012+ has stdint.h, < VS2012 does not (but it's available for download). 
*/

[37/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duk_config.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duk_config.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duk_config.h
deleted file mode 100644
index ef62235..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duk_config.h
+++ /dev/null
@@ -1,3804 +0,0 @@
-/*
- *  duk_config.h configuration header generated by genconfig.py.
- *
- *  Git commit: cad34ae155acb0846545ca6bf2d29f9463b22bbb
- *  Git describe: v1.5.2
- *  Git branch: HEAD
- *
- *  Supported platforms:
- *  - Mac OSX, iPhone, Darwin
- *  - OpenBSD
- *  - Generic BSD
- *  - Atari ST TOS
- *  - AmigaOS
- *  - Windows
- *  - Flashplayer (Crossbridge)
- *  - QNX
- *  - TI-Nspire
- *  - Emscripten
- *  - Linux
- *  - Solaris
- *  - Generic POSIX
- *  - Cygwin
- *  - Generic UNIX
- *  - Generic fallback
- *
- *  Supported architectures:
- *  - x86
- *  - x64
- *  - x32
- *  - ARM 32-bit
- *  - ARM 64-bit
- *  - MIPS 32-bit
- *  - MIPS 64-bit
- *  - PowerPC 32-bit
- *  - PowerPC 64-bit
- *  - SPARC 32-bit
- *  - SPARC 64-bit
- *  - SuperH
- *  - Motorola 68k
- *  - Emscripten
- *  - Generic
- *
- *  Supported compilers:
- *  - Clang
- *  - GCC
- *  - MSVC
- *  - Emscripten
- *  - TinyC
- *  - VBCC
- *  - Bruce's C compiler
- *  - Generic
- *
- */
-
-#if !defined(DUK_CONFIG_H_INCLUDED)
-#define DUK_CONFIG_H_INCLUDED
-
-/*
- *  Intermediate helper defines
- */
-
-/* DLL build detection */
-#if defined(DUK_OPT_DLL_BUILD)
-#define DUK_F_DLL_BUILD
-#elif defined(DUK_OPT_NO_DLL_BUILD)
-#undef DUK_F_DLL_BUILD
-#else
-/* not configured for DLL build */
-#undef DUK_F_DLL_BUILD
-#endif
-
-/* Apple OSX, iOS */
-#if defined(__APPLE__)
-#define DUK_F_APPLE
-#endif
-
-/* OpenBSD */
-#if defined(__OpenBSD__) || defined(__OpenBSD)
-#define DUK_F_OPENBSD
-#endif
-
-/* NetBSD */
-#if defined(__NetBSD__) || defined(__NetBSD)
-#define DUK_F_NETBSD
-#endif
-
-/* FreeBSD */
-#if defined(__FreeBSD__) || defined(__FreeBSD)
-#define DUK_F_FREEBSD
-#endif
-
-/* BSD variant */
-#if defined(DUK_F_FREEBSD) || defined(DUK_F_NETBSD) || defined(DUK_F_OPENBSD) 
|| \
-defined(__bsdi__) || defined(__DragonFly__)
-#define DUK_F_BSD
-#endif
-
-/* Atari ST TOS.  __TOS__ defined by PureC.  No platform define in VBCC
- * apparently, so to use with VBCC user must define __TOS__ manually.
-  */
-#if defined(__TOS__)
-#define DUK_F_TOS
-#endif
-
-/* Motorola 68K.  Not defined by VBCC, so user must define one of these
- * manually when using VBCC.
- */
-#if defined(__m68k__) || defined(M68000) || defined(__MC68K__)
-#define DUK_F_M68K
-#endif
-
-/* AmigaOS.  Neither AMIGA nor __amigaos__ is defined on VBCC, so user must
- * define 'AMIGA' manually when using VBCC.
- */
-#if defined(AMIGA) || defined(__amigaos__)
-#define DUK_F_AMIGAOS
-#endif
-
-/* PowerPC */
-#if defined(__powerpc) || defined(__powerpc__) || defined(__PPC__)
-#define DUK_F_PPC
-#if defined(__PPC64__) || defined(__LP64__) || defined(_LP64)
-#define DUK_F_PPC64
-#else
-#define DUK_F_PPC32
-#endif
-#endif
-
-/* Windows, both 32-bit and 64-bit */
-#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || \
-defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
-#define DUK_F_WINDOWS
-#if defined(_WIN64) || defined(WIN64)
-#define DUK_F_WIN64
-#else
-#define DUK_F_WIN32
-#endif
-#endif
-
-/* Flash player (e.g. Crossbridge) */
-#if defined(__FLASHPLAYER__)
-#define DUK_F_FLASHPLAYER
-#endif
-
-/* QNX */
-#if defined(__QNX__)
-#define DUK_F_QNX
-#endif
-
-/* TI-Nspire (using Ndless) */
-#if defined(_TINSPIRE)
-#define DUK_F_TINSPIRE
-#endif
-
-/* Emscripten (provided explicitly by user), improve if possible */
-#if defined(EMSCRIPTEN)
-#define DUK_F_EMSCRIPTEN
-#endif
-
-/* BCC (Bruce's C compiler): this is a "torture target" for compilation */
-#if defined(__BCC__) || defined(__BCC_VERSION__)
-#define DUK_F_BCC
-#endif
-
-/* Linux */
-#if defined(__linux) || defined(__linux__) || defined(linux)
-#define DUK_F_LINUX
-#endif
-
-/* illumos / Solaris */
-#if defined(__sun) && defined(__SVR4)
-#define DUK_F_SUN
-#endif
-
-/* POSIX */
-#if defined(__posix)
-#define DUK_F_POSIX
-#endif
-
-/* Cygwin */
-#if defined(__CYGWIN__)
-#define DUK_F_CYGWIN
-#endif
-
-/* Generic Unix (includes Cygwin) */
-#if defined(__unix) || defined(__unix__) || defined(unix) || \
-defined(DUK_F_LINUX) || defined(DUK_F_BSD)
-#define DUK_F_UNIX
-#endif
-
-/* stdint.h not available */
-#if defined(DUK_F_WINDOWS) && defined(_MSC_VER)
-#if (_MSC_VER < 1700)
-/* VS2012+ has stdint.h, < VS2012 does not (but it's available for download). 
*/
-#define DUK_F_NO_STDINT_H

[09/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_compiler.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_compiler.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_compiler.c
deleted file mode 100644
index 3983c7c..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_compiler.c
+++ /dev/null
@@ -1,7865 +0,0 @@
-/*
- *  Ecmascript compiler.
- *
- *  Parses an input string and generates a function template result.
- *  Compilation may happen in multiple contexts (global code, eval
- *  code, function code).
- *
- *  The parser uses a traditional top-down recursive parsing for the
- *  statement level, and an operator precedence based top-down approach
- *  for the expression level.  The attempt is to minimize the C stack
- *  depth.  Bytecode is generated directly without an intermediate
- *  representation (tree), at the cost of needing two passes over each
- *  function.
- *
- *  The top-down recursive parser functions are named "duk__parse_XXX".
- *
- *  Recursion limits are in key functions to prevent arbitrary C recursion:
- *  function body parsing, statement parsing, and expression parsing.
- *
- *  See doc/compiler.rst for discussion on the design.
- *
- *  A few typing notes:
- *
- *- duk_regconst_t: unsigned, no marker value for "none"
- *- duk_reg_t: signed, < 0 = none
- *- PC values: duk_int_t, negative values used as markers
- */
-
-#include "duk_internal.h"
-
-/* if highest bit of a register number is set, it refers to a constant instead 
*/
-#define DUK__CONST_MARKER DUK_JS_CONST_MARKER
-
-/* for array and object literals */
-#define DUK__MAX_ARRAY_INIT_VALUES20
-#define DUK__MAX_OBJECT_INIT_PAIRS10
-
-/* XXX: hack, remove when const lookup is not O(n) */
-#define DUK__GETCONST_MAX_CONSTS_CHECK256
-
-/* These limits are based on bytecode limits.  Max temps is limited
- * by duk_hcompiledfunction nargs/nregs fields being 16 bits.
- */
-#define DUK__MAX_CONSTS   DUK_BC_BC_MAX
-#define DUK__MAX_FUNCSDUK_BC_BC_MAX
-#define DUK__MAX_TEMPS0xL
-
-/* Initial bytecode size allocation. */
-#define DUK__BC_INITIAL_INSTS 256
-
-#define DUK__RECURSION_INCREASE(comp_ctx,thr)  do { \
-   DUK_DDD(DUK_DDDPRINT("RECURSION INCREASE: %s:%ld", (const char 
*) DUK_FILE_MACRO, (long) DUK_LINE_MACRO)); \
-   duk__recursion_increase((comp_ctx)); \
-   } while (0)
-
-#define DUK__RECURSION_DECREASE(comp_ctx,thr)  do { \
-   DUK_DDD(DUK_DDDPRINT("RECURSION DECREASE: %s:%ld", (const char 
*) DUK_FILE_MACRO, (long) DUK_LINE_MACRO)); \
-   duk__recursion_decrease((comp_ctx)); \
-   } while (0)
-
-/* Value stack slot limits: these are quite approximate right now, and
- * because they overlap in control flow, some could be eliminated.
- */
-#define DUK__COMPILE_ENTRY_SLOTS  8
-#define DUK__FUNCTION_INIT_REQUIRE_SLOTS  16
-#define DUK__FUNCTION_BODY_REQUIRE_SLOTS  16
-#define DUK__PARSE_STATEMENTS_SLOTS   16
-#define DUK__PARSE_EXPR_SLOTS 16
-
-/* Temporary structure used to pass a stack allocated region through
- * duk_safe_call().
- */
-typedef struct {
-   duk_small_uint_t flags;
-   duk_compiler_ctx comp_ctx_alloc;
-   duk_lexer_point lex_pt_alloc;
-} duk__compiler_stkstate;
-
-/*
- *  Prototypes
- */
-
-/* lexing */
-DUK_LOCAL_DECL void duk__advance_helper(duk_compiler_ctx *comp_ctx, 
duk_small_int_t expect);
-DUK_LOCAL_DECL void duk__advance_expect(duk_compiler_ctx *comp_ctx, 
duk_small_int_t expect);
-DUK_LOCAL_DECL void duk__advance(duk_compiler_ctx *ctx);
-
-/* function helpers */
-DUK_LOCAL_DECL void duk__init_func_valstack_slots(duk_compiler_ctx *comp_ctx);
-DUK_LOCAL_DECL void duk__reset_func_for_pass2(duk_compiler_ctx *comp_ctx);
-DUK_LOCAL_DECL void duk__init_varmap_and_prologue_for_pass2(duk_compiler_ctx 
*comp_ctx, duk_reg_t *out_stmt_value_reg);
-DUK_LOCAL_DECL void duk__convert_to_func_template(duk_compiler_ctx *comp_ctx, 
duk_bool_t force_no_namebind);
-DUK_LOCAL_DECL duk_int_t duk__cleanup_varmap(duk_compiler_ctx *comp_ctx);
-
-/* code emission */
-DUK_LOCAL_DECL duk_int_t duk__get_current_pc(duk_compiler_ctx *comp_ctx);
-DUK_LOCAL_DECL duk_compiler_instr *duk__get_instr_ptr(duk_compiler_ctx 
*comp_ctx, duk_int_t pc);
-DUK_LOCAL_DECL void duk__emit(duk_compiler_ctx *comp_ctx, duk_instr_t ins);
-#if 0  /* unused */
-DUK_LOCAL_DECL void duk__emit_op_only(duk_compiler_ctx *comp_ctx, 
duk_small_uint_t op);
-#endif
-DUK_LOCAL_DECL void duk__emit_a_b_c(duk_compiler_ctx *comp_ctx, 
duk_small_uint_t op_flags, duk_regconst_t a, duk_regconst_t b, duk_regconst_t 
c);
-DUK_LOCAL_DECL void duk__emit_a_b(duk_compiler_ctx *comp_ctx, 

[47/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/genconfig.py
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/genconfig.py 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/genconfig.py
deleted file mode 100644
index 9c99648..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/genconfig.py
+++ /dev/null
@@ -1,1537 +0,0 @@
-#!/usr/bin/env python2
-#
-#  Process Duktape option metadata and produce various useful outputs:
-#
-#- duk_config.h with specific or autodetected platform, compiler, and
-#  architecture; forced options; sanity checks; etc
-#- option documentation for Duktape 1.x feature options (DUK_OPT_xxx)
-#- option documentation for Duktape 1.x/2.x config options (DUK_USE_xxx)
-#
-#  Genconfig tries to build all outputs based on modular metadata, so that
-#  managing a large number of config options (which is hard to avoid given
-#  the wide range of targets Duktape supports) remains maintainable.
-#
-#  Genconfig does *not* try to support all exotic platforms out there.
-#  Instead, the goal is to allow the metadata to be extended, or to provide
-#  a reasonable starting point for manual duk_config.h tweaking.
-#
-#  For Duktape 1.3 release the main goal was to autogenerate a Duktape 1.2
-#  compatible "autodetect" header from legacy snippets, with other outputs
-#  being experimental.  For Duktape 1.4 duk_config.h is always created from
-#  modular sources.
-#
-
-import os
-import sys
-import re
-import json
-import yaml
-import optparse
-import tarfile
-import tempfile
-import atexit
-import shutil
-try:
-   from StringIO import StringIO
-except ImportError:
-   from io import StringIO
-
-#
-#  Globals holding scanned metadata, helper snippets, etc
-#
-
-# Metadata to scan from config files.
-use_defs = None
-use_defs_list = None
-opt_defs = None
-opt_defs_list = None
-use_tags = None
-use_tags_list = None
-tags_meta = None
-required_use_meta_keys = [
-   'define',
-   'introduced',
-   'default',
-   'tags',
-   'description'
-]
-allowed_use_meta_keys = [
-   'define',
-   'feature_enables',
-   'feature_disables',
-   'feature_snippet',
-   'feature_no_default',
-   'related_feature_defines',
-   'introduced',
-   'deprecated',
-   'removed',
-   'unused',
-   'requires',
-   'conflicts',
-   'related',
-   'default',
-   'tags',
-   'description',
-]
-required_opt_meta_keys = [
-   'define',
-   'introduced',
-   'tags',
-   'description'
-]
-allowed_opt_meta_keys = [
-   'define',
-   'introduced',
-   'deprecated',
-   'removed',
-   'unused',
-   'requires',
-   'conflicts',
-   'related',
-   'tags',
-   'description'
-]
-
-# Preferred tag order for option documentation.
-doc_tag_order = [
-   'portability',
-   'memory',
-   'lowmemory',
-   'ecmascript',
-   'execution',
-   'debugger',
-   'debug',
-   'development'
-]
-
-# Preferred tag order for generated C header files.
-header_tag_order = doc_tag_order
-
-# Helper headers snippets.
-helper_snippets = None
-
-# Assume these provides come from outside.
-assumed_provides = {
-   'DUK_SINGLE_FILE': True, # compiling Duktape from a single 
source file (duktape.c) version
-   'DUK_COMPILING_DUKTAPE': True,   # compiling Duktape (not user 
application)
-   'DUK_CONFIG_H_INCLUDED': True,   # artifact, include guard
-}
-
-# Platform files must provide at least these (additional checks
-# in validate_platform_file()).  Fill-ins provide missing optionals.
-platform_required_provides = [
-   'DUK_USE_OS_STRING'  # must be #define'd
-]
-
-# Architecture files must provide at least these (additional checks
-# in validate_architecture_file()).  Fill-ins provide missing optionals.
-architecture_required_provides = [
-   'DUK_USE_ARCH_STRING'
-]
-
-# Compiler files must provide at least these (additional checks
-# in validate_compiler_file()).  Fill-ins provide missing optionals.
-compiler_required_provides = [
-   # Compilers need a lot of defines; missing defines are automatically
-   # filled in with defaults (which are mostly compiler independent), so
-   # the requires define list is not very large.
-
-   'DUK_USE_COMPILER_STRING',# must be #define'd
-   'DUK_USE_BRANCH_HINTS',   # may be #undef'd, as long as provided
-   'DUK_USE_VARIADIC_MACROS',# may be #undef'd, as long as provided
-   'DUK_USE_UNION_INITIALIZERS'  # may be #undef'd, as long as provided
-]
-
-#
-#  Miscellaneous helpers
-#
-
-def get_auto_delete_tempdir():
-   tmpdir = tempfile.mkdtemp(suffix='-genconfig')
-   def _f(dirname):
-   #print('Deleting temporary directory: %r' 

[48/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
deleted file mode 100644
index b2b5a38..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
+++ /dev/null
@@ -1,3415 +0,0 @@
-/*
- *  duk_config.h configuration header generated by genconfig.py.
- *
- *  Git commit: cad34ae155acb0846545ca6bf2d29f9463b22bbb
- *  Git describe: v1.5.2
- *  Git branch: HEAD
- *
- *  Supported platforms:
- *  - Mac OSX, iPhone, Darwin
- *  - OpenBSD
- *  - Generic BSD
- *  - Atari ST TOS
- *  - AmigaOS
- *  - Windows
- *  - Flashplayer (Crossbridge)
- *  - QNX
- *  - TI-Nspire
- *  - Emscripten
- *  - Linux
- *  - Solaris
- *  - Generic POSIX
- *  - Cygwin
- *  - Generic UNIX
- *  - Generic fallback
- *
- *  Supported architectures:
- *  - x86
- *  - x64
- *  - x32
- *  - ARM 32-bit
- *  - ARM 64-bit
- *  - MIPS 32-bit
- *  - MIPS 64-bit
- *  - PowerPC 32-bit
- *  - PowerPC 64-bit
- *  - SPARC 32-bit
- *  - SPARC 64-bit
- *  - SuperH
- *  - Motorola 68k
- *  - Emscripten
- *  - Generic
- *
- *  Supported compilers:
- *  - Clang
- *  - GCC
- *  - MSVC
- *  - Emscripten
- *  - TinyC
- *  - VBCC
- *  - Bruce's C compiler
- *  - Generic
- *
- */
-
-#if !defined(DUK_CONFIG_H_INCLUDED)
-#define DUK_CONFIG_H_INCLUDED
-
-/*
- *  Intermediate helper defines
- */
-
-/* DLL build detection */
-#if defined(DUK_OPT_DLL_BUILD)
-#define DUK_F_DLL_BUILD
-#elif defined(DUK_OPT_NO_DLL_BUILD)
-#undef DUK_F_DLL_BUILD
-#else
-/* not configured for DLL build */
-#undef DUK_F_DLL_BUILD
-#endif
-
-/* Apple OSX, iOS */
-#if defined(__APPLE__)
-#define DUK_F_APPLE
-#endif
-
-/* OpenBSD */
-#if defined(__OpenBSD__) || defined(__OpenBSD)
-#define DUK_F_OPENBSD
-#endif
-
-/* NetBSD */
-#if defined(__NetBSD__) || defined(__NetBSD)
-#define DUK_F_NETBSD
-#endif
-
-/* FreeBSD */
-#if defined(__FreeBSD__) || defined(__FreeBSD)
-#define DUK_F_FREEBSD
-#endif
-
-/* BSD variant */
-#if defined(DUK_F_FREEBSD) || defined(DUK_F_NETBSD) || defined(DUK_F_OPENBSD) 
|| \
-defined(__bsdi__) || defined(__DragonFly__)
-#define DUK_F_BSD
-#endif
-
-/* Atari ST TOS.  __TOS__ defined by PureC.  No platform define in VBCC
- * apparently, so to use with VBCC user must define __TOS__ manually.
-  */
-#if defined(__TOS__)
-#define DUK_F_TOS
-#endif
-
-/* Motorola 68K.  Not defined by VBCC, so user must define one of these
- * manually when using VBCC.
- */
-#if defined(__m68k__) || defined(M68000) || defined(__MC68K__)
-#define DUK_F_M68K
-#endif
-
-/* AmigaOS.  Neither AMIGA nor __amigaos__ is defined on VBCC, so user must
- * define 'AMIGA' manually when using VBCC.
- */
-#if defined(AMIGA) || defined(__amigaos__)
-#define DUK_F_AMIGAOS
-#endif
-
-/* PowerPC */
-#if defined(__powerpc) || defined(__powerpc__) || defined(__PPC__)
-#define DUK_F_PPC
-#if defined(__PPC64__) || defined(__LP64__) || defined(_LP64)
-#define DUK_F_PPC64
-#else
-#define DUK_F_PPC32
-#endif
-#endif
-
-/* Windows, both 32-bit and 64-bit */
-#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || \
-defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
-#define DUK_F_WINDOWS
-#if defined(_WIN64) || defined(WIN64)
-#define DUK_F_WIN64
-#else
-#define DUK_F_WIN32
-#endif
-#endif
-
-/* Flash player (e.g. Crossbridge) */
-#if defined(__FLASHPLAYER__)
-#define DUK_F_FLASHPLAYER
-#endif
-
-/* QNX */
-#if defined(__QNX__)
-#define DUK_F_QNX
-#endif
-
-/* TI-Nspire (using Ndless) */
-#if defined(_TINSPIRE)
-#define DUK_F_TINSPIRE
-#endif
-
-/* Emscripten (provided explicitly by user), improve if possible */
-#if defined(EMSCRIPTEN)
-#define DUK_F_EMSCRIPTEN
-#endif
-
-/* BCC (Bruce's C compiler): this is a "torture target" for compilation */
-#if defined(__BCC__) || defined(__BCC_VERSION__)
-#define DUK_F_BCC
-#endif
-
-/* Linux */
-#if defined(__linux) || defined(__linux__) || defined(linux)
-#define DUK_F_LINUX
-#endif
-
-/* illumos / Solaris */
-#if defined(__sun) && defined(__SVR4)
-#define DUK_F_SUN
-#endif
-
-/* POSIX */
-#if defined(__posix)
-#define DUK_F_POSIX
-#endif
-
-/* Cygwin */
-#if defined(__CYGWIN__)
-#define DUK_F_CYGWIN
-#endif
-
-/* Generic Unix (includes Cygwin) */
-#if defined(__unix) || defined(__unix__) || defined(unix) || \
-defined(DUK_F_LINUX) || defined(DUK_F_BSD)
-#define DUK_F_UNIX
-#endif
-
-/* stdint.h not available */
-#if defined(DUK_F_WINDOWS) && defined(_MSC_VER)
-#if (_MSC_VER < 1700)
-/* VS2012+ has stdint.h, < VS2012 does not (but it's available for 

[11/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js.h 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js.h
deleted file mode 100644
index 8fbf82f..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- *  Ecmascript execution, support primitives.
- */
-
-#ifndef DUK_JS_H_INCLUDED
-#define DUK_JS_H_INCLUDED
-
-/* Flags for call handling. */
-#define DUK_CALL_FLAG_IGNORE_RECLIMIT(1 << 0)  /* duk_handle_call_xxx: 
call ignores C recursion limit (for errhandler calls) */
-#define DUK_CALL_FLAG_CONSTRUCTOR_CALL   (1 << 1)  /* duk_handle_call_xxx: 
constructor call (i.e. called as 'new Foo()') */
-#define DUK_CALL_FLAG_IS_RESUME  (1 << 2)  /* 
duk_handle_ecma_call_setup: setup for a resume() */
-#define DUK_CALL_FLAG_IS_TAILCALL(1 << 3)  /* 
duk_handle_ecma_call_setup: setup for a tail call */
-#define DUK_CALL_FLAG_DIRECT_EVAL(1 << 4)  /* call is a direct 
eval call */
-
-/* Flags for duk_js_equals_helper(). */
-#define DUK_EQUALS_FLAG_SAMEVALUE(1 << 0)  /* use SameValue 
instead of non-strict equality */
-#define DUK_EQUALS_FLAG_STRICT   (1 << 1)  /* use strict equality 
instead of non-strict equality */
-
-/* Flags for duk_js_compare_helper(). */
-#define DUK_COMPARE_FLAG_EVAL_LEFT_FIRST (1 << 0)  /* eval left argument 
first */
-#define DUK_COMPARE_FLAG_NEGATE  (1 << 1)  /* negate result */
-
-/* conversions, coercions, comparison, etc */
-DUK_INTERNAL_DECL duk_bool_t duk_js_toboolean(duk_tval *tv);
-DUK_INTERNAL_DECL duk_double_t duk_js_tonumber(duk_hthread *thr, duk_tval *tv);
-DUK_INTERNAL_DECL duk_double_t duk_js_tointeger_number(duk_double_t x);
-DUK_INTERNAL_DECL duk_double_t duk_js_tointeger(duk_hthread *thr, duk_tval 
*tv);
-DUK_INTERNAL_DECL duk_uint32_t duk_js_touint32(duk_hthread *thr, duk_tval *tv);
-DUK_INTERNAL_DECL duk_int32_t duk_js_toint32(duk_hthread *thr, duk_tval *tv);
-DUK_INTERNAL_DECL duk_uint16_t duk_js_touint16(duk_hthread *thr, duk_tval *tv);
-DUK_INTERNAL_DECL duk_small_int_t duk_js_to_arrayindex_raw_string(const 
duk_uint8_t *str, duk_uint32_t blen, duk_uarridx_t *out_idx);
-DUK_INTERNAL_DECL duk_uarridx_t duk_js_to_arrayindex_string_helper(duk_hstring 
*h);
-DUK_INTERNAL_DECL duk_bool_t duk_js_equals_helper(duk_hthread *thr, duk_tval 
*tv_x, duk_tval *tv_y, duk_small_int_t flags);
-DUK_INTERNAL_DECL duk_small_int_t duk_js_data_compare(const duk_uint8_t *buf1, 
const duk_uint8_t *buf2, duk_size_t len1, duk_size_t len2);
-DUK_INTERNAL_DECL duk_small_int_t duk_js_string_compare(duk_hstring *h1, 
duk_hstring *h2);
-#if 0  /* unused */
-DUK_INTERNAL_DECL duk_small_int_t duk_js_buffer_compare(duk_heap *heap, 
duk_hbuffer *h1, duk_hbuffer *h2);
-#endif
-DUK_INTERNAL_DECL duk_bool_t duk_js_compare_helper(duk_hthread *thr, duk_tval 
*tv_x, duk_tval *tv_y, duk_small_int_t flags);
-DUK_INTERNAL_DECL duk_bool_t duk_js_instanceof(duk_hthread *thr, duk_tval 
*tv_x, duk_tval *tv_y);
-DUK_INTERNAL_DECL duk_bool_t duk_js_in(duk_hthread *thr, duk_tval *tv_x, 
duk_tval *tv_y);
-DUK_INTERNAL_DECL duk_hstring *duk_js_typeof(duk_hthread *thr, duk_tval *tv_x);
-
-#define duk_js_equals(thr,tv_x,tv_y) \
-   duk_js_equals_helper((thr), (tv_x), (tv_y), 0)
-#define duk_js_strict_equals(tv_x,tv_y) \
-   duk_js_equals_helper(NULL, (tv_x), (tv_y), DUK_EQUALS_FLAG_STRICT)
-#define duk_js_samevalue(tv_x,tv_y) \
-   duk_js_equals_helper(NULL, (tv_x), (tv_y), DUK_EQUALS_FLAG_SAMEVALUE)
-
-/* E5 Sections 11.8.1, 11.8.5; x < y */
-#define duk_js_lessthan(thr,tv_x,tv_y) \
-   duk_js_compare_helper((thr), (tv_x), (tv_Y), 
DUK_COMPARE_FLAG_EVAL_LEFT_FIRST)
-
-/* E5 Sections 11.8.2, 11.8.5; x > y  -->  y < x */
-#define duk_js_greaterthan(thr,tv_x,tv_y) \
-   duk_js_compare_helper((thr), (tv_y), (tv_x), 0)
-
-/* E5 Sections 11.8.3, 11.8.5; x <= y  -->  not (x > y)  -->  not (y < x) */
-#define duk_js_lessthanorequal(thr,tv_x,tv_y) \
-   duk_js_compare_helper((thr), (tv_y), (tv_x), DUK_COMPARE_FLAG_NEGATE)
-
-/* E5 Sections 11.8.4, 11.8.5; x >= y  -->  not (x < y) */
-#define duk_js_greaterthanorequal(thr,tv_x,tv_y) \
-   duk_js_compare_helper((thr), (tv_x), (tv_y), 
DUK_COMPARE_FLAG_EVAL_LEFT_FIRST | DUK_COMPARE_FLAG_NEGATE)
-
-/* identifiers and environment handling */
-#if 0  /*unused*/
-DUK_INTERNAL duk_bool_t duk_js_hasvar_envrec(duk_hthread *thr, duk_hobject 
*env, duk_hstring *name);
-#endif
-DUK_INTERNAL_DECL duk_bool_t duk_js_getvar_envrec(duk_hthread *thr, 
duk_hobject *env, duk_hstring *name, duk_bool_t throw_flag);
-DUK_INTERNAL_DECL duk_bool_t duk_js_getvar_activation(duk_hthread *thr, 
duk_activation *act, duk_hstring *name, duk_bool_t 

[43/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-logging/log2gnuplot.py
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-logging/log2gnuplot.py
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-logging/log2gnuplot.py
deleted file mode 100644
index 0528259..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-logging/log2gnuplot.py
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env python2
-#
-#  Analyze allocator logs and write total-bytes-in-use after every
-#  operation to stdout.  The output can be gnuplotted as:
-#
-#  $ python log2gnuplot.py /tmp/output.txt
-#  $ gnuplot
-#  > plot "output.txt" with lines
-#
-
-import os
-import sys
-
-def main():
-   allocated = 0
-
-   for line in sys.stdin:
-   line = line.strip()
-   parts = line.split(' ')
-
-   # A ptr/NULL/FAIL size
-   # F ptr/NULL size
-   # R ptr/NULL oldsize ptr/NULL/FAIL newsize
-
-   # Note: ajduk doesn't log oldsize (uses -1 instead)
-
-   if parts[0] == 'A':
-   if parts[1] != 'NULL' and parts[1] != 'FAIL':
-   allocated += long(parts[2])
-   elif parts[0] == 'F':
-   allocated -= long(parts[2])
-   elif parts[0] == 'R':
-   allocated -= long(parts[2])
-   if parts[3] != 'NULL' and parts[3] != 'FAIL':
-   allocated += long(parts[4])
-   print(allocated)
-
-   print(allocated)
-
-if __name__ == '__main__':
-   main()

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/README.rst
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/README.rst
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/README.rst
deleted file mode 100644
index f3278bb..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/README.rst
+++ /dev/null
@@ -1,10 +0,0 @@
-==
-Allocator with memory wiping and red zones
-==
-
-Example allocator that wipes memory on free and checks that no out-of-bounds
-writes have been made to bytes just before and after the allocated area.
-
-Valgrind is a better tool for detecting these memory issues, but it's not
-available for all targets so you can use something like this to detect
-memory lifecycle or out-of-bounds issues.

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/duk_alloc_torture.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/duk_alloc_torture.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/duk_alloc_torture.c
deleted file mode 100644
index abca2f7..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/alloc-torture/duk_alloc_torture.c
+++ /dev/null
@@ -1,182 +0,0 @@
-/*
- *  Example torture memory allocator with memory wiping and check for
- *  out-of-bounds writes.
- *
- *  Allocation structure:
- *
- *[ alloc_hdr | red zone before | user area | red zone after ]
- *
- * ^ ^
- * | `--- pointer returned to Duktape
- * `--- underlying malloc ptr
- */
-
-#include "duktape.h"
-#include 
-#include 
-#include 
-#include 
-
-#define  RED_ZONE_SIZE  16
-#define  RED_ZONE_BYTE  0x5a
-#define  INIT_BYTE  0xa5
-#define  WIPE_BYTE  0x27
-
-typedef struct {
-   /* The double value in the union is there to ensure alignment is
-* good for IEEE doubles too.  In many 32-bit environments 4 bytes
-* would be sufficiently aligned and the double value is unnecessary.
-*/
-   union {
-   size_t sz;
-   double d;
-   } u;
-} alloc_hdr;
-
-static void check_red_zone(alloc_hdr *hdr) {
-   size_t size;
-   int i;
-   int err;
-   unsigned char *p;
-   unsigned char *userptr;
-
-   size = hdr->u.sz;
-   userptr = (unsigned char *) hdr + sizeof(alloc_hdr) + RED_ZONE_SIZE;
-
-   err = 0;
-   p = (unsigned char *) hdr + sizeof(alloc_hdr);
-   for (i = 0; i < RED_ZONE_SIZE; i++) {
-   if (p[i] != RED_ZONE_BYTE) {
-   err = 1;
-   }
-   }
-   if (err) {
-   fprintf(stderr, 

[51/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive
of libxml2 and all of civetweb thirdparty

This closes #89.

Signed-off-by: Aldrin Piri 


Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/b8103f03
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/b8103f03
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/b8103f03

Branch: refs/heads/master
Commit: b8103f03998820449c24502fa61c224c2e39e098
Parents: 8958496
Author: Aldrin Piri 
Authored: Wed May 3 15:48:13 2017 -0400
Committer: Aldrin Piri 
Committed: Thu May 4 15:09:33 2017 -0400

--
 LICENSE | 24 -
 docker/Dockerfile   |  1 -
 .../civetweb-1.9.1/src/third_party/LuaXML.lua   |116 -
 .../civetweb-1.9.1/src/third_party/LuaXML_lib.c |476 -
 .../src/third_party/civetweb_lua.h  | 73 -
 .../src/third_party/duktape-1.5.2/AUTHORS.rst   | 72 -
 .../src/third_party/duktape-1.5.2/LICENSE.txt   | 25 -
 .../third_party/duktape-1.5.2/Makefile.cmdline  | 34 -
 .../third_party/duktape-1.5.2/Makefile.codepage |  4 -
 .../third_party/duktape-1.5.2/Makefile.coffee   |  4 -
 .../third_party/duktape-1.5.2/Makefile.dukdebug | 26 -
 .../src/third_party/duktape-1.5.2/Makefile.eval |  7 -
 .../duktape-1.5.2/Makefile.eventloop| 22 -
 .../third_party/duktape-1.5.2/Makefile.hello| 35 -
 .../third_party/duktape-1.5.2/Makefile.jxpretty |  8 -
 .../third_party/duktape-1.5.2/Makefile.sandbox  |  7 -
 .../duktape-1.5.2/Makefile.sharedlibrary| 71 -
 .../src/third_party/duktape-1.5.2/README.rst|110 -
 .../third_party/duktape-1.5.2/config/README.rst | 39 -
 .../config/duk_config.h-modular-dll |   3415 -
 .../config/duk_config.h-modular-static  |   3415 -
 .../duktape-1.5.2/config/genconfig.py   |   1537 -
 .../config/genconfig_metadata.tar.gz|Bin 71815 -> 0 bytes
 .../duktape-1.5.2/debugger/README.rst   |384 -
 .../duktape-1.5.2/debugger/duk_classnames.yaml  | 32 -
 .../duktape-1.5.2/debugger/duk_debug.js |   2473 -
 .../duktape-1.5.2/debugger/duk_debug_meta.json  |   1497 -
 .../duktape-1.5.2/debugger/duk_debug_proxy.js   |   1029 -
 .../debugger/duk_debugcommands.yaml | 52 -
 .../duktape-1.5.2/debugger/duk_debugerrors.yaml |  6 -
 .../duktape-1.5.2/debugger/duk_opcodes.yaml |658 -
 .../duktape-1.5.2/debugger/merge_debug_meta.py  | 32 -
 .../duktape-1.5.2/debugger/package.json | 27 -
 .../duktape-1.5.2/debugger/static/index.html| 96 -
 .../duktape-1.5.2/debugger/static/style.css |516 -
 .../duktape-1.5.2/debugger/static/webui.js  |785 -
 .../duktape-1.5.2/duk_build_meta.json   |   1349 -
 .../duktape-1.5.2/examples/README.rst   | 10 -
 .../examples/alloc-hybrid/README.rst| 10 -
 .../examples/alloc-hybrid/duk_alloc_hybrid.c|293 -
 .../examples/alloc-hybrid/duk_alloc_hybrid.h| 11 -
 .../examples/alloc-logging/README.rst   |  7 -
 .../examples/alloc-logging/duk_alloc_logging.c  |138 -
 .../examples/alloc-logging/duk_alloc_logging.h  | 10 -
 .../examples/alloc-logging/log2gnuplot.py   | 41 -
 .../examples/alloc-torture/README.rst   | 10 -
 .../examples/alloc-torture/duk_alloc_torture.c  |182 -
 .../examples/alloc-torture/duk_alloc_torture.h  | 10 -
 .../duktape-1.5.2/examples/cmdline/README.rst   |  6 -
 .../examples/cmdline/duk_cmdline.c  |   1463 -
 .../examples/cmdline/duk_cmdline_ajduk.c|   1008 -
 .../examples/codepage-conv/README.rst   |  8 -
 .../examples/codepage-conv/duk_codepage_conv.c  | 54 -
 .../examples/codepage-conv/duk_codepage_conv.h  |  8 -
 .../duktape-1.5.2/examples/codepage-conv/test.c |286 -
 .../duktape-1.5.2/examples/coffee/README.rst| 10 -
 .../examples/coffee/globals.coffee  |  7 -
 .../duktape-1.5.2/examples/coffee/hello.coffee  |  2 -
 .../duktape-1.5.2/examples/coffee/mandel.coffee | 28 -
 .../examples/cpp-exceptions/README.rst  | 29 -
 .../examples/cpp-exceptions/cpp_exceptions.cpp  |274 -
 .../examples/debug-trans-dvalue/README.rst  |  8 -
 .../debug-trans-dvalue/duk_trans_dvalue.c   |   1239 -
 .../debug-trans-dvalue/duk_trans_dvalue.h   |113 -
 .../examples/debug-trans-dvalue/test.c  |236 -
 .../examples/debug-trans-socket/README.rst  | 17 -
 .../debug-trans-socket/duk_trans_socket.h   | 15 -
 .../debug-trans-socket/duk_trans_socket_unix.c  |340 -
 .../duk_trans_socket_windows.c  |414 -
 

[14/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
deleted file mode 100644
index 8916577..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- *  Misc support functions
- */
-
-#include "duk_internal.h"
-
-DUK_INTERNAL duk_bool_t duk_hobject_prototype_chain_contains(duk_hthread *thr, 
duk_hobject *h, duk_hobject *p, duk_bool_t ignore_loop) {
-   duk_uint_t sanity;
-
-   DUK_ASSERT(thr != NULL);
-
-   /* False if the object is NULL or the prototype 'p' is NULL.
-* In particular, false if both are NULL (don't compare equal).
-*/
-   if (h == NULL || p == NULL) {
-   return 0;
-   }
-
-   sanity = DUK_HOBJECT_PROTOTYPE_CHAIN_SANITY;
-   do {
-   if (h == p) {
-   return 1;
-   }
-
-   if (sanity-- == 0) {
-   if (ignore_loop) {
-   break;
-   } else {
-   DUK_ERROR_RANGE(thr, 
DUK_STR_PROTOTYPE_CHAIN_LIMIT);
-   }
-   }
-   h = DUK_HOBJECT_GET_PROTOTYPE(thr->heap, h);
-   } while (h);
-
-   return 0;
-}
-
-DUK_INTERNAL void duk_hobject_set_prototype_updref(duk_hthread *thr, 
duk_hobject *h, duk_hobject *p) {
-#ifdef DUK_USE_REFERENCE_COUNTING
-   duk_hobject *tmp;
-
-   DUK_ASSERT(h);
-   tmp = DUK_HOBJECT_GET_PROTOTYPE(thr->heap, h);
-   DUK_HOBJECT_SET_PROTOTYPE(thr->heap, h, p);
-   DUK_HOBJECT_INCREF_ALLOWNULL(thr, p);  /* avoid problems if p == 
h->prototype */
-   DUK_HOBJECT_DECREF_ALLOWNULL(thr, tmp);
-#else
-   DUK_ASSERT(h);
-   DUK_UNREF(thr);
-   DUK_HOBJECT_SET_PROTOTYPE(thr->heap, h, p);
-#endif
-}

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
deleted file mode 100644
index 07d3596..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- *  Helpers for creating and querying pc2line debug data, which
- *  converts a bytecode program counter to a source line number.
- *
- *  The run-time pc2line data is bit-packed, and documented in:
- *
- *doc/function-objects.rst
- */
-
-#include "duk_internal.h"
-
-#if defined(DUK_USE_PC2LINE)
-
-/* Generate pc2line data for an instruction sequence, leaving a buffer on 
stack top. */
-DUK_INTERNAL void duk_hobject_pc2line_pack(duk_hthread *thr, 
duk_compiler_instr *instrs, duk_uint_fast32_t length) {
-   duk_context *ctx = (duk_context *) thr;
-   duk_hbuffer_dynamic *h_buf;
-   duk_bitencoder_ctx be_ctx_alloc;
-   duk_bitencoder_ctx *be_ctx = _ctx_alloc;
-   duk_uint32_t *hdr;
-   duk_size_t new_size;
-   duk_uint_fast32_t num_header_entries;
-   duk_uint_fast32_t curr_offset;
-   duk_int_fast32_t curr_line, next_line, diff_line;
-   duk_uint_fast32_t curr_pc;
-   duk_uint_fast32_t hdr_index;
-
-   DUK_ASSERT(length <= DUK_COMPILER_MAX_BYTECODE_LENGTH);
-
-   /* XXX: add proper spare handling to dynamic buffer, to minimize
-* reallocs; currently there is no spare at all.
-*/
-
-   num_header_entries = (length + DUK_PC2LINE_SKIP - 1) / DUK_PC2LINE_SKIP;
-   curr_offset = (duk_uint_fast32_t) (sizeof(duk_uint32_t) + 
num_header_entries * sizeof(duk_uint32_t) * 2);
-
-   duk_push_dynamic_buffer(ctx, (duk_size_t) curr_offset);
-   h_buf = (duk_hbuffer_dynamic *) duk_get_hbuffer(ctx, -1);
-   DUK_ASSERT(h_buf != NULL);
-   DUK_ASSERT(DUK_HBUFFER_HAS_DYNAMIC(h_buf) && 
!DUK_HBUFFER_HAS_EXTERNAL(h_buf));
-
-   hdr = (duk_uint32_t *) DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(thr->heap, 
h_buf);
-   DUK_ASSERT(hdr != NULL);
-   hdr[0] = (duk_uint32_t) length;  /* valid pc range is [0, length[ */
-
-   curr_pc = 0U;
-   while (curr_pc < length) {
-   new_size = (duk_size_t) (curr_offset + 
DUK_PC2LINE_MAX_DIFF_LENGTH);
-   duk_hbuffer_resize(thr, h_buf, new_size);
-
-   hdr = (duk_uint32_t *) 
DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(thr->heap, h_buf);
-   DUK_ASSERT(hdr != NULL);
-   DUK_ASSERT(curr_pc < 

[26/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_logger.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_logger.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_logger.c
deleted file mode 100644
index d2b89e5..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_logger.c
+++ /dev/null
@@ -1,300 +0,0 @@
-/*
- *  Logging support
- */
-
-#include "duk_internal.h"
-
-/* 3-letter log level strings */
-DUK_LOCAL const duk_uint8_t duk__log_level_strings[] = {
-   (duk_uint8_t) DUK_ASC_UC_T, (duk_uint8_t) DUK_ASC_UC_R, (duk_uint8_t) 
DUK_ASC_UC_C,
-   (duk_uint8_t) DUK_ASC_UC_D, (duk_uint8_t) DUK_ASC_UC_B, (duk_uint8_t) 
DUK_ASC_UC_G,
-   (duk_uint8_t) DUK_ASC_UC_I, (duk_uint8_t) DUK_ASC_UC_N, (duk_uint8_t) 
DUK_ASC_UC_F,
-   (duk_uint8_t) DUK_ASC_UC_W, (duk_uint8_t) DUK_ASC_UC_R, (duk_uint8_t) 
DUK_ASC_UC_N,
-   (duk_uint8_t) DUK_ASC_UC_E, (duk_uint8_t) DUK_ASC_UC_R, (duk_uint8_t) 
DUK_ASC_UC_R,
-   (duk_uint8_t) DUK_ASC_UC_F, (duk_uint8_t) DUK_ASC_UC_T, (duk_uint8_t) 
DUK_ASC_UC_L
-};
-
-/* Constructor */
-DUK_INTERNAL duk_ret_t duk_bi_logger_constructor(duk_context *ctx) {
-   duk_hthread *thr = (duk_hthread *) ctx;
-   duk_idx_t nargs;
-
-   /* Calling as a non-constructor is not meaningful. */
-   if (!duk_is_constructor_call(ctx)) {
-   return DUK_RET_TYPE_ERROR;
-   }
-
-   nargs = duk_get_top(ctx);
-   duk_set_top(ctx, 1);
-
-   duk_push_this(ctx);
-
-   /* [ name this ] */
-
-   if (nargs == 0) {
-   /* Automatic defaulting of logger name from caller.  This would
-* work poorly with tail calls, but constructor calls are 
currently
-* never tail calls, so tail calls are not an issue now.
-*/
-
-   if (thr->callstack_top >= 2) {
-   duk_activation *act_caller = thr->callstack + 
thr->callstack_top - 2;
-   duk_hobject *func_caller;
-
-   func_caller = DUK_ACT_GET_FUNC(act_caller);
-   if (func_caller) {
-   /* Stripping the filename might be a good idea
-* ("/foo/bar/quux.js" -> logger name "quux"),
-* but now used verbatim.
-*/
-   duk_push_hobject(ctx, func_caller);
-   duk_get_prop_stridx(ctx, -1, 
DUK_STRIDX_FILE_NAME);
-   duk_replace(ctx, 0);
-   }
-   }
-   }
-   /* the stack is unbalanced here on purpose; we only rely on the
-* initial two values: [ name this ].
-*/
-
-   if (duk_is_string(ctx, 0)) {
-   duk_dup(ctx, 0);
-   duk_put_prop_stridx(ctx, 1, DUK_STRIDX_LC_N);
-   } else {
-   /* don't set 'n' at all, inherited value is used as name */
-   }
-
-   duk_compact(ctx, 1);
-
-   return 0;  /* keep default instance */
-}
-
-/* Default function to format objects.  Tries to use toLogString() but falls
- * back to toString().  Any errors are propagated out without catching.
- */
-DUK_INTERNAL duk_ret_t duk_bi_logger_prototype_fmt(duk_context *ctx) {
-   if (duk_get_prop_stridx(ctx, 0, DUK_STRIDX_TO_LOG_STRING)) {
-   /* [ arg toLogString ] */
-
-   duk_dup(ctx, 0);
-   duk_call_method(ctx, 0);
-
-   /* [ arg result ] */
-   return 1;
-   }
-
-   /* [ arg undefined ] */
-   duk_pop(ctx);
-   duk_to_string(ctx, 0);
-   return 1;
-}
-
-/* Default function to write a formatted log line.  Writes to stderr,
- * appending a newline to the log line.
- *
- * The argument is a buffer whose visible size contains the log message.
- * This function should avoid coercing the buffer to a string to avoid
- * string table traffic.
- */
-DUK_INTERNAL duk_ret_t duk_bi_logger_prototype_raw(duk_context *ctx) {
-   const char *data;
-   duk_size_t data_len;
-
-   DUK_UNREF(ctx);
-   DUK_UNREF(data);
-   DUK_UNREF(data_len);
-
-#ifdef DUK_USE_FILE_IO
-   data = (const char *) duk_require_buffer(ctx, 0, _len);
-   DUK_FWRITE((const void *) data, 1, data_len, DUK_STDERR);
-   DUK_FPUTC((int) '\n', DUK_STDERR);
-   DUK_FFLUSH(DUK_STDERR);
-#else
-   /* nop */
-#endif
-   return 0;
-}
-
-/* Log frontend shared helper, magic value indicates log level.  Provides
- * frontend functions: trace(), debug(), info(), warn(), error(), fatal().
- * This needs to have small footprint, reasonable performance, minimal
- * memory churn, etc.
- */
-DUK_INTERNAL duk_ret_t 

[03/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
deleted file mode 100644
index 3010c80..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
+++ /dev/null
@@ -1,432 +0,0 @@
-/*
- *  Lexer defines.
- */
-
-#ifndef DUK_LEXER_H_INCLUDED
-#define DUK_LEXER_H_INCLUDED
-
-typedef void (*duk_re_range_callback)(void *user, duk_codepoint_t r1, 
duk_codepoint_t r2, duk_bool_t direct);
-
-/*
- *  A token is interpreted as any possible production of InputElementDiv
- *  and InputElementRegExp, see E5 Section 7 in its entirety.  Note that
- *  the E5 "Token" production does not cover all actual tokens of the
- *  language (which is explicitly stated in the specification, Section 7.5).
- *  Null and boolean literals are defined as part of both ReservedWord
- *  (E5 Section 7.6.1) and Literal (E5 Section 7.8) productions.  Here,
- *  null and boolean values have literal tokens, and are not reserved
- *  words.
- *
- *  Decimal literal negative/positive sign is -not- part of DUK_TOK_NUMBER.
- *  The number tokens always have a non-negative value.  The unary minus
- *  operator in "-1.0" is optimized during compilation to yield a single
- *  negative constant.
- *
- *  Token numbering is free except that reserved words are required to be
- *  in a continuous range and in a particular order.  See genstrings.py.
- */
-
-#define DUK_LEXER_INITCTX(ctx)duk_lexer_initctx((ctx))
-
-#define DUK_LEXER_SETPOINT(ctx,pt)duk_lexer_setpoint((ctx), (pt))
-
-#define DUK_LEXER_GETPOINT(ctx,pt)do { (pt)->offset = 
(ctx)->window[0].offset; \
-   (pt)->line = (ctx)->window[0].line; 
} while (0)
-
-/* currently 6 characters of lookup are actually needed (duk_lexer.c) */
-#define DUK_LEXER_WINDOW_SIZE 6
-#if defined(DUK_USE_LEXER_SLIDING_WINDOW)
-#define DUK_LEXER_BUFFER_SIZE 64
-#endif
-
-#define DUK_TOK_MINVAL0
-
-/* returned after EOF (infinite amount) */
-#define DUK_TOK_EOF   0
-
-/* identifier names (E5 Section 7.6) */
-#define DUK_TOK_IDENTIFIER1
-
-/* reserved words: keywords */
-#define DUK_TOK_START_RESERVED2
-#define DUK_TOK_BREAK 2
-#define DUK_TOK_CASE  3
-#define DUK_TOK_CATCH 4
-#define DUK_TOK_CONTINUE  5
-#define DUK_TOK_DEBUGGER  6
-#define DUK_TOK_DEFAULT   7
-#define DUK_TOK_DELETE8
-#define DUK_TOK_DO9
-#define DUK_TOK_ELSE  10
-#define DUK_TOK_FINALLY   11
-#define DUK_TOK_FOR   12
-#define DUK_TOK_FUNCTION  13
-#define DUK_TOK_IF14
-#define DUK_TOK_IN15
-#define DUK_TOK_INSTANCEOF16
-#define DUK_TOK_NEW   17
-#define DUK_TOK_RETURN18
-#define DUK_TOK_SWITCH19
-#define DUK_TOK_THIS  20
-#define DUK_TOK_THROW 21
-#define DUK_TOK_TRY   22
-#define DUK_TOK_TYPEOF23
-#define DUK_TOK_VAR   24
-#define DUK_TOK_CONST 25
-#define DUK_TOK_VOID  26
-#define DUK_TOK_WHILE 27
-#define DUK_TOK_WITH  28
-
-/* reserved words: future reserved words */
-#define DUK_TOK_CLASS 29
-#define DUK_TOK_ENUM  30
-#define DUK_TOK_EXPORT31
-#define DUK_TOK_EXTENDS   32
-#define DUK_TOK_IMPORT33
-#define DUK_TOK_SUPER 34
-
-/* "null", "true", and "false" are always reserved words.
- * Note that "get" and "set" are not!
- */
-#define DUK_TOK_NULL  35
-#define DUK_TOK_TRUE  36
-#define DUK_TOK_FALSE 37
-
-/* reserved words: additional future reserved words in strict mode */
-#define DUK_TOK_START_STRICT_RESERVED 38  /* inclusive */
-#define DUK_TOK_IMPLEMENTS38
-#define DUK_TOK_INTERFACE 39
-#define DUK_TOK_LET   

[35/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h
deleted file mode 100644
index 84a32f8..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h
+++ /dev/null
@@ -1,1567 +0,0 @@
-/*
- *  Duktape public API for Duktape 1.5.2.
- *
- *  See the API reference for documentation on call semantics.
- *  The exposed API is inside the DUK_API_PUBLIC_H_INCLUDED
- *  include guard.  Other parts of the header are Duktape
- *  internal and related to platform/compiler/feature detection.
- *
- *  Git commit cad34ae155acb0846545ca6bf2d29f9463b22bbb (v1.5.2).
- *  Git branch HEAD.
- *
- *  See Duktape AUTHORS.rst and LICENSE.txt for copyright and
- *  licensing information.
- */
-
-/* LICENSE.txt */
-/*
- *  ===
- *  Duktape license
- *  ===
- *  
- *  (http://opensource.org/licenses/MIT)
- *  
- *  Copyright (c) 2013-2016 by Duktape authors (see AUTHORS.rst)
- *  
- *  Permission is hereby granted, free of charge, to any person obtaining a 
copy
- *  of this software and associated documentation files (the "Software"), to 
deal
- *  in the Software without restriction, including without limitation the 
rights
- *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- *  copies of the Software, and to permit persons to whom the Software is
- *  furnished to do so, subject to the following conditions:
- *  
- *  The above copyright notice and this permission notice shall be included in
- *  all copies or substantial portions of the Software.
- *  
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
- *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- *  THE SOFTWARE.
- */
-
-/* AUTHORS.rst */
-/*
- *  ===
- *  Duktape authors
- *  ===
- *  
- *  Copyright
- *  =
- *  
- *  Duktape copyrights are held by its authors.  Each author has a copyright
- *  to their contribution, and agrees to irrevocably license the contribution
- *  under the Duktape ``LICENSE.txt``.
- *  
- *  Authors
- *  ===
- *  
- *  Please include an e-mail address, a link to your GitHub profile, or 
something
- *  similar to allow your contribution to be identified accurately.
- *  
- *  The following people have contributed code, website contents, or Wiki 
contents,
- *  and agreed to irrevocably license their contributions under the Duktape
- *  ``LICENSE.txt`` (in order of appearance):
- *  
- *  * Sami Vaarala 
- *  * Niki Dobrev
- *  * Andreas \u00d6man 
- *  * L\u00e1szl\u00f3 Lang\u00f3 
- *  * Legimet 
- *  * Karl Skomski 
- *  * Bruce Pascoe 
- *  * Ren\u00e9 Hollander 
- *  * Julien Hamaide (https://github.com/crazyjul)
- *  * Sebastian G\u00f6tte (https://github.com/jaseg)
- *  
- *  Other contributions
- *  ===
- *  
- *  The following people have contributed something other than code (e.g. 
reported
- *  bugs, provided ideas, etc; roughly in order of appearance):
- *  
- *  * Greg Burns
- *  * Anthony Rabine
- *  * Carlos Costa
- *  * Aur\u00e9lien Bouilland
- *  * Preet Desai (Pris Matic)
- *  * judofyr (http://www.reddit.com/user/judofyr)
- *  * Jason Woofenden
- *  * Micha\u0142 Przyby\u015b
- *  * Anthony Howe
- *  * Conrad Pankoff
- *  * Jim Schimpf
- *  * Rajaran Gaunker (https://github.com/zimbabao)
- *  * Andreas \u00d6man
- *  * Doug Sanden
- *  * Josh Engebretson (https://github.com/JoshEngebretson)
- *  * Remo Eichenberger (https://github.com/remoe)
- *  * Mamod Mehyar (https://github.com/mamod)
- *  * David Demelier (https://github.com/markand)
- *  * Tim Caswell (https://github.com/creationix)
- *  * Mitchell Blank Jr (https://github.com/mitchblank)
- *  * https://github.com/yushli
- *  * Seo Sanghyeon (https://github.com/sanxiyn)
- *  * Han ChoongWoo (https://github.com/tunz)
- *  * Joshua Peek (https://github.com/josh)
- *  * Bruce E. Pascoe (https://github.com/fatcerberus)
- *  * https://github.com/Kelledin
- *  * https://github.com/sstruchtrup
- *  * Michael Drake (https://github.com/tlsa)
- *  * https://github.com/chris-y
- *  * Laurent Zubiaur (https://github.com/lzubiaur)
- *  * Ole Andr\u00e9 Vadla Ravn\u00e5s 

[01/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty [Forced Update!]

2017-05-04 Thread aldrin
Repository: nifi-minifi-cpp
Updated Branches:
  refs/heads/master 153b25b2e -> b8103f039 (forced update)


http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_regexp_compiler.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_regexp_compiler.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_regexp_compiler.c
deleted file mode 100644
index 54e8007..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_regexp_compiler.c
+++ /dev/null
@@ -1,1072 +0,0 @@
-/*
- *  Regexp compilation.
- *
- *  See doc/regexp.rst for a discussion of the compilation approach and
- *  current limitations.
- *
- *  Regexp bytecode assumes jumps can be expressed with signed 32-bit
- *  integers.  Consequently the bytecode size must not exceed 0x7fffL.
- *  The implementation casts duk_size_t (buffer size) to duk_(u)int32_t
- *  in many places.  Although this could be changed, the bytecode format
- *  limit would still prevent regexps exceeding the signed 32-bit limit
- *  from working.
- *
- *  XXX: The implementation does not prevent bytecode from exceeding the
- *  maximum supported size.  This could be done by limiting the maximum
- *  input string size (assuming an upper bound can be computed for number
- *  of bytecode bytes emitted per input byte) or checking buffer maximum
- *  size when emitting bytecode (slower).
- */
-
-#include "duk_internal.h"
-
-#ifdef DUK_USE_REGEXP_SUPPORT
-
-/*
- *  Helper macros
- */
-
-#define DUK__RE_INITIAL_BUFSIZE 64
-
-#undef DUK__RE_BUFLEN
-#define DUK__RE_BUFLEN(re_ctx) \
-   DUK_BW_GET_SIZE(re_ctx->thr, _ctx->bw)
-
-/*
- *  Disjunction struct: result of parsing a disjunction
- */
-
-typedef struct {
-   /* Number of characters that the atom matches (e.g. 3 for 'abc'),
-* -1 if atom is complex and number of matched characters either
-* varies or is not known.
-*/
-   duk_int32_t charlen;
-
-#if 0
-   /* These are not needed to implement quantifier capture handling,
-* but might be needed at some point.
-*/
-
-   /* re_ctx->captures at start and end of atom parsing.
-* Since 'captures' indicates highest capture number emitted
-* so far in a DUK_REOP_SAVE, the captures numbers saved by
-* the atom are: ]start_captures,end_captures].
-*/
-   duk_uint32_t start_captures;
-   duk_uint32_t end_captures;
-#endif
-} duk__re_disjunction_info;
-
-/*
- *  Encoding helpers
- *
- *  Some of the typing is bytecode based, e.g. slice sizes are unsigned 32-bit
- *  even though the buffer operations will use duk_size_t.
- */
-
-/* XXX: the insert helpers should ensure that the bytecode result is not
- * larger than expected (or at least assert for it).  Many things in the
- * bytecode, like skip offsets, won't work correctly if the bytecode is
- * larger than say 2G.
- */
-
-DUK_LOCAL duk_uint32_t duk__encode_i32(duk_int32_t x) {
-   if (x < 0) {
-   return ((duk_uint32_t) (-x)) * 2 + 1;
-   } else {
-   return ((duk_uint32_t) x) * 2;
-   }
-}
-
-/* XXX: return type should probably be duk_size_t, or explicit checks are 
needed for
- * maximum size.
- */
-DUK_LOCAL duk_uint32_t duk__insert_u32(duk_re_compiler_ctx *re_ctx, 
duk_uint32_t offset, duk_uint32_t x) {
-   duk_uint8_t buf[DUK_UNICODE_MAX_XUTF8_LENGTH];
-   duk_small_int_t len;
-
-   len = duk_unicode_encode_xutf8((duk_ucodepoint_t) x, buf);
-   DUK_BW_INSERT_ENSURE_BYTES(re_ctx->thr, _ctx->bw, offset, buf, len);
-   return (duk_uint32_t) len;
-}
-
-DUK_LOCAL duk_uint32_t duk__append_u32(duk_re_compiler_ctx *re_ctx, 
duk_uint32_t x) {
-   duk_uint8_t buf[DUK_UNICODE_MAX_XUTF8_LENGTH];
-   duk_small_int_t len;
-
-   len = duk_unicode_encode_xutf8((duk_ucodepoint_t) x, buf);
-   DUK_BW_WRITE_ENSURE_BYTES(re_ctx->thr, _ctx->bw, buf, len);
-   return (duk_uint32_t) len;
-}
-
-DUK_LOCAL duk_uint32_t duk__insert_i32(duk_re_compiler_ctx *re_ctx, 
duk_uint32_t offset, duk_int32_t x) {
-   return duk__insert_u32(re_ctx, offset, duk__encode_i32(x));
-}
-
-#if 0  /* unused */
-DUK_LOCAL duk_uint32_t duk__append_i32(duk_re_compiler_ctx *re_ctx, 
duk_int32_t x) {
-   return duk__append_u32(re_ctx, duk__encode_i32(x));
-}
-#endif
-
-/* special helper for emitting u16 lists (used for character ranges for 
built-in char classes) */
-DUK_LOCAL void duk__append_u16_list(duk_re_compiler_ctx *re_ctx, const 
duk_uint16_t *values, duk_uint32_t count) {
-   /* Call sites don't need the result length so it's not accumulated. */
-   while (count > 0) {
-   (void) duk__append_u32(re_ctx, (duk_uint32_t) (*values++));
-   count--;
-   }
-}
-
-DUK_LOCAL void duk__insert_slice(duk_re_compiler_ctx *re_ctx, 

[27/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
deleted file mode 100644
index d05ccd9..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
+++ /dev/null
@@ -1,3143 +0,0 @@
-/*
- *  JSON built-ins.
- *
- *  See doc/json.rst.
- *
- *  Codepoints are handled as duk_uint_fast32_t to ensure that the full
- *  unsigned 32-bit range is supported.  This matters to e.g. JX.
- *
- *  Input parsing doesn't do an explicit end-of-input check at all.  This is
- *  safe: input string data is always NUL-terminated (0x00) and valid JSON
- *  inputs never contain plain NUL characters, so that as long as syntax checks
- *  are correct, we'll never read past the NUL.  This approach reduces code 
size
- *  and improves parsing performance, but it's critical that syntax checks are
- *  indeed correct!
- */
-
-#include "duk_internal.h"
-
-/*
- *  Local defines and forward declarations.
- */
-
-#define DUK__JSON_DECSTR_BUFSIZE 128
-#define DUK__JSON_DECSTR_CHUNKSIZE 64
-#define DUK__JSON_ENCSTR_CHUNKSIZE 64
-#define DUK__JSON_STRINGIFY_BUFSIZE 128
-#define DUK__JSON_MAX_ESC_LEN 10  /* '\Udeadbeef' */
-
-DUK_LOCAL_DECL void duk__dec_syntax_error(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_eat_white(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint8_t duk__dec_peek(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint8_t duk__dec_get(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint8_t duk__dec_get_nonwhite(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint_fast32_t duk__dec_decode_hex_escape(duk_json_dec_ctx 
*js_ctx, duk_small_uint_t n);
-DUK_LOCAL_DECL void duk__dec_req_stridx(duk_json_dec_ctx *js_ctx, 
duk_small_uint_t stridx);
-DUK_LOCAL_DECL void duk__dec_string(duk_json_dec_ctx *js_ctx);
-#ifdef DUK_USE_JX
-DUK_LOCAL_DECL void duk__dec_plain_string(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_pointer(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_buffer(duk_json_dec_ctx *js_ctx);
-#endif
-DUK_LOCAL_DECL void duk__dec_number(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_objarr_entry(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_objarr_exit(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_object(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_array(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_value(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_reviver_walk(duk_json_dec_ctx *js_ctx);
-
-DUK_LOCAL_DECL void duk__emit_1(duk_json_enc_ctx *js_ctx, duk_uint_fast8_t ch);
-DUK_LOCAL_DECL void duk__emit_2(duk_json_enc_ctx *js_ctx, duk_uint_fast8_t 
ch1, duk_uint_fast8_t ch2);
-DUK_LOCAL_DECL void duk__unemit_1(duk_json_enc_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__emit_hstring(duk_json_enc_ctx *js_ctx, duk_hstring 
*h);
-#if defined(DUK_USE_FASTINT)
-DUK_LOCAL_DECL void duk__emit_cstring(duk_json_enc_ctx *js_ctx, const char *p);
-#endif
-DUK_LOCAL_DECL void duk__emit_stridx(duk_json_enc_ctx *js_ctx, 
duk_small_uint_t stridx);
-DUK_LOCAL_DECL duk_uint8_t *duk__emit_esc_auto_fast(duk_json_enc_ctx *js_ctx, 
duk_uint_fast32_t cp, duk_uint8_t *q);
-DUK_LOCAL_DECL void duk__enc_key_autoquote(duk_json_enc_ctx *js_ctx, 
duk_hstring *k);
-DUK_LOCAL_DECL void duk__enc_quote_string(duk_json_enc_ctx *js_ctx, 
duk_hstring *h_str);
-DUK_LOCAL_DECL void duk__enc_objarr_entry(duk_json_enc_ctx *js_ctx, duk_idx_t 
*entry_top);
-DUK_LOCAL_DECL void duk__enc_objarr_exit(duk_json_enc_ctx *js_ctx, duk_idx_t 
*entry_top);
-DUK_LOCAL_DECL void duk__enc_object(duk_json_enc_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__enc_array(duk_json_enc_ctx *js_ctx);
-DUK_LOCAL_DECL duk_bool_t duk__enc_value(duk_json_enc_ctx *js_ctx, duk_idx_t 
idx_holder);
-DUK_LOCAL_DECL duk_bool_t duk__enc_allow_into_proplist(duk_tval *tv);
-DUK_LOCAL_DECL void duk__enc_double(duk_json_enc_ctx *js_ctx);
-#if defined(DUK_USE_FASTINT)
-DUK_LOCAL_DECL void duk__enc_fastint_tval(duk_json_enc_ctx *js_ctx, duk_tval 
*tv);
-#endif
-#if defined(DUK_USE_JX) || defined(DUK_USE_JC)
-DUK_LOCAL_DECL void duk__enc_buffer(duk_json_enc_ctx *js_ctx, duk_hbuffer *h);
-DUK_LOCAL_DECL void duk__enc_pointer(duk_json_enc_ctx *js_ctx, void *ptr);
-DUK_LOCAL_DECL void duk__enc_bufferobject(duk_json_enc_ctx *js_ctx, 
duk_hbufferobject *h_bufobj);
-#endif
-DUK_LOCAL_DECL void duk__enc_newline_indent(duk_json_enc_ctx *js_ctx, 
duk_int_t depth);
-
-/*
- *  Helper tables
- */
-
-#if defined(DUK_USE_JSON_QUOTESTRING_FASTPATH)
-DUK_LOCAL const duk_uint8_t duk__json_quotestr_lookup[256] = {
-   /* 0x00 ... 0x7f: as is
-* 0x80: escape generically
-* 0x81: slow path
-* 0xa0 ... 0xff: backslash + one 

[18/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
deleted file mode 100644
index 425ad33..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- *  duk_hbuffer allocation and freeing.
- */
-
-#include "duk_internal.h"
-
-/* Allocate a new duk_hbuffer of a certain type and return a pointer to it
- * (NULL on error).  Write buffer data pointer to 'out_bufdata' (only if
- * allocation successful).
- */
-DUK_INTERNAL duk_hbuffer *duk_hbuffer_alloc(duk_heap *heap, duk_size_t size, 
duk_small_uint_t flags, void **out_bufdata) {
-   duk_hbuffer *res = NULL;
-   duk_size_t header_size;
-   duk_size_t alloc_size;
-
-   DUK_ASSERT(heap != NULL);
-   DUK_ASSERT(out_bufdata != NULL);
-
-   DUK_DDD(DUK_DDDPRINT("allocate hbuffer"));
-
-   /* Size sanity check.  Should not be necessary because caller is
-* required to check this, but we don't want to cause a segfault
-* if the size wraps either in duk_size_t computation or when
-* storing the size in a 16-bit field.
-*/
-   if (size > DUK_HBUFFER_MAX_BYTELEN) {
-   DUK_D(DUK_DPRINT("hbuffer alloc failed: size too large: %ld", 
(long) size));
-   return NULL;  /* no need to write 'out_bufdata' */
-   }
-
-   if (flags & DUK_BUF_FLAG_EXTERNAL) {
-   header_size = sizeof(duk_hbuffer_external);
-   alloc_size = sizeof(duk_hbuffer_external);
-   } else if (flags & DUK_BUF_FLAG_DYNAMIC) {
-   header_size = sizeof(duk_hbuffer_dynamic);
-   alloc_size = sizeof(duk_hbuffer_dynamic);
-   } else {
-   header_size = sizeof(duk_hbuffer_fixed);
-   alloc_size = sizeof(duk_hbuffer_fixed) + size;
-   DUK_ASSERT(alloc_size >= sizeof(duk_hbuffer_fixed));  /* no 
wrapping */
-   }
-
-   res = (duk_hbuffer *) DUK_ALLOC(heap, alloc_size);
-   if (!res) {
-   goto error;
-   }
-
-   /* zero everything unless requested not to do so */
-#if defined(DUK_USE_ZERO_BUFFER_DATA)
-   DUK_MEMZERO((void *) res,
-   (flags & DUK_BUF_FLAG_NOZERO) ? header_size : alloc_size);
-#else
-   DUK_MEMZERO((void *) res, header_size);
-#endif
-
-   if (flags & DUK_BUF_FLAG_EXTERNAL) {
-   duk_hbuffer_external *h;
-   h = (duk_hbuffer_external *) res;
-   DUK_UNREF(h);
-   *out_bufdata = NULL;
-#if defined(DUK_USE_EXPLICIT_NULL_INIT)
-#if defined(DUK_USE_HEAPPTR16)
-/* the compressed pointer is zeroed which maps to NULL, so nothing to do. */
-#else
-   DUK_HBUFFER_EXTERNAL_SET_DATA_PTR(heap, h, NULL);
-#endif
-#endif
-   DUK_ASSERT(DUK_HBUFFER_EXTERNAL_GET_DATA_PTR(heap, h) == NULL);
-   } else if (flags & DUK_BUF_FLAG_DYNAMIC) {
-   duk_hbuffer_dynamic *h = (duk_hbuffer_dynamic *) res;
-   void *ptr;
-
-   if (size > 0) {
-   DUK_ASSERT(!(flags & DUK_BUF_FLAG_EXTERNAL));  /* alloc 
external with size zero */
-   DUK_DDD(DUK_DDDPRINT("dynamic buffer with nonzero size, 
alloc actual buffer"));
-#ifdef DUK_USE_ZERO_BUFFER_DATA
-   ptr = DUK_ALLOC_ZEROED(heap, size);
-#else
-   ptr = DUK_ALLOC(heap, size);
-#endif
-   if (!ptr) {
-   /* Because size > 0, NULL check is correct */
-   goto error;
-   }
-   *out_bufdata = ptr;
-
-   DUK_HBUFFER_DYNAMIC_SET_DATA_PTR(heap, h, ptr);
-   } else {
-   *out_bufdata = NULL;
-#if defined(DUK_USE_EXPLICIT_NULL_INIT)
-#if defined(DUK_USE_HEAPPTR16)
-/* the compressed pointer is zeroed which maps to NULL, so nothing to do. */
-#else
-   DUK_HBUFFER_DYNAMIC_SET_DATA_PTR(heap, h, NULL);
-#endif
-#endif
-   DUK_ASSERT(DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(heap, h) == 
NULL);
-   }
-   } else {
-   *out_bufdata = (void *) ((duk_hbuffer_fixed *) res + 1);
-   }
-
-   DUK_HBUFFER_SET_SIZE(res, size);
-
-   DUK_HEAPHDR_SET_TYPE(>hdr, DUK_HTYPE_BUFFER);
-   if (flags & DUK_BUF_FLAG_DYNAMIC) {
-   DUK_HBUFFER_SET_DYNAMIC(res);
-   if (flags & DUK_BUF_FLAG_EXTERNAL) {
-   DUK_HBUFFER_SET_EXTERNAL(res);
-   }
-   } else {
-   DUK_ASSERT(!(flags & DUK_BUF_FLAG_EXTERNAL));
-   }
-

[34/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
deleted file mode 100644
index 56ef280..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
+++ /dev/null
@@ -1,629 +0,0 @@
-{
-"line_map": [
-{
-"original_line": 1, 
-"combined_line": 114, 
-"original_file": "duk_internal.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 159, 
-"original_file": "duk_replacements.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 187, 
-"original_file": "duk_jmpbuf.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 211, 
-"original_file": "duk_exception.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 229, 
-"original_file": "duk_forwdecl.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 351, 
-"original_file": "duk_tval.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 869, 
-"original_file": "duk_builtins.h"
-}, 
-{
-"original_line": 52, 
-"combined_line": 1723, 
-"original_file": "duk_internal.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 1724, 
-"original_file": "duk_util.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 2254, 
-"original_file": "duk_strings.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 2506, 
-"original_file": "duk_js_bytecode.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 2711, 
-"original_file": "duk_lexer.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 3143, 
-"original_file": "duk_js_compiler.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 3370, 
-"original_file": "duk_regexp.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 3452, 
-"original_file": "duk_heaphdr.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 4202, 
-"original_file": "duk_api_internal.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 4396, 
-"original_file": "duk_hstring.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 4615, 
-"original_file": "duk_hobject.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5541, 
-"original_file": "duk_hcompiledfunction.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5780, 
-"original_file": "duk_hnativefunction.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5812, 
-"original_file": "duk_hbufferobject.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5945, 
-"original_file": "duk_hthread.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 6325, 
-"original_file": "duk_hbuffer.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 6653, 
-"original_file": "duk_heap.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 7249, 
-"original_file": "duk_debugger.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 7393, 
-"original_file": "duk_debug.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 7578, 
-"original_file": "duk_error.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8017, 
-"original_file": "duk_unicode.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8284, 
-"original_file": "duk_json.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8352, 
-"original_file": "duk_js.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8451, 
-"original_file": "duk_numconv.h"
-}, 
-{
-   

[20/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
deleted file mode 100644
index e0caff6..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
+++ /dev/null
@@ -1,2773 +0,0 @@
-/*
- *  Duktape debugger
- */
-
-#include "duk_internal.h"
-
-#if defined(DUK_USE_DEBUGGER_SUPPORT)
-
-/*
- *  Helper structs
- */
-
-typedef union {
-   void *p;
-   duk_uint_t b[1];
-   /* Use b[] to access the size of the union, which is strictly not
-* correct.  Can't use fixed size unless there's feature detection
-* for pointer byte size.
-*/
-} duk__ptr_union;
-
-/*
- *  Detach handling
- */
-
-#define DUK__SET_CONN_BROKEN(thr,reason) do { \
-   /* For now shared handler is fine. */ \
-   duk__debug_do_detach1((thr)->heap, (reason)); \
-   } while (0)
-
-DUK_LOCAL void duk__debug_do_detach1(duk_heap *heap, duk_int_t reason) {
-   /* Can be called multiple times with no harm.  Mark the transport
-* bad (dbg_read_cb == NULL) and clear state except for the detached
-* callback and the udata field.  The detached callback is delayed
-* to the message loop so that it can be called between messages;
-* this avoids corner cases related to immediate debugger reattach
-* inside the detached callback.
-*/
-
-   if (heap->dbg_detaching) {
-   DUK_D(DUK_DPRINT("debugger already detaching, ignore detach1"));
-   return;
-   }
-
-   DUK_D(DUK_DPRINT("debugger transport detaching, marking transport 
broken"));
-
-   heap->dbg_detaching = 1;  /* prevent multiple in-progress detaches */
-
-   if (heap->dbg_write_cb != NULL) {
-   duk_hthread *thr;
-
-   thr = heap->heap_thread;
-   DUK_ASSERT(thr != NULL);
-
-   duk_debug_write_notify(thr, DUK_DBG_CMD_DETACHING);
-   duk_debug_write_int(thr, reason);
-   duk_debug_write_eom(thr);
-   }
-
-   heap->dbg_read_cb = NULL;
-   heap->dbg_write_cb = NULL;
-   heap->dbg_peek_cb = NULL;
-   heap->dbg_read_flush_cb = NULL;
-   heap->dbg_write_flush_cb = NULL;
-   heap->dbg_request_cb = NULL;
-   /* heap->dbg_detached_cb: keep */
-   /* heap->dbg_udata: keep */
-   /* heap->dbg_processing: keep on purpose to avoid debugger re-entry in 
detaching state */
-   heap->dbg_paused = 0;
-   heap->dbg_state_dirty = 0;
-   heap->dbg_force_restart = 0;
-   heap->dbg_step_type = 0;
-   heap->dbg_step_thread = NULL;
-   heap->dbg_step_csindex = 0;
-   heap->dbg_step_startline = 0;
-   heap->dbg_have_next_byte = 0;
-
-   /* Ensure there are no stale active breakpoint pointers.
-* Breakpoint list is currently kept - we could empty it
-* here but we'd need to handle refcounts correctly, and
-* we'd need a 'thr' reference for that.
-*
-* XXX: clear breakpoint on either attach or detach?
-*/
-   heap->dbg_breakpoints_active[0] = (duk_breakpoint *) NULL;
-}
-
-DUK_LOCAL void duk__debug_do_detach2(duk_heap *heap) {
-   duk_debug_detached_function detached_cb;
-   void *detached_udata;
-
-   /* Safe to call multiple times. */
-
-   detached_cb = heap->dbg_detached_cb;
-   detached_udata = heap->dbg_udata;
-   heap->dbg_detached_cb = NULL;
-   heap->dbg_udata = NULL;
-
-   if (detached_cb) {
-   /* Careful here: state must be wiped before the call
-* so that we can cleanly handle a re-attach from
-* inside the callback.
-*/
-   DUK_D(DUK_DPRINT("detached during message loop, delayed call to 
detached_cb"));
-   detached_cb(detached_udata);
-   }
-
-   heap->dbg_detaching = 0;
-}
-
-DUK_INTERNAL void duk_debug_do_detach(duk_heap *heap) {
-   duk__debug_do_detach1(heap, 0);
-   duk__debug_do_detach2(heap);
-}
-
-/* Called on a read/write error: NULL all callbacks except the detached
- * callback so that we never accidentally call them after a read/write
- * error has been indicated.  This is especially important for the transport
- * I/O callbacks to fulfill guaranteed callback semantics.
- */
-DUK_LOCAL void duk__debug_null_most_callbacks(duk_hthread *thr) {
-   duk_heap *heap;
-   heap = thr->heap;
-   DUK_D(DUK_DPRINT("transport read/write error, NULL all callbacks 
expected detached"));
-   heap->dbg_read_cb = NULL;
-   heap->dbg_write_cb = NULL;  /* this is especially critical to avoid 
another write call in detach1() */

[16/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
deleted file mode 100644
index ace607e..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- *  String cache.
- *
- *  Provides a cache to optimize indexed string lookups.  The cache keeps
- *  track of (byte offset, char offset) states for a fixed number of strings.
- *  Otherwise we'd need to scan from either end of the string, as we store
- *  strings in (extended) UTF-8.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Delete references to given hstring from the heap string cache.
- *
- *  String cache references are 'weak': they are not counted towards
- *  reference counts, nor serve as roots for mark-and-sweep.  When an
- *  object is about to be freed, such references need to be removed.
- */
-
-DUK_INTERNAL void duk_heap_strcache_string_remove(duk_heap *heap, duk_hstring 
*h) {
-   duk_small_int_t i;
-   for (i = 0; i < DUK_HEAP_STRCACHE_SIZE; i++) {
-   duk_strcache *c = heap->strcache + i;
-   if (c->h == h) {
-   DUK_DD(DUK_DDPRINT("deleting weak strcache reference to 
hstring %p from heap %p",
-  (void *) h, (void *) heap));
-   c->h = NULL;
-
-   /* XXX: the string shouldn't appear twice, but we now 
loop to the
-* end anyway; if fixed, add a looping assertion to 
ensure there
-* is no duplicate.
-*/
-   }
-   }
-}
-
-/*
- *  String scanning helpers
- *
- *  All bytes other than UTF-8 continuation bytes ([0x80,0xbf]) are
- *  considered to contribute a character.  This must match how string
- *  character length is computed.
- */
-
-DUK_LOCAL const duk_uint8_t *duk__scan_forwards(const duk_uint8_t *p, const 
duk_uint8_t *q, duk_uint_fast32_t n) {
-   while (n > 0) {
-   for (;;) {
-   p++;
-   if (p >= q) {
-   return NULL;
-   }
-   if ((*p & 0xc0) != 0x80) {
-   break;
-   }
-   }
-   n--;
-   }
-   return p;
-}
-
-DUK_LOCAL const duk_uint8_t *duk__scan_backwards(const duk_uint8_t *p, const 
duk_uint8_t *q, duk_uint_fast32_t n) {
-   while (n > 0) {
-   for (;;) {
-   p--;
-   if (p < q) {
-   return NULL;
-   }
-   if ((*p & 0xc0) != 0x80) {
-   break;
-   }
-   }
-   n--;
-   }
-   return p;
-}
-
-/*
- *  Convert char offset to byte offset
- *
- *  Avoid using the string cache if possible: for ASCII strings byte and
- *  char offsets are equal and for short strings direct scanning may be
- *  better than using the string cache (which may evict a more important
- *  entry).
- *
- *  Typing now assumes 32-bit string byte/char offsets (duk_uint_fast32_t).
- *  Better typing might be to use duk_size_t.
- */
-
-DUK_INTERNAL duk_uint_fast32_t duk_heap_strcache_offset_char2byte(duk_hthread 
*thr, duk_hstring *h, duk_uint_fast32_t char_offset) {
-   duk_heap *heap;
-   duk_strcache *sce;
-   duk_uint_fast32_t byte_offset;
-   duk_small_int_t i;
-   duk_bool_t use_cache;
-   duk_uint_fast32_t dist_start, dist_end, dist_sce;
-   const duk_uint8_t *p_start;
-   const duk_uint8_t *p_end;
-   const duk_uint8_t *p_found;
-
-   if (char_offset > DUK_HSTRING_GET_CHARLEN(h)) {
-   goto error;
-   }
-
-   /*
-*  For ASCII strings, the answer is simple.
-*/
-
-   if (DUK_HSTRING_IS_ASCII(h)) {
-   /* clen == blen -> pure ascii */
-   return char_offset;
-   }
-
-   /*
-*  For non-ASCII strings, we need to scan forwards or backwards
-*  from some starting point.  The starting point may be the start
-*  or end of the string, or some cached midpoint in the string
-*  cache.
-*
-*  For "short" strings we simply scan without checking or updating
-*  the cache.  For longer strings we check and update the cache as
-*  necessary, inserting a new cache entry if none exists.
-*/
-
-   DUK_DDD(DUK_DDDPRINT("non-ascii string %p, char_offset=%ld, clen=%ld, 
blen=%ld",
-(void *) 

[29/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
deleted file mode 100644
index 1d5c7b7..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
+++ /dev/null
@@ -1,1728 +0,0 @@
-/*
- *  Date built-ins
- *
- *  Unlike most built-ins, Date has some platform dependencies for getting
- *  UTC time, converting between UTC and local time, and parsing and
- *  formatting time values.  These are all abstracted behind DUK_USE_xxx
- *  config options.  There are built-in platform specific providers for
- *  POSIX and Windows, but external providers can also be used.
- *
- *  See doc/datetime.rst.
- *
- */
-
-#include "duk_internal.h"
-
-/*
- *  Forward declarations
- */
-
-DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval_tzoffset(duk_context 
*ctx, duk_small_uint_t flags, duk_int_t *out_tzoffset);
-DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval(duk_context *ctx, 
duk_small_uint_t flags);
-DUK_LOCAL_DECL void duk__twodigit_year_fixup(duk_context *ctx, duk_idx_t 
idx_val);
-DUK_LOCAL_DECL duk_ret_t duk__set_this_timeval_from_dparts(duk_context *ctx, 
duk_double_t *dparts, duk_small_uint_t flags);
-
-/*
- *  Other file level defines
- */
-
-/* Debug macro to print all parts and dparts (used manually because of debug 
level). */
-#define  DUK__DPRINT_PARTS_AND_DPARTS(parts,dparts)  do { \
-   DUK_D(DUK_DPRINT("parts: %ld %ld %ld %ld %ld %ld %ld %ld, 
dparts: %lf %lf %lf %lf %lf %lf %lf %lf", \
-(long) (parts)[0], (long) (parts)[1], \
-(long) (parts)[2], (long) (parts)[3], \
-(long) (parts)[4], (long) (parts)[5], \
-(long) (parts)[6], (long) (parts)[7], \
-(double) (dparts)[0], (double) (dparts)[1], \
-(double) (dparts)[2], (double) (dparts)[3], \
-(double) (dparts)[4], (double) (dparts)[5], \
-(double) (dparts)[6], (double) (dparts)[7])); \
-   } while (0)
-#define  DUK__DPRINT_PARTS(parts)  do { \
-   DUK_D(DUK_DPRINT("parts: %ld %ld %ld %ld %ld %ld %ld %ld", \
-(long) (parts)[0], (long) (parts)[1], \
-(long) (parts)[2], (long) (parts)[3], \
-(long) (parts)[4], (long) (parts)[5], \
-(long) (parts)[6], (long) (parts)[7])); \
-   } while (0)
-#define  DUK__DPRINT_DPARTS(dparts)  do { \
-   DUK_D(DUK_DPRINT("dparts: %lf %lf %lf %lf %lf %lf %lf %lf", \
-(double) (dparts)[0], (double) (dparts)[1], \
-(double) (dparts)[2], (double) (dparts)[3], \
-(double) (dparts)[4], (double) (dparts)[5], \
-(double) (dparts)[6], (double) (dparts)[7])); \
-   } while (0)
-
-/* Equivalent year for DST calculations outside [1970,2038[ range, see
- * E5 Section 15.9.1.8.  Equivalent year has the same leap-year-ness and
- * starts with the same weekday on Jan 1.
- * https://bugzilla.mozilla.org/show_bug.cgi?id=351066
- */
-#define DUK__YEAR(x) ((duk_uint8_t) ((x) - 1970))
-DUK_LOCAL duk_uint8_t duk__date_equivyear[14] = {
-#if 1
-   /* This is based on V8 EquivalentYear() algorithm (see 
src/genequivyear.py):
-* http://code.google.com/p/v8/source/browse/trunk/src/date.h#146
-*/
-
-   /* non-leap year: sunday, monday, ... */
-   DUK__YEAR(2023), DUK__YEAR(2035), DUK__YEAR(2019), DUK__YEAR(2031),
-   DUK__YEAR(2015), DUK__YEAR(2027), DUK__YEAR(2011),
-
-   /* leap year: sunday, monday, ... */
-   DUK__YEAR(2012), DUK__YEAR(2024), DUK__YEAR(2008), DUK__YEAR(2020),
-   DUK__YEAR(2032), DUK__YEAR(2016), DUK__YEAR(2028)
-#endif
-
-#if 0
-   /* This is based on Rhino EquivalentYear() algorithm:
-* 
https://github.com/mozilla/rhino/blob/f99cc11d616f0cdda2c42bde72b3484df6182947/src/org/mozilla/javascript/NativeDate.java
-*/
-
-   /* non-leap year: sunday, monday, ... */
-   DUK__YEAR(1978), DUK__YEAR(1973), DUK__YEAR(1985), DUK__YEAR(1986),
-   DUK__YEAR(1981), DUK__YEAR(1971), DUK__YEAR(1977),
-
-   /* leap year: sunday, monday, ... */
-   DUK__YEAR(1984), DUK__YEAR(1996), DUK__YEAR(1980), DUK__YEAR(1992),
-   DUK__YEAR(1976), DUK__YEAR(1988), DUK__YEAR(1972)
-#endif
-};
-#undef DUK__YEAR
-
-/*
- *  ISO 8601 subset parser.
- */
-
-/* Parser part count. */
-#define DUK__NUM_ISO8601_PARSER_PARTS  9
-
-/* 

[31/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_string.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_string.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_string.c
deleted file mode 100644
index 3f1acac..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_string.c
+++ /dev/null
@@ -1,331 +0,0 @@
-/*
- *  String manipulation
- */
-
-#include "duk_internal.h"
-
-DUK_LOCAL void duk__concat_and_join_helper(duk_context *ctx, duk_idx_t 
count_in, duk_bool_t is_join) {
-   duk_hthread *thr = (duk_hthread *) ctx;
-   duk_uint_t count;
-   duk_uint_t i;
-   duk_size_t idx;
-   duk_size_t len;
-   duk_hstring *h;
-   duk_uint8_t *buf;
-
-   DUK_ASSERT_CTX_VALID(ctx);
-
-   if (DUK_UNLIKELY(count_in <= 0)) {
-   if (count_in < 0) {
-   DUK_ERROR_API(thr, DUK_STR_INVALID_COUNT);
-   return;
-   }
-   DUK_ASSERT(count_in == 0);
-   duk_push_hstring_stridx(ctx, DUK_STRIDX_EMPTY_STRING);
-   return;
-   }
-   count = (duk_uint_t) count_in;
-
-   if (is_join) {
-   duk_size_t t1, t2, limit;
-   h = duk_to_hstring(ctx, -((duk_idx_t) count) - 1);
-   DUK_ASSERT(h != NULL);
-
-   /* A bit tricky overflow test, see doc/code-issues.rst. */
-   t1 = (duk_size_t) DUK_HSTRING_GET_BYTELEN(h);
-   t2 = (duk_size_t) (count - 1);
-   limit = (duk_size_t) DUK_HSTRING_MAX_BYTELEN;
-   if (DUK_UNLIKELY(t2 != 0 && t1 > limit / t2)) {
-   /* Combined size of separators already overflows */
-   goto error_overflow;
-   }
-   len = (duk_size_t) (t1 * t2);
-   } else {
-   len = (duk_size_t) 0;
-   }
-
-   for (i = count; i >= 1; i--) {
-   duk_size_t new_len;
-   duk_to_string(ctx, -((duk_idx_t) i));
-   h = duk_require_hstring(ctx, -((duk_idx_t) i));
-   new_len = len + (duk_size_t) DUK_HSTRING_GET_BYTELEN(h);
-
-   /* Impose a string maximum length, need to handle overflow
-* correctly.
-*/
-   if (new_len < len ||  /* wrapped */
-   new_len > (duk_size_t) DUK_HSTRING_MAX_BYTELEN) {
-   goto error_overflow;
-   }
-   len = new_len;
-   }
-
-   DUK_DDD(DUK_DDDPRINT("join/concat %lu strings, total length %lu bytes",
-(unsigned long) count, (unsigned long) len));
-
-   /* use stack allocated buffer to ensure reachability in errors (e.g. 
intern error) */
-   buf = (duk_uint8_t *) duk_push_fixed_buffer(ctx, len);
-   DUK_ASSERT(buf != NULL);
-
-   /* [... (sep) str1 str2 ... strN buf] */
-
-   idx = 0;
-   for (i = count; i >= 1; i--) {
-   if (is_join && i != count) {
-   h = duk_require_hstring(ctx, -((duk_idx_t) count) - 2); 
 /* extra -1 for buffer */
-   DUK_MEMCPY(buf + idx, DUK_HSTRING_GET_DATA(h), 
DUK_HSTRING_GET_BYTELEN(h));
-   idx += DUK_HSTRING_GET_BYTELEN(h);
-   }
-   h = duk_require_hstring(ctx, -((duk_idx_t) i) - 1);  /* extra 
-1 for buffer */
-   DUK_MEMCPY(buf + idx, DUK_HSTRING_GET_DATA(h), 
DUK_HSTRING_GET_BYTELEN(h));
-   idx += DUK_HSTRING_GET_BYTELEN(h);
-   }
-
-   DUK_ASSERT(idx == len);
-
-   /* [... (sep) str1 str2 ... strN buf] */
-
-   /* get rid of the strings early to minimize memory use before intern */
-
-   if (is_join) {
-   duk_replace(ctx, -((duk_idx_t) count) - 2);  /* overwrite sep */
-   duk_pop_n(ctx, count);
-   } else {
-   duk_replace(ctx, -((duk_idx_t) count) - 1);  /* overwrite str1 
*/
-   duk_pop_n(ctx, count-1);
-   }
-
-   /* [... buf] */
-
-   (void) duk_to_string(ctx, -1);
-
-   /* [... res] */
-   return;
-
- error_overflow:
-   DUK_ERROR_RANGE(thr, DUK_STR_CONCAT_RESULT_TOO_LONG);
-}
-
-DUK_EXTERNAL void duk_concat(duk_context *ctx, duk_idx_t count) {
-   DUK_ASSERT_CTX_VALID(ctx);
-
-   duk__concat_and_join_helper(ctx, count, 0 /*is_join*/);
-}
-
-DUK_EXTERNAL void duk_join(duk_context *ctx, duk_idx_t count) {
-   DUK_ASSERT_CTX_VALID(ctx);
-
-   duk__concat_and_join_helper(ctx, count, 1 /*is_join*/);
-}
-
-/* XXX: could map/decode be unified with duk_unicode_support.c code?
- * Case conversion needs also the character surroundings though.
- */
-
-DUK_EXTERNAL void duk_decode_string(duk_context *ctx, duk_idx_t index, 

[24/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.c
deleted file mode 100644
index 5003e8b..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.c
+++ /dev/null
@@ -1,776 +0,0 @@
-/*
- *  Automatically generated by genbuiltins.py, do not edit!
- */
-
-#include "duk_internal.h"
-
-#if defined(DUK_USE_ROM_STRINGS)
-#error ROM support not enabled, rerun make_dist.py with --rom-support
-#else  /* DUK_USE_ROM_STRINGS */
-DUK_INTERNAL const duk_uint8_t duk_strings_data[1049] = {
-79,104,209,144,168,105,6,78,182,139,90,122,8,154,140,35,103,35,117,193,73,
-5,52,116,180,104,166,135,52,189,4,98,12,27,178,156,80,211,31,161,115,150,
-64,52,221,109,24,18,68,157,24,38,67,118,36,55,73,119,151,164,140,93,18,117,
-128,153,201,228,201,205,2,250,8,196,24,232,104,82,146,40,232,193,48,118,
-168,37,147,212,54,127,113,208,70,32,194,187,68,54,127,113,208,70,32,196,
-123,68,54,127,113,209,44,12,121,7,208,70,32,194,186,134,207,236,126,219,
-160,140,65,133,246,136,108,254,199,237,186,8,196,24,87,80,217,253,159,217,
-116,17,136,48,190,209,13,159,217,253,151,65,24,131,12,233,86,224,79,236,
-254,203,160,140,65,134,116,171,112,39,246,223,105,208,70,32,193,140,183,4,
-11,55,92,20,244,141,169,186,50,11,164,109,77,208,208,165,36,79,215,185,13,
-153,34,110,204,241,32,6,66,84,11,112,200,84,52,157,124,92,242,70,120,45,64,
-186,17,22,138,38,0,172,140,19,154,84,26,145,0,86,69,17,180,97,34,0,172,132,
-75,144,215,77,221,91,132,5,147,178,156,80,211,30,160,93,9,215,21,115,119,
-169,49,75,211,138,26,101,205,222,68,157,47,78,40,105,151,55,120,204,156,
-189,56,161,166,52,157,72,136,138,65,154,232,147,162,4,136,150,81,115,66,
-208,210,37,96,148,250,134,140,151,39,212,125,255,221,125,73,80,209,146,233,
-124,93,55,79,15,34,196,230,202,113,160,166,232,157,132,148,128,98,28,46,
-114,200,6,153,180,96,73,19,74,113,67,76,103,5,36,20,211,70,140,133,67,72,
-49,245,160,235,81,212,52,168,106,39,132,253,111,80,210,161,168,158,5,245,
-191,96,31,172,15,208,23,226,190,131,232,62,131,232,11,251,127,93,245,223,
-93,251,172,234,27,80,45,3,250,14,140,19,34,65,19,81,132,108,228,97,1,107,
-33,12,32,45,100,136,206,9,12,196,155,134,69,146,100,235,226,231,146,51,194,
-72,218,48,145,4,200,119,89,189,81,49,39,72,147,235,226,233,186,120,121,58,
-226,167,90,124,93,55,107,71,137,33,68,68,130,64,206,75,189,209,156,144,84,
-44,141,3,8,137,187,178,156,80,211,26,110,242,100,230,146,120,121,8,48,76,6,
-89,26,105,157,65,196,201,213,145,166,153,212,28,76,157,113,75,34,78,62,14,
-38,73,105,228,142,136,178,48,141,152,228,73,150,83,0,148,39,137,75,67,73,
-214,209,129,36,85,190,206,32,17,6,9,128,141,3,8,130,161,100,235,64,194,24,
-52,41,73,19,189,200,108,201,19,111,181,2,232,66,239,173,37,230,157,244,56,
-153,4,225,145,27,233,93,22,1,114,62,251,80,69,128,121,247,213,146,228,109,
-79,190,212,17,35,106,125,246,78,164,68,68,111,175,23,217,45,13,33,119,208,
-68,210,38,250,192,61,91,233,80,208,45,25,36,81,190,156,13,26,201,19,239,
-162,2,214,66,31,125,153,226,64,13,27,236,72,96,130,68,62,251,48,68,196,153,
-119,217,157,18,56,156,199,161,100,42,26,250,77,36,140,122,40,144,19,34,9,
-24,246,103,139,172,150,56,125,145,1,17,29,44,112,250,183,0,100,24,200,218,
-140,228,185,130,9,19,237,190,208,73,184,146,35,68,146,163,8,50,178,99,136,
-44,89,196,2,33,70,64,208,196,67,74,226,88,17,105,73,24,186,37,40,38,5,133,
-161,89,4,183,25,115,119,86,227,118,83,138,26,103,255,223,209,106,141,25,11,
-244,95,117,56,208,159,250,223,251,250,45,52,13,250,47,186,156,104,79,253,
-111,253,253,22,144,210,253,23,221,78,52,39,254,187,254,254,139,77,67,75,
-244,95,117,56,208,159,250,239,251,250,45,22,141,23,209,125,212,227,66,127,
-235,63,239,69,163,69,247,83,141,9,255,165,12,72,5,16,64,145,10,32,76,71,64,
-156,217,161,180,34,6,64,208,198,36,78,50,20,20,92,204,50,44,147,32,134,226,
-17,114,33,202,134,129,107,192,202,232,160,180,104,166,135,52,72,40,144,213,
-33,178,152,26,34,56,163,105,44,104,146,116,139,77,43,34,98,57,38,116,72,
-179,60,93,97,206,56,52,240,242,56,163,168,34,81,57,178,153,42,228,12,182,
-58,22,66,89,19,57,68,176,74,68,35,104,195,18,239,116,102,114,94,100,104,
-228,100,49,238,140,203,42,60,145,35,104,181,146,113,161,10,80,46,68,82,24,
-245,145,132,108,228,148,54,100,137,64,34,13,100,153,222,1,40,6,33,223,20,
-84,19,34,95,23,76,130,153,6,103,208,43,64,141,41,130,104,17,112,130,44,96,
-};
-#endif  /* DUK_USE_ROM_STRINGS */
-
-#if defined(DUK_USE_ROM_OBJECTS)
-#error ROM support not enabled, rerun make_dist.py with --rom-support
-#else  /* DUK_USE_ROM_OBJECTS */
-/* native functions: 149 */
-DUK_INTERNAL const duk_c_function duk_bi_native_functions[149] = {
-   duk_bi_array_constructor,
-   

[12/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hstring.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hstring.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hstring.h
deleted file mode 100644
index f80ec34..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hstring.h
+++ /dev/null
@@ -1,219 +0,0 @@
-/*
- *  Heap string representation.
- *
- *  Strings are byte sequences ordinarily stored in extended UTF-8 format,
- *  allowing values larger than the official UTF-8 range (used internally)
- *  and also allowing UTF-8 encoding of surrogate pairs (CESU-8 format).
- *  Strings may also be invalid UTF-8 altogether which is the case e.g. with
- *  strings used as internal property names and raw buffers converted to
- *  strings.  In such cases the 'clen' field contains an inaccurate value.
- *
- *  Ecmascript requires support for 32-bit long strings.  However, since each
- *  16-bit codepoint can take 3 bytes in CESU-8, this representation can only
- *  support about 1.4G codepoint long strings in extreme cases.  This is not
- *  really a practical issue.
- */
-
-#ifndef DUK_HSTRING_H_INCLUDED
-#define DUK_HSTRING_H_INCLUDED
-
-/* Impose a maximum string length for now.  Restricted artificially to
- * ensure adding a heap header length won't overflow size_t.  The limit
- * should be synchronized with DUK_HBUFFER_MAX_BYTELEN.
- *
- * E5.1 makes provisions to support strings longer than 4G characters.
- * This limit should be eliminated on 64-bit platforms (and increased
- * closer to maximum support on 32-bit platforms).
- */
-
-#if defined(DUK_USE_STRLEN16)
-#define DUK_HSTRING_MAX_BYTELEN (0xUL)
-#else
-#define DUK_HSTRING_MAX_BYTELEN (0x7fffUL)
-#endif
-
-/* XXX: could add flags for "is valid CESU-8" (Ecmascript compatible strings),
- * "is valid UTF-8", "is valid extended UTF-8" (internal strings are not,
- * regexp bytecode is), and "contains non-BMP characters".  These are not
- * needed right now.
- */
-
-#define DUK_HSTRING_FLAG_ASCII  DUK_HEAPHDR_USER_FLAG(0)  
/* string is ASCII, clen == blen */
-#define DUK_HSTRING_FLAG_ARRIDX DUK_HEAPHDR_USER_FLAG(1)  
/* string is a valid array index */
-#define DUK_HSTRING_FLAG_INTERNAL   DUK_HEAPHDR_USER_FLAG(2)  
/* string is internal */
-#define DUK_HSTRING_FLAG_RESERVED_WORD  DUK_HEAPHDR_USER_FLAG(3)  
/* string is a reserved word (non-strict) */
-#define DUK_HSTRING_FLAG_STRICT_RESERVED_WORD   DUK_HEAPHDR_USER_FLAG(4)  
/* string is a reserved word (strict) */
-#define DUK_HSTRING_FLAG_EVAL_OR_ARGUMENTS  DUK_HEAPHDR_USER_FLAG(5)  
/* string is 'eval' or 'arguments' */
-#define DUK_HSTRING_FLAG_EXTDATADUK_HEAPHDR_USER_FLAG(6)  
/* string data is external (duk_hstring_external) */
-
-#define DUK_HSTRING_HAS_ASCII(x)
DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_ASCII)
-#define DUK_HSTRING_HAS_ARRIDX(x)   
DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_ARRIDX)
-#define DUK_HSTRING_HAS_INTERNAL(x) 
DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_INTERNAL)
-#define DUK_HSTRING_HAS_RESERVED_WORD(x)
DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_RESERVED_WORD)
-#define DUK_HSTRING_HAS_STRICT_RESERVED_WORD(x) 
DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_STRICT_RESERVED_WORD)
-#define DUK_HSTRING_HAS_EVAL_OR_ARGUMENTS(x)
DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_EVAL_OR_ARGUMENTS)
-#define DUK_HSTRING_HAS_EXTDATA(x)  
DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_EXTDATA)
-
-#define DUK_HSTRING_SET_ASCII(x)
DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_ASCII)
-#define DUK_HSTRING_SET_ARRIDX(x)   
DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_ARRIDX)
-#define DUK_HSTRING_SET_INTERNAL(x) 
DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_INTERNAL)
-#define DUK_HSTRING_SET_RESERVED_WORD(x)
DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_RESERVED_WORD)
-#define DUK_HSTRING_SET_STRICT_RESERVED_WORD(x) 
DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_STRICT_RESERVED_WORD)
-#define DUK_HSTRING_SET_EVAL_OR_ARGUMENTS(x)
DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_EVAL_OR_ARGUMENTS)
-#define DUK_HSTRING_SET_EXTDATA(x)  
DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_EXTDATA)
-
-#define DUK_HSTRING_CLEAR_ASCII(x)  
DUK_HEAPHDR_CLEAR_FLAG_BITS(&(x)->hdr, DUK_HSTRING_FLAG_ASCII)
-#define DUK_HSTRING_CLEAR_ARRIDX(x) 

[17/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_hashstring.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_hashstring.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_hashstring.c
deleted file mode 100644
index 5cad795..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_hashstring.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- *  String hash computation (interning).
- *
- *  String hashing is performance critical because a string hash is computed
- *  for all new strings which are candidates to be added to the string table.
- *  However, strings actually added to the string table go through a codepoint
- *  length calculation which dominates performance because it goes through
- *  every byte of the input string (but only for strings added).
- *
- *  The string hash algorithm should be fast, but on the other hand provide
- *  good enough hashes to ensure both string table and object property table
- *  hash tables work reasonably well (i.e., there aren't too many collisions
- *  with real world inputs).  Unless the hash is cryptographic, it's always
- *  possible to craft inputs with maximal hash collisions.
- *
- *  NOTE: The hash algorithms must match src/dukutil.py:duk_heap_hashstring()
- *  for ROM string support!
- */
-
-#include "duk_internal.h"
-
-#if defined(DUK_USE_STRHASH_DENSE)
-/* Constants for duk_hashstring(). */
-#define DUK__STRHASH_SHORTSTRING   4096L
-#define DUK__STRHASH_MEDIUMSTRING  (256L * 1024L)
-#define DUK__STRHASH_BLOCKSIZE 256L
-
-DUK_INTERNAL duk_uint32_t duk_heap_hashstring(duk_heap *heap, const 
duk_uint8_t *str, duk_size_t len) {
-   duk_uint32_t hash;
-
-   /* Use Murmurhash2 directly for short strings, and use "block skipping"
-* for long strings: hash an initial part and then sample the rest of
-* the string with reasonably sized chunks.  An initial offset for the
-* sampling is computed based on a hash of the initial part of the 
string;
-* this is done to (usually) avoid the case where all long strings have
-* certain offset ranges which are never sampled.
-*
-* Skip should depend on length and bound the total time to roughly
-* logarithmic.  With current values:
-*
-*   1M string => 256 * 241 = 61696 bytes (0.06M) of hashing
-*   1G string => 256 * 16321 = 4178176 bytes (3.98M) of hashing
-*
-* XXX: It would be better to compute the skip offset more "smoothly"
-* instead of having a few boundary values.
-*/
-
-   /* note: mixing len into seed improves hashing when skipping */
-   duk_uint32_t str_seed = heap->hash_seed ^ ((duk_uint32_t) len);
-
-   if (len <= DUK__STRHASH_SHORTSTRING) {
-   hash = duk_util_hashbytes(str, len, str_seed);
-   } else {
-   duk_size_t off;
-   duk_size_t skip;
-
-   if (len <= DUK__STRHASH_MEDIUMSTRING) {
-   skip = (duk_size_t) (16 * DUK__STRHASH_BLOCKSIZE + 
DUK__STRHASH_BLOCKSIZE);
-   } else {
-   skip = (duk_size_t) (256 * DUK__STRHASH_BLOCKSIZE + 
DUK__STRHASH_BLOCKSIZE);
-   }
-
-   hash = duk_util_hashbytes(str, (duk_size_t) 
DUK__STRHASH_SHORTSTRING, str_seed);
-   off = DUK__STRHASH_SHORTSTRING + (skip * (hash % 256)) / 256;
-
-   /* XXX: inefficient loop */
-   while (off < len) {
-   duk_size_t left = len - off;
-   duk_size_t now = (duk_size_t) (left > 
DUK__STRHASH_BLOCKSIZE ? DUK__STRHASH_BLOCKSIZE : left);
-   hash ^= duk_util_hashbytes(str + off, now, str_seed);
-   off += skip;
-   }
-   }
-
-#if defined(DUK_USE_STRHASH16)
-   /* Truncate to 16 bits here, so that a computed hash can be compared
-* against a hash stored in a 16-bit field.
-*/
-   hash &= 0xUL;
-#endif
-   return hash;
-}
-
-#undef DUK__STRHASH_SHORTSTRING
-#undef DUK__STRHASH_MEDIUMSTRING
-#undef DUK__STRHASH_BLOCKSIZE
-#else  /* DUK_USE_STRHASH_DENSE */
-DUK_INTERNAL duk_uint32_t duk_heap_hashstring(duk_heap *heap, const 
duk_uint8_t *str, duk_size_t len) {
-   duk_uint32_t hash;
-   duk_size_t step;
-   duk_size_t off;
-
-   /* Slightly modified "Bernstein hash" from:
-*
-* 
http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx
-*
-* Modifications: string skipping and reverse direction similar to
-* Lua 5.1.5, and different hash initializer.
-*
-* The reverse direction ensures last byte it always included in the
-* hash which is a good default as 

[39/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx
deleted file mode 100644
index 29a6b8d..000
--- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx
+++ /dev/null
@@ -1,3933 +0,0 @@
-
-http://spdx.org/rdf/terms#;
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
-   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#;
->
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>6f9134b7d1c939593043b9e0ecb308fbc745c9af
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP102"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./examples/eventloop/main.c
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>bd2f85dccd23b76b9cf9900b8b2b86f0bf97421b
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP416"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_initjs_min.js
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP322"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_internal.h
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>b7ee0e88e6365390db594e5e1a90c383847cfd0f
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:created 
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime;>2016-12-08T20:32:53Z
-
-<_3:licenseListVersion>1.20
-http://spdx.org/rdf/terms#CreationInfo"/>
-<_3:creator>Organization: duktape.org
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP80"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./examples/coffee/README.rst
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_other"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP276"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_heap_stringtable.c
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>d70b4083ccd3b5dac32ad07e58d3132dc3390b79
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>f051b42ff42dc8655b9e17739f7cb7cb76bdf78d
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>61db5ef1604240b33fa9e1e8825ad588076a5aef
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP366"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_debug.h
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 

[10/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_call.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_call.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_call.c
deleted file mode 100644
index 7dc04ed..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_call.c
+++ /dev/null
@@ -1,2727 +0,0 @@
-/*
- *  Call handling.
- *
- *  Main functions are:
- *
- *- duk_handle_call_unprotected(): unprotected call to Ecmascript or
- *  Duktape/C function
- *- duk_handle_call_protected(): protected call to Ecmascript or
- *  Duktape/C function
- *- duk_handle_safe_call(): make a protected C call within current
- *  activation
- *- duk_handle_ecma_call_setup(): Ecmascript-to-Ecmascript calls
- *  (not always possible), including tail calls and coroutine resume
- *
- *  See 'execution.rst'.
- *
- *  Note: setjmp() and local variables have a nasty interaction,
- *  see execution.rst; non-volatile locals modified after setjmp()
- *  call are not guaranteed to keep their value.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Forward declarations.
- */
-
-DUK_LOCAL void duk__handle_call_inner(duk_hthread *thr,
-  duk_idx_t num_stack_args,
-  duk_small_uint_t call_flags,
-  duk_idx_t idx_func);
-DUK_LOCAL void duk__handle_call_error(duk_hthread *thr,
-  duk_size_t entry_valstack_bottom_index,
-  duk_size_t entry_valstack_end,
-  duk_size_t entry_catchstack_top,
-  duk_size_t entry_callstack_top,
-  duk_int_t entry_call_recursion_depth,
-  duk_hthread *entry_curr_thread,
-  duk_uint_fast8_t entry_thread_state,
-  duk_instr_t **entry_ptr_curr_pc,
-  duk_idx_t idx_func,
-  duk_jmpbuf *old_jmpbuf_ptr);
-DUK_LOCAL void duk__handle_safe_call_inner(duk_hthread *thr,
-   duk_safe_call_function func,
-   duk_idx_t idx_retbase,
-   duk_idx_t num_stack_rets,
-   duk_size_t 
entry_valstack_bottom_index,
-   duk_size_t entry_callstack_top,
-   duk_size_t entry_catchstack_top);
-DUK_LOCAL void duk__handle_safe_call_error(duk_hthread *thr,
-   duk_idx_t idx_retbase,
-   duk_idx_t num_stack_rets,
-   duk_size_t 
entry_valstack_bottom_index,
-   duk_size_t entry_callstack_top,
-   duk_size_t entry_catchstack_top,
-   duk_jmpbuf *old_jmpbuf_ptr);
-DUK_LOCAL void duk__handle_safe_call_shared(duk_hthread *thr,
-duk_idx_t idx_retbase,
-duk_idx_t num_stack_rets,
-duk_int_t 
entry_call_recursion_depth,
-duk_hthread *entry_curr_thread,
-duk_uint_fast8_t 
entry_thread_state,
-duk_instr_t **entry_ptr_curr_pc);
-
-/*
- *  Interrupt counter fixup (for development only).
- */
-
-#if defined(DUK_USE_INTERRUPT_COUNTER) && defined(DUK_USE_DEBUG)
-DUK_LOCAL void duk__interrupt_fixup(duk_hthread *thr, duk_hthread 
*entry_curr_thread) {
-   /* Currently the bytecode executor and executor interrupt
-* instruction counts are off because we don't execute the
-* interrupt handler when we're about to exit from the initial
-* user call into Duktape.
-*
-* If we were to execute the interrupt handler here, the counts
-* would match.  You can enable this block manually to check
-* that this is the case.
-*/
-
-   DUK_ASSERT(thr != NULL);
-   DUK_ASSERT(thr->heap != NULL);
-
-#if defined(DUK_USE_INTERRUPT_DEBUG_FIXUP)
-   if (entry_curr_thread == NULL) {
-   thr->interrupt_init = thr->interrupt_init - 
thr->interrupt_counter;
-   thr->heap->inst_count_interrupt += thr->interrupt_init;
-   DUK_DD(DUK_DDPRINT("debug test: updated interrupt count on exit 
to "
-

[06/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_ops.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_ops.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_ops.c
deleted file mode 100644
index a1e9d9d..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_ops.c
+++ /dev/null
@@ -1,1370 +0,0 @@
-/*
- *  Ecmascript specification algorithm and conversion helpers.
- *
- *  These helpers encapsulate the primitive Ecmascript operation
- *  semantics, and are used by the bytecode executor and the API
- *  (among other places).  Note that some primitives are only
- *  implemented as part of the API and have no "internal" helper.
- *  (This is the case when an internal helper would not really be
- *  useful; e.g. the operation is rare, uses value stack heavily,
- *  etc.)
- *
- *  The operation arguments depend on what is required to implement
- *  the operation:
- *
- *- If an operation is simple and stateless, and has no side
- *  effects, it won't take an duk_hthread argument and its
- *  arguments may be duk_tval pointers (which are safe as long
- *  as no side effects take place).
- *
- *- If complex coercions are required (e.g. a "ToNumber" coercion)
- *  or errors may be thrown, the operation takes an duk_hthread
- *  argument.  This also implies that the operation may have
- *  arbitrary side effects, invalidating any duk_tval pointers.
- *
- *- For operations with potential side effects, arguments can be
- *  taken in several ways:
- *
- *  a) as duk_tval pointers, which makes sense if the "common case"
- * can be resolved without side effects (e.g. coercion); the
- * arguments are pushed to the valstack for coercion if
- * necessary
- *
- *  b) as duk_tval values
- *
- *  c) implicitly on value stack top
- *
- *  d) as indices to the value stack
- *
- *  Future work:
- *
- * - Argument styles may not be the most sensible in every case now.
- *
- * - In-place coercions might be useful for several operations, if
- *   in-place coercion is OK for the bytecode executor and the API.
- */
-
-#include "duk_internal.h"
-
-/*
- *  [[DefaultValue]]  (E5 Section 8.12.8)
- *
- *  ==> implemented in the API.
- */
-
-/*
- *  ToPrimitive()  (E5 Section 9.1)
- *
- *  ==> implemented in the API.
- */
-
-/*
- *  ToBoolean()  (E5 Section 9.2)
- */
-
-DUK_INTERNAL duk_bool_t duk_js_toboolean(duk_tval *tv) {
-   switch (DUK_TVAL_GET_TAG(tv)) {
-   case DUK_TAG_UNDEFINED:
-   case DUK_TAG_NULL:
-   return 0;
-   case DUK_TAG_BOOLEAN:
-   return DUK_TVAL_GET_BOOLEAN(tv);
-   case DUK_TAG_STRING: {
-   duk_hstring *h = DUK_TVAL_GET_STRING(tv);
-   DUK_ASSERT(h != NULL);
-   return (DUK_HSTRING_GET_BYTELEN(h) > 0 ? 1 : 0);
-   }
-   case DUK_TAG_OBJECT: {
-   return 1;
-   }
-   case DUK_TAG_BUFFER: {
-   /* mimic semantics for strings */
-   duk_hbuffer *h = DUK_TVAL_GET_BUFFER(tv);
-   DUK_ASSERT(h != NULL);
-   return (DUK_HBUFFER_GET_SIZE(h) > 0 ? 1 : 0);
-   }
-   case DUK_TAG_POINTER: {
-   void *p = DUK_TVAL_GET_POINTER(tv);
-   return (p != NULL ? 1 : 0);
-   }
-   case DUK_TAG_LIGHTFUNC: {
-   return 1;
-   }
-#if defined(DUK_USE_FASTINT)
-   case DUK_TAG_FASTINT:
-   if (DUK_TVAL_GET_FASTINT(tv) != 0) {
-   return 1;
-   } else {
-   return 0;
-   }
-#endif
-   default: {
-   /* number */
-   duk_double_t d;
-   int c;
-   DUK_ASSERT(!DUK_TVAL_IS_UNUSED(tv));
-   DUK_ASSERT(DUK_TVAL_IS_DOUBLE(tv));
-   d = DUK_TVAL_GET_DOUBLE(tv);
-   c = DUK_FPCLASSIFY((double) d);
-   if (c == DUK_FP_ZERO || c == DUK_FP_NAN) {
-   return 0;
-   } else {
-   return 1;
-   }
-   }
-   }
-   DUK_UNREACHABLE();
-}
-
-/*
- *  ToNumber()  (E5 Section 9.3)
- *
- *  Value to convert must be on stack top, and is popped before exit.
- *
- *  See: http://www.cs.indiana.edu/~burger/FP-Printing-PLDI96.pdf
- *   http://www.cs.indiana.edu/~burger/fp/index.html
- *
- *  Notes on the conversion:
- *
- *- There are specific requirements on the accuracy of the conversion
- *  through a "Mathematical Value" (MV), so this conversion is not
- *  trivial.
- *
- *- Quick rejects (e.g. based on first char) are difficult because
- *  the grammar allows leading and trailing white space.
- *
- *- Quick reject 

[28/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_duktape.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_duktape.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_duktape.c
deleted file mode 100644
index 79d6919..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_duktape.c
+++ /dev/null
@@ -1,321 +0,0 @@
-/*
- *  Duktape built-ins
- *
- *  Size optimization note: it might seem that vararg multipurpose functions
- *  like fin(), enc(), and dec() are not very size optimal, but using a single
- *  user-visible Ecmascript function saves a lot of run-time footprint; each
- *  Function instance takes >100 bytes.  Using a shared native helper and a
- *  'magic' value won't save much if there are multiple Function instances
- *  anyway.
- */
-
-#include "duk_internal.h"
-
-/* Raw helper to extract internal information / statistics about a value.
- * The return values are version specific and must not expose anything
- * that would lead to security issues (e.g. exposing compiled function
- * 'data' buffer might be an issue).  Currently only counts and sizes and
- * such are given so there should not be a security impact.
- */
-DUK_INTERNAL duk_ret_t duk_bi_duktape_object_info(duk_context *ctx) {
-   duk_hthread *thr = (duk_hthread *) ctx;
-   duk_tval *tv;
-   duk_heaphdr *h;
-   duk_int_t i, n;
-
-   DUK_UNREF(thr);
-
-   /* result array */
-   duk_push_array(ctx);  /* -> [ val arr ] */
-
-   /* type tag (public) */
-   duk_push_int(ctx, duk_get_type(ctx, 0));
-
-   /* address */
-   tv = duk_get_tval(ctx, 0);
-   DUK_ASSERT(tv != NULL);  /* because arg count is 1 */
-   if (DUK_TVAL_IS_HEAP_ALLOCATED(tv)) {
-   h = DUK_TVAL_GET_HEAPHDR(tv);
-   duk_push_pointer(ctx, (void *) h);
-   } else {
-   /* internal type tag */
-   duk_push_int(ctx, (duk_int_t) DUK_TVAL_GET_TAG(tv));
-   goto done;
-   }
-   DUK_ASSERT(h != NULL);
-
-   /* refcount */
-#ifdef DUK_USE_REFERENCE_COUNTING
-   duk_push_size_t(ctx, DUK_HEAPHDR_GET_REFCOUNT(h));
-#else
-   duk_push_undefined(ctx);
-#endif
-
-   /* heaphdr size and additional allocation size, followed by
-* type specific stuff (with varying value count)
-*/
-   switch ((duk_small_int_t) DUK_HEAPHDR_GET_TYPE(h)) {
-   case DUK_HTYPE_STRING: {
-   duk_hstring *h_str = (duk_hstring *) h;
-   duk_push_uint(ctx, (duk_uint_t) (sizeof(duk_hstring) + 
DUK_HSTRING_GET_BYTELEN(h_str) + 1));
-   break;
-   }
-   case DUK_HTYPE_OBJECT: {
-   duk_hobject *h_obj = (duk_hobject *) h;
-   duk_small_uint_t hdr_size;
-   if (DUK_HOBJECT_IS_COMPILEDFUNCTION(h_obj)) {
-   hdr_size = (duk_small_uint_t) 
sizeof(duk_hcompiledfunction);
-   } else if (DUK_HOBJECT_IS_NATIVEFUNCTION(h_obj)) {
-   hdr_size = (duk_small_uint_t) 
sizeof(duk_hnativefunction);
-   } else if (DUK_HOBJECT_IS_THREAD(h_obj)) {
-   hdr_size = (duk_small_uint_t) sizeof(duk_hthread);
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-   } else if (DUK_HOBJECT_IS_BUFFEROBJECT(h_obj)) {
-   hdr_size = (duk_small_uint_t) sizeof(duk_hbufferobject);
-#endif
-   } else {
-   hdr_size = (duk_small_uint_t) sizeof(duk_hobject);
-   }
-   duk_push_uint(ctx, (duk_uint_t) hdr_size);
-   duk_push_uint(ctx, (duk_uint_t) 
DUK_HOBJECT_P_ALLOC_SIZE(h_obj));
-   duk_push_uint(ctx, (duk_uint_t) DUK_HOBJECT_GET_ESIZE(h_obj));
-   /* Note: e_next indicates the number of gc-reachable entries
-* in the entry part, and also indicates the index where the
-* next new property would be inserted.  It does *not* indicate
-* the number of non-NULL keys present in the object.  That
-* value could be counted separately but requires a pass through
-* the key list.
-*/
-   duk_push_uint(ctx, (duk_uint_t) DUK_HOBJECT_GET_ENEXT(h_obj));
-   duk_push_uint(ctx, (duk_uint_t) DUK_HOBJECT_GET_ASIZE(h_obj));
-   duk_push_uint(ctx, (duk_uint_t) DUK_HOBJECT_GET_HSIZE(h_obj));
-   if (DUK_HOBJECT_IS_COMPILEDFUNCTION(h_obj)) {
-   duk_hbuffer *h_data = (duk_hbuffer *) 
DUK_HCOMPILEDFUNCTION_GET_DATA(thr->heap, (duk_hcompiledfunction *) h_obj);
-   if (h_data) {
-   duk_push_uint(ctx, (duk_uint_t) 
DUK_HBUFFER_GET_SIZE(h_data));
-   } 

[32/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
deleted file mode 100644
index 6e8ff3e..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
+++ /dev/null
@@ -1,4658 +0,0 @@
-/*
- *  API calls related to general value stack manipulation: resizing the value
- *  stack, pushing and popping values, type checking and reading values,
- *  coercing values, etc.
- *
- *  Also contains internal functions (such as duk_get_tval()), defined
- *  in duk_api_internal.h, with semantics similar to the public API.
- */
-
-/* XXX: repetition of stack pre-checks -> helper or macro or inline */
-/* XXX: shared api error strings, and perhaps even throw code for rare cases? 
*/
-
-#include "duk_internal.h"
-
-/*
- *  Forward declarations
- */
-
-DUK_LOCAL_DECL duk_idx_t duk__push_c_function_raw(duk_context *ctx, 
duk_c_function func, duk_idx_t nargs, duk_uint_t flags);
-
-/*
- *  Global state for working around missing variadic macros
- */
-
-#ifndef DUK_USE_VARIADIC_MACROS
-DUK_EXTERNAL const char *duk_api_global_filename = NULL;
-DUK_EXTERNAL duk_int_t duk_api_global_line = 0;
-#endif
-
-/*
- *  Misc helpers
- */
-
-/* Check that there's room to push one value. */
-#if defined(DUK_USE_VALSTACK_UNSAFE)
-/* Faster but value stack overruns are memory unsafe. */
-#define DUK__CHECK_SPACE() do { \
-   DUK_ASSERT(!(thr->valstack_top >= thr->valstack_end)); \
-   } while (0)
-#else
-#define DUK__CHECK_SPACE() do { \
-   if (DUK_UNLIKELY(thr->valstack_top >= thr->valstack_end)) { \
-   DUK_ERROR_API(thr, DUK_STR_PUSH_BEYOND_ALLOC_STACK); \
-   } \
-   } while (0)
-#endif
-
-DUK_LOCAL_DECL duk_heaphdr *duk__get_tagged_heaphdr_raw(duk_context *ctx, 
duk_idx_t index, duk_uint_t tag);
-
-DUK_LOCAL duk_int_t duk__api_coerce_d2i(duk_context *ctx, duk_idx_t index, 
duk_bool_t require) {
-   duk_hthread *thr;
-   duk_tval *tv;
-   duk_small_int_t c;
-   duk_double_t d;
-
-   thr = (duk_hthread *) ctx;
-
-   tv = duk_get_tval(ctx, index);
-   if (tv == NULL) {
-   goto error_notnumber;
-   }
-
-   /*
-*  Special cases like NaN and +/- Infinity are handled explicitly
-*  because a plain C coercion from double to int handles these cases
-*  in undesirable ways.  For instance, NaN may coerce to INT_MIN
-*  (not zero), and INT_MAX + 1 may coerce to INT_MIN (not INT_MAX).
-*
-*  This double-to-int coercion differs from ToInteger() because it
-*  has a finite range (ToInteger() allows e.g. +/- Infinity).  It
-*  also differs from ToInt32() because the INT_MIN/INT_MAX clamping
-*  depends on the size of the int type on the platform.  In particular,
-*  on platforms with a 64-bit int type, the full range is allowed.
-*/
-
-#if defined(DUK_USE_FASTINT)
-   if (DUK_TVAL_IS_FASTINT(tv)) {
-   duk_int64_t t = DUK_TVAL_GET_FASTINT(tv);
-#if (DUK_INT_MAX <= 0x7fffL)
-   /* Clamping only necessary for 32-bit ints. */
-   if (t < DUK_INT_MIN) {
-   t = DUK_INT_MIN;
-   } else if (t > DUK_INT_MAX) {
-   t = DUK_INT_MAX;
-   }
-#endif
-   return (duk_int_t) t;
-   }
-#endif
-
-   if (DUK_TVAL_IS_NUMBER(tv)) {
-   d = DUK_TVAL_GET_NUMBER(tv);
-   c = (duk_small_int_t) DUK_FPCLASSIFY(d);
-   if (c == DUK_FP_NAN) {
-   return 0;
-   } else if (d < (duk_double_t) DUK_INT_MIN) {
-   /* covers -Infinity */
-   return DUK_INT_MIN;
-   } else if (d > (duk_double_t) DUK_INT_MAX) {
-   /* covers +Infinity */
-   return DUK_INT_MAX;
-   } else {
-   /* coerce towards zero */
-   return (duk_int_t) d;
-   }
-   }
-
- error_notnumber:
-
-   if (require) {
-   DUK_ERROR_REQUIRE_TYPE_INDEX(thr, index, "number", 
DUK_STR_NOT_NUMBER);
-   /* not reachable */
-   }
-   return 0;
-}
-
-DUK_LOCAL duk_uint_t duk__api_coerce_d2ui(duk_context *ctx, duk_idx_t index, 
duk_bool_t require) {
-   duk_hthread *thr;
-   duk_tval *tv;
-   duk_small_int_t c;
-   duk_double_t d;
-
-   /* Same as above but for unsigned int range. */
-
-   thr = (duk_hthread *) ctx;
-
-   tv = duk_get_tval(ctx, index);
-   if (tv == NULL) {
-   goto error_notnumber;
-   }
-

[05/51] [abbrv] [partial] nifi-minifi-cpp git commit: MINIFI-293 Remove thirdparty dependencies no longer utilized inclusive of libxml2 and all of civetweb thirdparty

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_var.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_var.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_var.c
deleted file mode 100644
index ce76ec7..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_var.c
+++ /dev/null
@@ -1,1821 +0,0 @@
-/*
- *  Identifier access and function closure handling.
- *
- *  Provides the primitives for slow path identifier accesses: GETVAR,
- *  PUTVAR, DELVAR, etc.  The fast path, direct register accesses, should
- *  be used for most identifier accesses.  Consequently, these slow path
- *  primitives should be optimized for maximum compactness.
- *
- *  Ecmascript environment records (declarative and object) are represented
- *  as internal objects with control keys.  Environment records have a
- *  parent record ("outer environment reference") which is represented by
- *  the implicit prototype for technical reasons (in other words, it is a
- *  convenient field).  The prototype chain is not followed in the ordinary
- *  sense for variable lookups.
- *
- *  See identifier-handling.rst for more details on the identifier algorithms
- *  and the internal representation.  See function-objects.rst for details on
- *  what function templates and instances are expected to look like.
- *
- *  Care must be taken to avoid duk_tval pointer invalidation caused by
- *  e.g. value stack or object resizing.
- *
- *  TODO: properties for function instances could be initialized much more
- *  efficiently by creating a property allocation for a certain size and
- *  filling in keys and values directly (and INCREFing both with "bulk incref"
- *  primitives.
- *
- *  XXX: duk_hobject_getprop() and duk_hobject_putprop() calls are a bit
- *  awkward (especially because they follow the prototype chain); rework
- *  if "raw" own property helpers are added.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Local result type for duk__get_identifier_reference() lookup.
- */
-
-typedef struct {
-   duk_hobject *holder;  /* for object-bound identifiers */
-   duk_tval *value;  /* for register-bound and declarative env 
identifiers */
-   duk_int_t attrs;  /* property attributes for identifier 
(relevant if value != NULL) */
-   duk_tval *this_binding;
-   duk_hobject *env;
-} duk__id_lookup_result;
-
-/*
- *  Create a new function object based on a "template function" which contains
- *  compiled bytecode, constants, etc, but lacks a lexical environment.
- *
- *  Ecmascript requires that each created closure is a separate object, with
- *  its own set of editable properties.  However, structured property values
- *  (such as the formal arguments list and the variable map) are shared.
- *  Also the bytecode, constants, and inner functions are shared.
- *
- *  See E5 Section 13.2 for detailed requirements on the function objects;
- *  there are no similar requirements for function "templates" which are an
- *  implementation dependent internal feature.  Also see function-objects.rst
- *  for a discussion on the function instance properties provided by this
- *  implementation.
- *
- *  Notes:
- *
- *   * Order of internal properties should match frequency of use, since the
- * properties will be linearly scanned on lookup (functions usually don't
- * have enough properties to warrant a hash part).
- *
- *   * The created closure is independent of its template; they do share the
- * same 'data' buffer object, but the template object itself can be freed
- * even if the closure object remains reachable.
- */
-
-DUK_LOCAL void duk__inc_data_inner_refcounts(duk_hthread *thr, 
duk_hcompiledfunction *f) {
-   duk_tval *tv, *tv_end;
-   duk_hobject **funcs, **funcs_end;
-
-   /* If function creation fails due to out-of-memory, the data buffer
-* pointer may be NULL in some cases.  That's actually possible for
-* GC code, but shouldn't be possible here because the incomplete
-* function will be unwound from the value stack and never instantiated.
-*/
-   DUK_ASSERT(DUK_HCOMPILEDFUNCTION_GET_DATA(thr->heap, f) != NULL);
-   DUK_UNREF(thr);
-
-   tv = DUK_HCOMPILEDFUNCTION_GET_CONSTS_BASE(thr->heap, f);
-   tv_end = DUK_HCOMPILEDFUNCTION_GET_CONSTS_END(thr->heap, f);
-   while (tv < tv_end) {
-   DUK_TVAL_INCREF(thr, tv);
-   tv++;
-   }
-
-   funcs = DUK_HCOMPILEDFUNCTION_GET_FUNCS_BASE(thr->heap, f);
-   funcs_end = DUK_HCOMPILEDFUNCTION_GET_FUNCS_END(thr->heap, f);
-   while (funcs < funcs_end) {
-   DUK_HEAPHDR_INCREF(thr, (duk_heaphdr *) *funcs);
-   funcs++;
-   }
-}
-
-/* Push a new closure on the 

[jira] [Resolved] (MINIFI-294) Better handling of required vs. optional fields in config schema v1

2017-05-04 Thread Kevin Doran (JIRA)

 [ 
https://issues.apache.org/jira/browse/MINIFI-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Doran resolved MINIFI-294.

Resolution: Fixed

> Better handling of required vs. optional fields in config schema v1
> ---
>
> Key: MINIFI-294
> URL: https://issues.apache.org/jira/browse/MINIFI-294
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++, Documentation, Processing Configuration
>Reporter: Kevin Doran
>Assignee: Kevin Doran
>Priority: Critical
> Fix For: cpp-0.2.0
>
>
> This is a followup task to MINIFI-275. While the scope of MINIFI-275 was 
> minifi-cpp processing of components without id fields, which are optional in 
> config schema v1, this ticket covers all fields for all component types, 
> either doing string checks for required fields (with useful error messages if 
> absent) or graceful handling of missing optional fields.
> The Config Schema V1 in the minifi-java codebase will be used as a guide for 
> which fields to treat as required and which to treat as optional. [~aldrin] - 
> please confirm that is the correct assumption for minifi-cpp. The Java 
> implementation can be found at [1]. Specifically, in the Java code, required 
> fields are loaded using `getRequiredKeyAsType() and optional fields are 
> loaded using `getOptionalKeyAsType()`
> Also in scope for this ticket is to update the config.yml examples in the 
> minifi-cpp README.md file to make sure they are not missing required fields. 
> During testing, it was found that one example config.yml is missing source 
> name and destination name, which are required in config schema v1.
> [1] 
> https://github.com/apache/nifi-minifi/tree/master/minifi-commons/minifi-commons-schema/src/main/java/org/apache/nifi/minifi/commons/schema/v1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[4/9] nifi git commit: NIFI-3770-RC1 prepare release nifi-1.2.0-RC1

2017-05-04 Thread bbende
http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-extension-utils/nifi-processor-utils/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-extension-utils/nifi-processor-utils/pom.xml 
b/nifi-nar-bundles/nifi-extension-utils/nifi-processor-utils/pom.xml
index 711ddae..23eed6a 100644
--- a/nifi-nar-bundles/nifi-extension-utils/nifi-processor-utils/pom.xml
+++ b/nifi-nar-bundles/nifi-extension-utils/nifi-processor-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-extension-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 nifi-processor-utils
 jar

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
index dbb9318..2b5f613 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-avro-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
index 5b5ddaf..75d51ad 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
@@ -18,10 +18,10 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 nifi-hadoop-record-utils
-1.2.0-SNAPSHOT
+1.2.0
 jar
 
 

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
index 3a2ea85..8eb7d21 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-mock-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
index 3aa27a7..74d0929 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-standard-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
index fea0920..7ca5cd5 100644
--- a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
+++ b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-extension-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 pom
 nifi-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-extension-utils/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-extension-utils/pom.xml 
b/nifi-nar-bundles/nifi-extension-utils/pom.xml
index 4e1a0f5..db38475 100644
--- a/nifi-nar-bundles/nifi-extension-utils/pom.xml
+++ b/nifi-nar-bundles/nifi-extension-utils/pom.xml
@@ -18,7 +18,7 @@
 

[8/9] nifi git commit: NIFI-3770-RC1 prepare for next development iteration

2017-05-04 Thread bbende
http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
index 2b5f613..ce816e0 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-avro-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
index 75d51ad..01b4d16 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-hadoop-record-utils/pom.xml
@@ -18,10 +18,10 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0
+1.3.0-SNAPSHOT
 
 nifi-hadoop-record-utils
-1.2.0
+1.3.0-SNAPSHOT
 jar
 
 

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
index 8eb7d21..3340e81 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-mock-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-mock-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
index 74d0929..191b9db 100644
--- 
a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
+++ 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-record-utils
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-standard-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml 
b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
index 7ca5cd5..d33e400 100644
--- a/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
+++ b/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-extension-utils
-1.2.0
+1.3.0-SNAPSHOT
 
 pom
 nifi-record-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-extension-utils/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-extension-utils/pom.xml 
b/nifi-nar-bundles/nifi-extension-utils/pom.xml
index db38475..d8d20dd 100644
--- a/nifi-nar-bundles/nifi-extension-utils/pom.xml
+++ b/nifi-nar-bundles/nifi-extension-utils/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-nar-bundles
-1.2.0
+1.3.0-SNAPSHOT
 
 pom
 nifi-extension-utils

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-flume-bundle/nifi-flume-nar/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-flume-bundle/nifi-flume-nar/pom.xml 
b/nifi-nar-bundles/nifi-flume-bundle/nifi-flume-nar/pom.xml
index 59197d5..f920c6e 100644
--- a/nifi-nar-bundles/nifi-flume-bundle/nifi-flume-nar/pom.xml
+++ b/nifi-nar-bundles/nifi-flume-bundle/nifi-flume-nar/pom.xml
@@ -18,10 +18,10 @@
 
 org.apache.nifi
 

[3/9] nifi git commit: NIFI-3770-RC1 prepare release nifi-1.2.0-RC1

2017-05-04 Thread bbende
http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-nar/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-nar/pom.xml 
b/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-nar/pom.xml
index 71b7157..9e83488 100644
--- a/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-nar/pom.xml
+++ b/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-nar/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-kite-bundle
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-kite-nar

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/pom.xml 
b/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/pom.xml
index 74289fd..02d69cf 100644
--- a/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/pom.xml
+++ b/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-kite-bundle
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-kite-processors

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-kite-bundle/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-kite-bundle/pom.xml 
b/nifi-nar-bundles/nifi-kite-bundle/pom.xml
index a7b5bee..1019d2b 100644
--- a/nifi-nar-bundles/nifi-kite-bundle/pom.xml
+++ b/nifi-nar-bundles/nifi-kite-bundle/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-nar-bundles
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-kite-bundle
@@ -36,7 +36,7 @@
 
 org.apache.nifi
 nifi-kite-processors
-1.2.0-SNAPSHOT
+1.2.0
 
 
 

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-language-translation-bundle/nifi-language-translation-nar/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-language-translation-bundle/nifi-language-translation-nar/pom.xml
 
b/nifi-nar-bundles/nifi-language-translation-bundle/nifi-language-translation-nar/pom.xml
index b213905..f5f7683 100644
--- 
a/nifi-nar-bundles/nifi-language-translation-bundle/nifi-language-translation-nar/pom.xml
+++ 
b/nifi-nar-bundles/nifi-language-translation-bundle/nifi-language-translation-nar/pom.xml
@@ -19,7 +19,7 @@
 
 org.apache.nifi
 nifi-language-translation-bundle
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-language-translation-nar
@@ -33,7 +33,7 @@
 
 org.apache.nifi
 nifi-yandex-processors
-1.2.0-SNAPSHOT
+1.2.0
 
 
 

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
 
b/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
index 309876a..26d0ebd 100644
--- 
a/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
+++ 
b/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
@@ -19,7 +19,7 @@
 
 org.apache.nifi
 nifi-language-translation-bundle
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-yandex-processors

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml 
b/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
index d5e1498..b94f4ea 100644
--- a/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
+++ b/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
@@ -19,7 +19,7 @@
 
 org.apache.nifi
 nifi-nar-bundles
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-language-translation-bundle

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
 
b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
index c5f7811..ae4aae1 100644
--- 
a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
+++ 
b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
@@ -18,7 +18,7 @@
 
 

[7/9] nifi git commit: NIFI-3770-RC1 prepare for next development iteration

2017-05-04 Thread bbende
http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
 
b/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
index 26d0ebd..7aad0cb 100644
--- 
a/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
+++ 
b/nifi-nar-bundles/nifi-language-translation-bundle/nifi-yandex-processors/pom.xml
@@ -19,7 +19,7 @@
 
 org.apache.nifi
 nifi-language-translation-bundle
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-yandex-processors

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml 
b/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
index b94f4ea..34ce03b 100644
--- a/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
+++ b/nifi-nar-bundles/nifi-language-translation-bundle/pom.xml
@@ -19,7 +19,7 @@
 
 org.apache.nifi
 nifi-nar-bundles
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-language-translation-bundle

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
 
b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
index ae4aae1..471acb5 100644
--- 
a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
+++ 
b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers-nar/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-ldap-iaa-providers-bundle
-1.2.0
+1.3.0-SNAPSHOT
 
 nifi-ldap-iaa-providers-nar
 nar

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/pom.xml
 
b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/pom.xml
index 4a5b979..1a141dd 100644
--- 
a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/pom.xml
+++ 
b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/nifi-ldap-iaa-providers/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-ldap-iaa-providers-bundle
-1.2.0
+1.3.0-SNAPSHOT
 
 nifi-ldap-iaa-providers
 jar

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/pom.xml
--
diff --git a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/pom.xml 
b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/pom.xml
index 0713e53..110d74e 100644
--- a/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/pom.xml
+++ b/nifi-nar-bundles/nifi-ldap-iaa-providers-bundle/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-nar-bundles
-1.2.0
+1.3.0-SNAPSHOT
 
 nifi-ldap-iaa-providers-bundle
 pom
@@ -31,7 +31,7 @@
 
 org.apache.nifi
 nifi-ldap-iaa-providers
-1.2.0
+1.3.0-SNAPSHOT
 
 
 

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-lumberjack-bundle/nifi-lumberjack-nar/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-lumberjack-bundle/nifi-lumberjack-nar/pom.xml 
b/nifi-nar-bundles/nifi-lumberjack-bundle/nifi-lumberjack-nar/pom.xml
index b9a4e35..c10add9 100644
--- a/nifi-nar-bundles/nifi-lumberjack-bundle/nifi-lumberjack-nar/pom.xml
+++ b/nifi-nar-bundles/nifi-lumberjack-bundle/nifi-lumberjack-nar/pom.xml
@@ -19,18 +19,18 @@
 
 org.apache.nifi
 nifi-lumberjack-bundle
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-lumberjack-nar
-1.2.0
+1.3.0-SNAPSHOT
 nar
 
 
 
 org.apache.nifi
 nifi-lumberjack-processors
-1.2.0
+1.3.0-SNAPSHOT
 
 
 org.apache.nifi

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-lumberjack-bundle/nifi-lumberjack-processors/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-lumberjack-bundle/nifi-lumberjack-processors/pom.xml 

[5/9] nifi git commit: NIFI-3770-RC1 prepare release nifi-1.2.0-RC1

2017-05-04 Thread bbende
NIFI-3770-RC1 prepare release nifi-1.2.0-RC1


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/243ed742
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/243ed742
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/243ed742

Branch: refs/heads/NIFI-3770-RC1
Commit: 243ed742baddd98d8dcbb9752e07980b04ae2b89
Parents: d9410d6
Author: Bryan Bende 
Authored: Thu May 4 14:10:57 2017 -0400
Committer: Bryan Bende 
Committed: Thu May 4 14:10:57 2017 -0400

--
 nifi-api/pom.xml|   2 +-
 nifi-assembly/pom.xml   |   5 +-
 nifi-bootstrap/pom.xml  |   2 +-
 nifi-commons/nifi-data-provenance-utils/pom.xml |   2 +-
 nifi-commons/nifi-expression-language/pom.xml   |   2 +-
 nifi-commons/nifi-flowfile-packager/pom.xml |   2 +-
 nifi-commons/nifi-hl7-query-language/pom.xml|   2 +-
 nifi-commons/nifi-logging-utils/pom.xml |   2 +-
 nifi-commons/nifi-properties/pom.xml|   2 +-
 nifi-commons/nifi-record/pom.xml|   2 +-
 nifi-commons/nifi-schema-utils/pom.xml  |   2 +-
 nifi-commons/nifi-security-utils/pom.xml|   2 +-
 nifi-commons/nifi-site-to-site-client/pom.xml   |   4 +-
 nifi-commons/nifi-socket-utils/pom.xml  |   2 +-
 nifi-commons/nifi-utils/pom.xml |   4 +-
 nifi-commons/nifi-web-utils/pom.xml |   2 +-
 nifi-commons/nifi-write-ahead-log/pom.xml   |   2 +-
 nifi-commons/pom.xml|   2 +-
 nifi-docker/pom.xml |   4 +-
 nifi-docs/pom.xml   |   2 +-
 .../nifi-nifi-example-nar/pom.xml   |   2 +-
 .../nifi-nifi-example-processors/pom.xml|   2 +-
 nifi-external/nifi-example-bundle/pom.xml   |   4 +-
 nifi-external/nifi-spark-receiver/pom.xml   |   2 +-
 nifi-external/nifi-storm-spout/pom.xml  |   2 +-
 nifi-external/pom.xml   |   2 +-
 nifi-framework-api/pom.xml  |   2 +-
 .../nifi-processor-bundle-archetype/pom.xml |   2 +-
 .../nifi-service-bundle-archetype/pom.xml   |   2 +-
 nifi-maven-archetypes/pom.xml   |   2 +-
 nifi-mock/pom.xml   |   2 +-
 .../nifi-ambari-bundle/nifi-ambari-nar/pom.xml  |   4 +-
 .../nifi-ambari-reporting-task/pom.xml  |   2 +-
 nifi-nar-bundles/nifi-ambari-bundle/pom.xml |   2 +-
 .../nifi-amqp-bundle/nifi-amqp-nar/pom.xml  |   4 +-
 .../nifi-amqp-processors/pom.xml|   2 +-
 nifi-nar-bundles/nifi-amqp-bundle/pom.xml   |   6 +-
 .../nifi-avro-bundle/nifi-avro-nar/pom.xml  |   6 +-
 .../nifi-avro-processors/pom.xml|   2 +-
 nifi-nar-bundles/nifi-avro-bundle/pom.xml   |   4 +-
 .../nifi-aws-bundle/nifi-aws-nar/pom.xml|   4 +-
 .../nifi-aws-bundle/nifi-aws-processors/pom.xml |   2 +-
 nifi-nar-bundles/nifi-aws-bundle/pom.xml|   2 +-
 .../nifi-azure-bundle/nifi-azure-nar/pom.xml|   4 +-
 .../nifi-azure-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-azure-bundle/pom.xml  |   2 +-
 .../nifi-beats-bundle/nifi-beats-nar/pom.xml|   6 +-
 .../nifi-beats-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-beats-bundle/pom.xml  |   4 +-
 .../nifi-cassandra-nar/pom.xml  |   2 +-
 .../nifi-cassandra-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-cassandra-bundle/pom.xml  |   4 +-
 .../nifi-ccda-bundle/nifi-ccda-nar/pom.xml  |   2 +-
 .../nifi-ccda-processors/pom.xml|   2 +-
 nifi-nar-bundles/nifi-ccda-bundle/pom.xml   |   4 +-
 nifi-nar-bundles/nifi-cdc/nifi-cdc-api/pom.xml  |   2 +-
 .../nifi-cdc-mysql-nar/pom.xml  |   2 +-
 .../nifi-cdc-mysql-processors/pom.xml   |   6 +-
 .../nifi-cdc/nifi-cdc-mysql-bundle/pom.xml  |   4 +-
 nifi-nar-bundles/nifi-cdc/pom.xml   |   2 +-
 .../nifi-couchbase-nar/pom.xml  |   6 +-
 .../nifi-couchbase-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-couchbase-bundle/pom.xml  |   4 +-
 .../nifi-cybersecurity-nar/pom.xml  |   6 +-
 .../nifi-cybersecurity-processors/pom.xml   |   2 +-
 .../nifi-cybersecurity-bundle/pom.xml   |   4 +-
 .../nifi-datadog-nar/pom.xml|   2 +-
 .../nifi-datadog-reporting-task/pom.xml |   2 +-
 nifi-nar-bundles/nifi-datadog-bundle/pom.xml|   4 +-
 .../nifi-elasticsearch-5-nar/pom.xml|   2 +-
 .../nifi-elasticsearch-5-processors/pom.xml |   2 +-
 .../nifi-elasticsearch-nar/pom.xml  |   2 +-
 .../nifi-elasticsearch-processors/pom.xml   |   2 +-
 .../nifi-elasticsearch-bundle/pom.xml   |   6 +-
 .../nifi-email-bundle/nifi-email-nar/pom.xml|   2 +-
 

[jira] [Commented] (MINIFI-294) Better handling of required vs. optional fields in config schema v1

2017-05-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997255#comment-15997255
 ] 

ASF GitHub Bot commented on MINIFI-294:
---

Github user asfgit closed the pull request at:

https://github.com/apache/nifi-minifi-cpp/pull/90


> Better handling of required vs. optional fields in config schema v1
> ---
>
> Key: MINIFI-294
> URL: https://issues.apache.org/jira/browse/MINIFI-294
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++, Documentation, Processing Configuration
>Reporter: Kevin Doran
>Assignee: Kevin Doran
>Priority: Critical
> Fix For: cpp-0.2.0
>
>
> This is a followup task to MINIFI-275. While the scope of MINIFI-275 was 
> minifi-cpp processing of components without id fields, which are optional in 
> config schema v1, this ticket covers all fields for all component types, 
> either doing string checks for required fields (with useful error messages if 
> absent) or graceful handling of missing optional fields.
> The Config Schema V1 in the minifi-java codebase will be used as a guide for 
> which fields to treat as required and which to treat as optional. [~aldrin] - 
> please confirm that is the correct assumption for minifi-cpp. The Java 
> implementation can be found at [1]. Specifically, in the Java code, required 
> fields are loaded using `getRequiredKeyAsType() and optional fields are 
> loaded using `getOptionalKeyAsType()`
> Also in scope for this ticket is to update the config.yml examples in the 
> minifi-cpp README.md file to make sure they are not missing required fields. 
> During testing, it was found that one example config.yml is missing source 
> name and destination name, which are required in config schema v1.
> [1] 
> https://github.com/apache/nifi-minifi/tree/master/minifi-commons/minifi-commons-schema/src/main/java/org/apache/nifi/minifi/commons/schema/v1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[6/9] nifi git commit: NIFI-3770-RC1 prepare for next development iteration

2017-05-04 Thread bbende
http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/pom.xml
index df3477e..b9ca9af 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/pom.xml
@@ -17,7 +17,7 @@
 
 org.apache.nifi
 nifi-standard-services
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-hwx-schema-registry-bundle

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-standard-services/nifi-load-distribution-service-api/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-load-distribution-service-api/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-load-distribution-service-api/pom.xml
index b2a7e06..22eba28 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-load-distribution-service-api/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-load-distribution-service-api/pom.xml
@@ -17,7 +17,7 @@
 
 org.apache.nifi
 nifi-standard-services
-1.2.0
+1.3.0-SNAPSHOT
 
 nifi-load-distribution-service-api
 jar

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-service-api/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-service-api/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-service-api/pom.xml
index cf383d5..5d73523 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-service-api/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-service-api/pom.xml
@@ -17,7 +17,7 @@
 
 org.apache.nifi
 nifi-standard-services
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-record-serialization-service-api

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services-nar/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services-nar/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services-nar/pom.xml
index 7f4774a..5c79119 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services-nar/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services-nar/pom.xml
@@ -17,7 +17,7 @@
 
 org.apache.nifi
 nifi-record-serialization-services-bundle
-1.2.0
+1.3.0-SNAPSHOT
 
 nifi-record-serialization-services-nar
 nar
@@ -34,7 +34,7 @@
 
 org.apache.nifi
 nifi-record-serialization-services
-1.2.0
+1.3.0-SNAPSHOT
 compile
 
 

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/pom.xml
index 79e2a74..1fdcaf7 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/pom.xml
@@ -13,7 +13,7 @@
 
 org.apache.nifi
 nifi-record-serialization-services-bundle
-1.2.0
+1.3.0-SNAPSHOT
 
 
 nifi-record-serialization-services

http://git-wip-us.apache.org/repos/asf/nifi/blob/3fd4916a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/pom.xml
index 

[2/9] nifi git commit: NIFI-3770-RC1 prepare release nifi-1.2.0-RC1

2017-05-04 Thread bbende
http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-api/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-api/pom.xml 
b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-api/pom.xml
index d6eeef6..47f418d 100644
--- a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-api/pom.xml
+++ b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-api/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-standard-services
-1.2.0-SNAPSHOT
+1.2.0
 
   
 nifi-http-context-map-api

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map-nar/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map-nar/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map-nar/pom.xml
index 2f5f68f..411a88c 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map-nar/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map-nar/pom.xml
@@ -17,7 +17,7 @@
 
 org.apache.nifi
 nifi-http-context-map-bundle
-1.2.0-SNAPSHOT
+1.2.0
 

 nifi-http-context-map-nar

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/pom.xml
index 989f90e..67b0e81 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/pom.xml
@@ -17,7 +17,7 @@
 
 org.apache.nifi
 nifi-http-context-map-bundle
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-http-context-map

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/pom.xml 
b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/pom.xml
index d6edbd3..fef46b5 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/pom.xml
@@ -17,7 +17,7 @@
 
 org.apache.nifi
 nifi-standard-services
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-http-context-map-bundle

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-nar/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-nar/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-nar/pom.xml
index 46d479d..da4edb9 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-nar/pom.xml
+++ 
b/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-nar/pom.xml
@@ -18,7 +18,7 @@
 
 org.apache.nifi
 nifi-hwx-schema-registry-bundle
-1.2.0-SNAPSHOT
+1.2.0
 
 
 nifi-hwx-schema-registry-nar
@@ -32,7 +32,7 @@
 
 org.apache.nifi
 nifi-hwx-schema-registry-service
-1.2.0-SNAPSHOT
+1.2.0
 
 
 

http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-service/pom.xml
--
diff --git 
a/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-service/pom.xml
 
b/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-service/pom.xml
index d740067..42a300e 100644
--- 
a/nifi-nar-bundles/nifi-standard-services/nifi-hwx-schema-registry-bundle/nifi-hwx-schema-registry-service/pom.xml
+++ 

[9/9] nifi git commit: NIFI-3770-RC1 prepare for next development iteration

2017-05-04 Thread bbende
NIFI-3770-RC1 prepare for next development iteration


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/3fd4916a
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/3fd4916a
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/3fd4916a

Branch: refs/heads/NIFI-3770-RC1
Commit: 3fd4916a30bdafb13edc150c4169555cc4814988
Parents: 243ed74
Author: Bryan Bende 
Authored: Thu May 4 14:11:12 2017 -0400
Committer: Bryan Bende 
Committed: Thu May 4 14:11:12 2017 -0400

--
 nifi-api/pom.xml|   2 +-
 nifi-assembly/pom.xml   |   2 +-
 nifi-bootstrap/pom.xml  |   2 +-
 nifi-commons/nifi-data-provenance-utils/pom.xml |   2 +-
 nifi-commons/nifi-expression-language/pom.xml   |   2 +-
 nifi-commons/nifi-flowfile-packager/pom.xml |   2 +-
 nifi-commons/nifi-hl7-query-language/pom.xml|   2 +-
 nifi-commons/nifi-logging-utils/pom.xml |   2 +-
 nifi-commons/nifi-properties/pom.xml|   2 +-
 nifi-commons/nifi-record/pom.xml|   2 +-
 nifi-commons/nifi-schema-utils/pom.xml  |   2 +-
 nifi-commons/nifi-security-utils/pom.xml|   2 +-
 nifi-commons/nifi-site-to-site-client/pom.xml   |   4 +-
 nifi-commons/nifi-socket-utils/pom.xml  |   2 +-
 nifi-commons/nifi-utils/pom.xml |   4 +-
 nifi-commons/nifi-web-utils/pom.xml |   2 +-
 nifi-commons/nifi-write-ahead-log/pom.xml   |   2 +-
 nifi-commons/pom.xml|   2 +-
 nifi-docker/pom.xml |   4 +-
 nifi-docs/pom.xml   |   2 +-
 .../nifi-nifi-example-nar/pom.xml   |   2 +-
 .../nifi-nifi-example-processors/pom.xml|   2 +-
 nifi-external/nifi-example-bundle/pom.xml   |   4 +-
 nifi-external/nifi-spark-receiver/pom.xml   |   2 +-
 nifi-external/nifi-storm-spout/pom.xml  |   2 +-
 nifi-external/pom.xml   |   2 +-
 nifi-framework-api/pom.xml  |   2 +-
 .../nifi-processor-bundle-archetype/pom.xml |   2 +-
 .../nifi-service-bundle-archetype/pom.xml   |   2 +-
 nifi-maven-archetypes/pom.xml   |   2 +-
 nifi-mock/pom.xml   |   2 +-
 .../nifi-ambari-bundle/nifi-ambari-nar/pom.xml  |   4 +-
 .../nifi-ambari-reporting-task/pom.xml  |   2 +-
 nifi-nar-bundles/nifi-ambari-bundle/pom.xml |   2 +-
 .../nifi-amqp-bundle/nifi-amqp-nar/pom.xml  |   4 +-
 .../nifi-amqp-processors/pom.xml|   2 +-
 nifi-nar-bundles/nifi-amqp-bundle/pom.xml   |   6 +-
 .../nifi-avro-bundle/nifi-avro-nar/pom.xml  |   6 +-
 .../nifi-avro-processors/pom.xml|   2 +-
 nifi-nar-bundles/nifi-avro-bundle/pom.xml   |   4 +-
 .../nifi-aws-bundle/nifi-aws-nar/pom.xml|   4 +-
 .../nifi-aws-bundle/nifi-aws-processors/pom.xml |   2 +-
 nifi-nar-bundles/nifi-aws-bundle/pom.xml|   2 +-
 .../nifi-azure-bundle/nifi-azure-nar/pom.xml|   4 +-
 .../nifi-azure-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-azure-bundle/pom.xml  |   2 +-
 .../nifi-beats-bundle/nifi-beats-nar/pom.xml|   6 +-
 .../nifi-beats-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-beats-bundle/pom.xml  |   4 +-
 .../nifi-cassandra-nar/pom.xml  |   2 +-
 .../nifi-cassandra-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-cassandra-bundle/pom.xml  |   4 +-
 .../nifi-ccda-bundle/nifi-ccda-nar/pom.xml  |   2 +-
 .../nifi-ccda-processors/pom.xml|   2 +-
 nifi-nar-bundles/nifi-ccda-bundle/pom.xml   |   4 +-
 nifi-nar-bundles/nifi-cdc/nifi-cdc-api/pom.xml  |   2 +-
 .../nifi-cdc-mysql-nar/pom.xml  |   2 +-
 .../nifi-cdc-mysql-processors/pom.xml   |   6 +-
 .../nifi-cdc/nifi-cdc-mysql-bundle/pom.xml  |   4 +-
 nifi-nar-bundles/nifi-cdc/pom.xml   |   2 +-
 .../nifi-couchbase-nar/pom.xml  |   6 +-
 .../nifi-couchbase-processors/pom.xml   |   2 +-
 nifi-nar-bundles/nifi-couchbase-bundle/pom.xml  |   4 +-
 .../nifi-cybersecurity-nar/pom.xml  |   6 +-
 .../nifi-cybersecurity-processors/pom.xml   |   2 +-
 .../nifi-cybersecurity-bundle/pom.xml   |   4 +-
 .../nifi-datadog-nar/pom.xml|   2 +-
 .../nifi-datadog-reporting-task/pom.xml |   2 +-
 nifi-nar-bundles/nifi-datadog-bundle/pom.xml|   4 +-
 .../nifi-elasticsearch-5-nar/pom.xml|   2 +-
 .../nifi-elasticsearch-5-processors/pom.xml |   2 +-
 .../nifi-elasticsearch-nar/pom.xml  |   2 +-
 .../nifi-elasticsearch-processors/pom.xml   |   2 +-
 .../nifi-elasticsearch-bundle/pom.xml   |   6 +-
 .../nifi-email-bundle/nifi-email-nar/pom.xml|   2 +-
 

[1/9] nifi git commit: NIFI-3770-RC1 prepare release nifi-1.2.0-RC1

2017-05-04 Thread bbende
Repository: nifi
Updated Branches:
  refs/heads/NIFI-3770-RC1 [created] 3fd4916a3


http://git-wip-us.apache.org/repos/asf/nifi/blob/243ed742/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 9ddaf53..459c5cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,8 +9,7 @@
 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
CONDITIONS 
 OF ANY KIND, either express or implied. See the License for the specific 
 language governing permissions and limitations under the License. -->
-http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>
+http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>
 4.0.0
 
 org.apache
@@ -20,7 +19,7 @@
 
 org.apache.nifi
 nifi
-1.2.0-SNAPSHOT
+1.2.0
 pom
 Apache NiFi is an easy to use, powerful, and reliable system 
to process and distribute data.
 
@@ -78,7 +77,7 @@
 scm:git:git://git.apache.org/nifi.git
 
scm:git:https://git-wip-us.apache.org/repos/asf/nifi.git
 https://git-wip-us.apache.org/repos/asf?p=nifi.git
-HEAD
+nifi-1.2.0-RC1
 
 
 JIRA
@@ -844,112 +843,112 @@
 
 org.apache.nifi
 nifi-api
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-framework-api
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-site-to-site-client
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-web-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-expression-language
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-flowfile-repo-serialization
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-repository-models
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-custom-ui-utilities
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-ui-extension
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-flowfile-packager
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-socket-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-data-provenance-utils
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-runtime
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-bootstrap
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-toolkit-tls
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-toolkit-encrypt-config
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-toolkit-s2s
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-toolkit-zookeeper-migrator
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-toolkit-admin
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-registry-service
-1.2.0-SNAPSHOT
+1.2.0
 
 
 org.apache.nifi
 nifi-resources
-1.2.0-SNAPSHOT
+1.2.0
 resources
 runtime
 zip
@@ -957,7 +956,7 @@
 
 org.apache.nifi
 nifi-docs
- 

[jira] [Commented] (MINIFI-275) Configuration without IDs for components causes exceptions

2017-05-04 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997254#comment-15997254
 ] 

ASF subversion and git services commented on MINIFI-275:


Commit 153b25b2ed9f42380548e261277a2c545278c8bc in nifi-minifi-cpp's branch 
refs/heads/master from [~kdoran]
[ https://git-wip-us.apache.org/repos/asf?p=nifi-minifi-cpp.git;h=153b25b ]

MINIFI-294 Required vs. optional fields in config YAML

Long description of the changes in this commit can be found in the
JIRA for MINFI-294. Basically, better checks are now in place and
in the case of missing required fields, better error messaging.
This builds upon improvements made in MINIFI-275, and also
updates the config.yml exampe in the README.md file to match the
code.

This closes #90.

Signed-off-by: Aldrin Piri 


> Configuration without IDs for components causes exceptions
> --
>
> Key: MINIFI-275
> URL: https://issues.apache.org/jira/browse/MINIFI-275
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++, Processing Configuration
>Reporter: Aldrin Piri
>Assignee: Kevin Doran
>Priority: Blocker
> Fix For: cpp-0.2.0
>
> Attachments: config.TEST.yml
>
>
> One of the changes to how components are handled in C++ introduced a defect 
> into the original construct over the version 1 schema of the YAML.  
> The absence of this ID causes a YAML exception.  
> We should provide handling to support configurations how they were created 
> originally, possibly providing a default/generated ID where one isn't 
> specified, and start laying the foundation for versioned schemas as provided 
> in our Java implementation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MINIFI-294) Better handling of required vs. optional fields in config schema v1

2017-05-04 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/MINIFI-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997253#comment-15997253
 ] 

ASF subversion and git services commented on MINIFI-294:


Commit 153b25b2ed9f42380548e261277a2c545278c8bc in nifi-minifi-cpp's branch 
refs/heads/master from [~kdoran]
[ https://git-wip-us.apache.org/repos/asf?p=nifi-minifi-cpp.git;h=153b25b ]

MINIFI-294 Required vs. optional fields in config YAML

Long description of the changes in this commit can be found in the
JIRA for MINFI-294. Basically, better checks are now in place and
in the case of missing required fields, better error messaging.
This builds upon improvements made in MINIFI-275, and also
updates the config.yml exampe in the README.md file to match the
code.

This closes #90.

Signed-off-by: Aldrin Piri 


> Better handling of required vs. optional fields in config schema v1
> ---
>
> Key: MINIFI-294
> URL: https://issues.apache.org/jira/browse/MINIFI-294
> Project: Apache NiFi MiNiFi
>  Issue Type: Bug
>  Components: C++, Documentation, Processing Configuration
>Reporter: Kevin Doran
>Assignee: Kevin Doran
>Priority: Critical
> Fix For: cpp-0.2.0
>
>
> This is a followup task to MINIFI-275. While the scope of MINIFI-275 was 
> minifi-cpp processing of components without id fields, which are optional in 
> config schema v1, this ticket covers all fields for all component types, 
> either doing string checks for required fields (with useful error messages if 
> absent) or graceful handling of missing optional fields.
> The Config Schema V1 in the minifi-java codebase will be used as a guide for 
> which fields to treat as required and which to treat as optional. [~aldrin] - 
> please confirm that is the correct assumption for minifi-cpp. The Java 
> implementation can be found at [1]. Specifically, in the Java code, required 
> fields are loaded using `getRequiredKeyAsType() and optional fields are 
> loaded using `getOptionalKeyAsType()`
> Also in scope for this ticket is to update the config.yml examples in the 
> minifi-cpp README.md file to make sure they are not missing required fields. 
> During testing, it was found that one example config.yml is missing source 
> name and destination name, which are required in config schema v1.
> [1] 
> https://github.com/apache/nifi-minifi/tree/master/minifi-commons/minifi-commons-schema/src/main/java/org/apache/nifi/minifi/commons/schema/v1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[40/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
deleted file mode 100644
index 915faa9..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/sandbox/sandbox.c
+++ /dev/null
@@ -1,252 +0,0 @@
-/*
- *  Sandboxing example
- *
- *  Uses custom memory allocation functions which keep track of total amount
- *  of memory allocated, imposing a maximum total allocation size.
- */
-
-#include 
-#include 
-#include "duktape.h"
-
-/*
- *  Memory allocator which backs to standard library memory functions but
- *  keeps a small header to track current allocation size.
- *
- *  Many other sandbox allocation models are useful, e.g. preallocated pools.
- */
-
-typedef struct {
-   /* The double value in the union is there to ensure alignment is
-* good for IEEE doubles too.  In many 32-bit environments 4 bytes
-* would be sufficiently aligned and the double value is unnecessary.
-*/
-   union {
-   size_t sz;
-   double d;
-   } u;
-} alloc_hdr;
-
-static size_t total_allocated = 0;
-static size_t max_allocated = 256 * 1024;  /* 256kB sandbox */
-
-static void sandbox_dump_memstate(void) {
-#if 0
-   fprintf(stderr, "Total allocated: %ld\n", (long) total_allocated);
-   fflush(stderr);
-#endif
-}
-
-static void *sandbox_alloc(void *udata, duk_size_t size) {
-   alloc_hdr *hdr;
-
-   (void) udata;  /* Suppress warning. */
-
-   if (size == 0) {
-   return NULL;
-   }
-
-   if (total_allocated + size > max_allocated) {
-   fprintf(stderr, "Sandbox maximum allocation size reached, %ld 
requested in sandbox_alloc\n",
-   (long) size);
-   fflush(stderr);
-   return NULL;
-   }
-
-   hdr = (alloc_hdr *) malloc(size + sizeof(alloc_hdr));
-   if (!hdr) {
-   return NULL;
-   }
-   hdr->u.sz = size;
-   total_allocated += size;
-   sandbox_dump_memstate();
-   return (void *) (hdr + 1);
-}
-
-static void *sandbox_realloc(void *udata, void *ptr, duk_size_t size) {
-   alloc_hdr *hdr;
-   size_t old_size;
-   void *t;
-
-   (void) udata;  /* Suppress warning. */
-
-   /* Handle the ptr-NULL vs. size-zero cases explicitly to minimize
-* platform assumptions.  You can get away with much less in specific
-* well-behaving environments.
-*/
-
-   if (ptr) {
-   hdr = (alloc_hdr *) (((char *) ptr) - sizeof(alloc_hdr));
-   old_size = hdr->u.sz;
-
-   if (size == 0) {
-   total_allocated -= old_size;
-   free((void *) hdr);
-   sandbox_dump_memstate();
-   return NULL;
-   } else {
-   if (total_allocated - old_size + size > max_allocated) {
-   fprintf(stderr, "Sandbox maximum allocation 
size reached, %ld requested in sandbox_realloc\n",
-   (long) size);
-   fflush(stderr);
-   return NULL;
-   }
-
-   t = realloc((void *) hdr, size + sizeof(alloc_hdr));
-   if (!t) {
-   return NULL;
-   }
-   hdr = (alloc_hdr *) t;
-   total_allocated -= old_size;
-   total_allocated += size;
-   hdr->u.sz = size;
-   sandbox_dump_memstate();
-   return (void *) (hdr + 1);
-   }
-   } else {
-   if (size == 0) {
-   return NULL;
-   } else {
-   if (total_allocated + size > max_allocated) {
-   fprintf(stderr, "Sandbox maximum allocation 
size reached, %ld requested in sandbox_realloc\n",
-   (long) size);
-   fflush(stderr);
-   return NULL;
-   }
-
-   hdr = (alloc_hdr *) malloc(size + sizeof(alloc_hdr));
-   if (!hdr) {
-   return NULL;
-   }
-   hdr->u.sz = size;
-   total_allocated += size;
-   sandbox_dump_memstate();
-   return (void *) (hdr + 1);
-   }
-   }
-}
-
-static void sandbox_free(void *udata, void *ptr) {
-   alloc_hdr *hdr;

[46/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js
deleted file mode 100644
index ab0623f..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/debugger/duk_debug.js
+++ /dev/null
@@ -1,2473 +0,0 @@
-/*
- *  Minimal debug web console for Duktape command line tool
- *
- *  See debugger/README.rst.
- *
- *  The web UI socket.io communication can easily become a bottleneck and
- *  it's important to ensure that the web UI remains responsive.  Basic rate
- *  limiting mechanisms (token buckets, suppressing identical messages, etc)
- *  are used here now.  Ideally the web UI would pull data on its own terms
- *  which would provide natural rate limiting.
- *
- *  Promises are used to structure callback chains.
- *
- *  https://github.com/petkaantonov/bluebird
- *  https://github.com/petkaantonov/bluebird/blob/master/API.md
- *  https://github.com/petkaantonov/bluebird/wiki/Promise-anti-patterns
- */
-
-var Promise = require('bluebird');
-var events = require('events');
-var stream = require('stream');
-var path = require('path');
-var fs = require('fs');
-var net = require('net');
-var byline = require('byline');
-var util = require('util');
-var readline = require('readline');
-var sprintf = require('sprintf').sprintf;
-var utf8 = require('utf8');
-var wrench = require('wrench');  // https://github.com/ryanmcgrath/wrench-js
-var yaml = require('yamljs');
-
-// Command line options (defaults here, overwritten if necessary)
-var optTargetHost = '127.0.0.1';
-var optTargetPort = 9091;
-var optHttpPort = 9092;
-var optJsonProxyPort = 9093;
-var optJsonProxy = false;
-var optSourceSearchDirs = [ '../tests/ecmascript' ];
-var optDumpDebugRead = null;
-var optDumpDebugWrite = null;
-var optDumpDebugPretty = null;
-var optLogMessages = false;
-
-// Constants
-var UI_MESSAGE_CLIPLEN = 128;
-var LOCALS_CLIPLEN = 64;
-var EVAL_CLIPLEN = 4096;
-var GETVAR_CLIPLEN = 4096;
-
-// Commands initiated by Duktape
-var CMD_STATUS = 0x01;
-var CMD_PRINT = 0x02;
-var CMD_ALERT = 0x03;
-var CMD_LOG = 0x04;
-var CMD_THROW = 0x05;
-var CMD_DETACHING = 0x06;
-
-// Commands initiated by the debug client (= us)
-var CMD_BASICINFO = 0x10;
-var CMD_TRIGGERSTATUS = 0x11;
-var CMD_PAUSE = 0x12;
-var CMD_RESUME = 0x13;
-var CMD_STEPINTO = 0x14;
-var CMD_STEPOVER = 0x15;
-var CMD_STEPOUT = 0x16;
-var CMD_LISTBREAK = 0x17;
-var CMD_ADDBREAK = 0x18;
-var CMD_DELBREAK = 0x19;
-var CMD_GETVAR = 0x1a;
-var CMD_PUTVAR = 0x1b;
-var CMD_GETCALLSTACK = 0x1c;
-var CMD_GETLOCALS = 0x1d;
-var CMD_EVAL = 0x1e;
-var CMD_DETACH = 0x1f;
-var CMD_DUMPHEAP = 0x20;
-var CMD_GETBYTECODE = 0x21;
-
-// Errors
-var ERR_UNKNOWN = 0x00;
-var ERR_UNSUPPORTED = 0x01;
-var ERR_TOOMANY = 0x02;
-var ERR_NOTFOUND = 0x03;
-
-// Marker objects for special protocol values
-var DVAL_EOM = { type: 'eom' };
-var DVAL_REQ = { type: 'req' };
-var DVAL_REP = { type: 'rep' };
-var DVAL_ERR = { type: 'err' };
-var DVAL_NFY = { type: 'nfy' };
-
-// String map for commands (debug dumping).  A single map works (instead of
-// separate maps for each direction) because command numbers don't currently
-// overlap.  So merge the YAML metadata.
-var debugCommandMeta = yaml.load('duk_debugcommands.yaml');
-var debugCommandNames = [];  // list of command names, merged client/target
-debugCommandMeta.target_commands.forEach(function (k, i) {
-debugCommandNames[i] = k;
-});
-debugCommandMeta.client_commands.forEach(function (k, i) {  // override
-debugCommandNames[i] = k;
-});
-var debugCommandNumbers = {};  // map from (merged) command name to number
-debugCommandNames.forEach(function (k, i) {
-debugCommandNumbers[k] = i;
-});
-
-// Duktape heaphdr type constants, must match C headers
-var DUK_HTYPE_STRING = 1;
-var DUK_HTYPE_OBJECT = 2;
-var DUK_HTYPE_BUFFER = 3;
-
-// Duktape internal class numbers, must match C headers
-var dukClassNameMeta = yaml.load('duk_classnames.yaml');
-var dukClassNames = dukClassNameMeta.class_names;
-
-// Bytecode opcode/extraop metadata
-var dukOpcodes = yaml.load('duk_opcodes.yaml');
-if (dukOpcodes.opcodes.length != 64) {
-throw new Error('opcode metadata length incorrect');
-}
-if (dukOpcodes.extra.length != 256) {
-throw new Error('extraop metadata length incorrect');
-}
-
-/*
- *  Miscellaneous helpers
- */
-
-var nybbles = '0123456789abcdef';
-
-/* Convert a buffer into a string using Unicode codepoints U+...U+00FF.
- * This is the NodeJS 'binary' encoding, but since it's being deprecated,
- * reimplement it here.  We need to avoid parsing strings as e.g. UTF-8:
- * although Duktape strings are usually UTF-8/CESU-8 that's not always the
- * case, e.g. for internal strings.  Buffer 

[18/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
deleted file mode 100644
index 425ad33..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hbuffer_alloc.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- *  duk_hbuffer allocation and freeing.
- */
-
-#include "duk_internal.h"
-
-/* Allocate a new duk_hbuffer of a certain type and return a pointer to it
- * (NULL on error).  Write buffer data pointer to 'out_bufdata' (only if
- * allocation successful).
- */
-DUK_INTERNAL duk_hbuffer *duk_hbuffer_alloc(duk_heap *heap, duk_size_t size, 
duk_small_uint_t flags, void **out_bufdata) {
-   duk_hbuffer *res = NULL;
-   duk_size_t header_size;
-   duk_size_t alloc_size;
-
-   DUK_ASSERT(heap != NULL);
-   DUK_ASSERT(out_bufdata != NULL);
-
-   DUK_DDD(DUK_DDDPRINT("allocate hbuffer"));
-
-   /* Size sanity check.  Should not be necessary because caller is
-* required to check this, but we don't want to cause a segfault
-* if the size wraps either in duk_size_t computation or when
-* storing the size in a 16-bit field.
-*/
-   if (size > DUK_HBUFFER_MAX_BYTELEN) {
-   DUK_D(DUK_DPRINT("hbuffer alloc failed: size too large: %ld", 
(long) size));
-   return NULL;  /* no need to write 'out_bufdata' */
-   }
-
-   if (flags & DUK_BUF_FLAG_EXTERNAL) {
-   header_size = sizeof(duk_hbuffer_external);
-   alloc_size = sizeof(duk_hbuffer_external);
-   } else if (flags & DUK_BUF_FLAG_DYNAMIC) {
-   header_size = sizeof(duk_hbuffer_dynamic);
-   alloc_size = sizeof(duk_hbuffer_dynamic);
-   } else {
-   header_size = sizeof(duk_hbuffer_fixed);
-   alloc_size = sizeof(duk_hbuffer_fixed) + size;
-   DUK_ASSERT(alloc_size >= sizeof(duk_hbuffer_fixed));  /* no 
wrapping */
-   }
-
-   res = (duk_hbuffer *) DUK_ALLOC(heap, alloc_size);
-   if (!res) {
-   goto error;
-   }
-
-   /* zero everything unless requested not to do so */
-#if defined(DUK_USE_ZERO_BUFFER_DATA)
-   DUK_MEMZERO((void *) res,
-   (flags & DUK_BUF_FLAG_NOZERO) ? header_size : alloc_size);
-#else
-   DUK_MEMZERO((void *) res, header_size);
-#endif
-
-   if (flags & DUK_BUF_FLAG_EXTERNAL) {
-   duk_hbuffer_external *h;
-   h = (duk_hbuffer_external *) res;
-   DUK_UNREF(h);
-   *out_bufdata = NULL;
-#if defined(DUK_USE_EXPLICIT_NULL_INIT)
-#if defined(DUK_USE_HEAPPTR16)
-/* the compressed pointer is zeroed which maps to NULL, so nothing to do. */
-#else
-   DUK_HBUFFER_EXTERNAL_SET_DATA_PTR(heap, h, NULL);
-#endif
-#endif
-   DUK_ASSERT(DUK_HBUFFER_EXTERNAL_GET_DATA_PTR(heap, h) == NULL);
-   } else if (flags & DUK_BUF_FLAG_DYNAMIC) {
-   duk_hbuffer_dynamic *h = (duk_hbuffer_dynamic *) res;
-   void *ptr;
-
-   if (size > 0) {
-   DUK_ASSERT(!(flags & DUK_BUF_FLAG_EXTERNAL));  /* alloc 
external with size zero */
-   DUK_DDD(DUK_DDDPRINT("dynamic buffer with nonzero size, 
alloc actual buffer"));
-#ifdef DUK_USE_ZERO_BUFFER_DATA
-   ptr = DUK_ALLOC_ZEROED(heap, size);
-#else
-   ptr = DUK_ALLOC(heap, size);
-#endif
-   if (!ptr) {
-   /* Because size > 0, NULL check is correct */
-   goto error;
-   }
-   *out_bufdata = ptr;
-
-   DUK_HBUFFER_DYNAMIC_SET_DATA_PTR(heap, h, ptr);
-   } else {
-   *out_bufdata = NULL;
-#if defined(DUK_USE_EXPLICIT_NULL_INIT)
-#if defined(DUK_USE_HEAPPTR16)
-/* the compressed pointer is zeroed which maps to NULL, so nothing to do. */
-#else
-   DUK_HBUFFER_DYNAMIC_SET_DATA_PTR(heap, h, NULL);
-#endif
-#endif
-   DUK_ASSERT(DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(heap, h) == 
NULL);
-   }
-   } else {
-   *out_bufdata = (void *) ((duk_hbuffer_fixed *) res + 1);
-   }
-
-   DUK_HBUFFER_SET_SIZE(res, size);
-
-   DUK_HEAPHDR_SET_TYPE(>hdr, DUK_HTYPE_BUFFER);
-   if (flags & DUK_BUF_FLAG_DYNAMIC) {
-   DUK_HBUFFER_SET_DYNAMIC(res);
-   if (flags & DUK_BUF_FLAG_EXTERNAL) {
-   DUK_HBUFFER_SET_EXTERNAL(res);
-   }
-   } else {
-   DUK_ASSERT(!(flags & DUK_BUF_FLAG_EXTERNAL));
-   }
-

[14/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
deleted file mode 100644
index 8916577..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_misc.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- *  Misc support functions
- */
-
-#include "duk_internal.h"
-
-DUK_INTERNAL duk_bool_t duk_hobject_prototype_chain_contains(duk_hthread *thr, 
duk_hobject *h, duk_hobject *p, duk_bool_t ignore_loop) {
-   duk_uint_t sanity;
-
-   DUK_ASSERT(thr != NULL);
-
-   /* False if the object is NULL or the prototype 'p' is NULL.
-* In particular, false if both are NULL (don't compare equal).
-*/
-   if (h == NULL || p == NULL) {
-   return 0;
-   }
-
-   sanity = DUK_HOBJECT_PROTOTYPE_CHAIN_SANITY;
-   do {
-   if (h == p) {
-   return 1;
-   }
-
-   if (sanity-- == 0) {
-   if (ignore_loop) {
-   break;
-   } else {
-   DUK_ERROR_RANGE(thr, 
DUK_STR_PROTOTYPE_CHAIN_LIMIT);
-   }
-   }
-   h = DUK_HOBJECT_GET_PROTOTYPE(thr->heap, h);
-   } while (h);
-
-   return 0;
-}
-
-DUK_INTERNAL void duk_hobject_set_prototype_updref(duk_hthread *thr, 
duk_hobject *h, duk_hobject *p) {
-#ifdef DUK_USE_REFERENCE_COUNTING
-   duk_hobject *tmp;
-
-   DUK_ASSERT(h);
-   tmp = DUK_HOBJECT_GET_PROTOTYPE(thr->heap, h);
-   DUK_HOBJECT_SET_PROTOTYPE(thr->heap, h, p);
-   DUK_HOBJECT_INCREF_ALLOWNULL(thr, p);  /* avoid problems if p == 
h->prototype */
-   DUK_HOBJECT_DECREF_ALLOWNULL(thr, tmp);
-#else
-   DUK_ASSERT(h);
-   DUK_UNREF(thr);
-   DUK_HOBJECT_SET_PROTOTYPE(thr->heap, h, p);
-#endif
-}

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
deleted file mode 100644
index 07d3596..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_hobject_pc2line.c
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- *  Helpers for creating and querying pc2line debug data, which
- *  converts a bytecode program counter to a source line number.
- *
- *  The run-time pc2line data is bit-packed, and documented in:
- *
- *doc/function-objects.rst
- */
-
-#include "duk_internal.h"
-
-#if defined(DUK_USE_PC2LINE)
-
-/* Generate pc2line data for an instruction sequence, leaving a buffer on 
stack top. */
-DUK_INTERNAL void duk_hobject_pc2line_pack(duk_hthread *thr, 
duk_compiler_instr *instrs, duk_uint_fast32_t length) {
-   duk_context *ctx = (duk_context *) thr;
-   duk_hbuffer_dynamic *h_buf;
-   duk_bitencoder_ctx be_ctx_alloc;
-   duk_bitencoder_ctx *be_ctx = _ctx_alloc;
-   duk_uint32_t *hdr;
-   duk_size_t new_size;
-   duk_uint_fast32_t num_header_entries;
-   duk_uint_fast32_t curr_offset;
-   duk_int_fast32_t curr_line, next_line, diff_line;
-   duk_uint_fast32_t curr_pc;
-   duk_uint_fast32_t hdr_index;
-
-   DUK_ASSERT(length <= DUK_COMPILER_MAX_BYTECODE_LENGTH);
-
-   /* XXX: add proper spare handling to dynamic buffer, to minimize
-* reallocs; currently there is no spare at all.
-*/
-
-   num_header_entries = (length + DUK_PC2LINE_SKIP - 1) / DUK_PC2LINE_SKIP;
-   curr_offset = (duk_uint_fast32_t) (sizeof(duk_uint32_t) + 
num_header_entries * sizeof(duk_uint32_t) * 2);
-
-   duk_push_dynamic_buffer(ctx, (duk_size_t) curr_offset);
-   h_buf = (duk_hbuffer_dynamic *) duk_get_hbuffer(ctx, -1);
-   DUK_ASSERT(h_buf != NULL);
-   DUK_ASSERT(DUK_HBUFFER_HAS_DYNAMIC(h_buf) && 
!DUK_HBUFFER_HAS_EXTERNAL(h_buf));
-
-   hdr = (duk_uint32_t *) DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(thr->heap, 
h_buf);
-   DUK_ASSERT(hdr != NULL);
-   hdr[0] = (duk_uint32_t) length;  /* valid pc range is [0, length[ */
-
-   curr_pc = 0U;
-   while (curr_pc < length) {
-   new_size = (duk_size_t) (curr_offset + 
DUK_PC2LINE_MAX_DIFF_LENGTH);
-   duk_hbuffer_resize(thr, h_buf, new_size);
-
-   hdr = (duk_uint32_t *) 
DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(thr->heap, h_buf);
-   DUK_ASSERT(hdr != NULL);
-   DUK_ASSERT(curr_pc < 

[29/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
deleted file mode 100644
index 1d5c7b7..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_date.c
+++ /dev/null
@@ -1,1728 +0,0 @@
-/*
- *  Date built-ins
- *
- *  Unlike most built-ins, Date has some platform dependencies for getting
- *  UTC time, converting between UTC and local time, and parsing and
- *  formatting time values.  These are all abstracted behind DUK_USE_xxx
- *  config options.  There are built-in platform specific providers for
- *  POSIX and Windows, but external providers can also be used.
- *
- *  See doc/datetime.rst.
- *
- */
-
-#include "duk_internal.h"
-
-/*
- *  Forward declarations
- */
-
-DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval_tzoffset(duk_context 
*ctx, duk_small_uint_t flags, duk_int_t *out_tzoffset);
-DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval(duk_context *ctx, 
duk_small_uint_t flags);
-DUK_LOCAL_DECL void duk__twodigit_year_fixup(duk_context *ctx, duk_idx_t 
idx_val);
-DUK_LOCAL_DECL duk_ret_t duk__set_this_timeval_from_dparts(duk_context *ctx, 
duk_double_t *dparts, duk_small_uint_t flags);
-
-/*
- *  Other file level defines
- */
-
-/* Debug macro to print all parts and dparts (used manually because of debug 
level). */
-#define  DUK__DPRINT_PARTS_AND_DPARTS(parts,dparts)  do { \
-   DUK_D(DUK_DPRINT("parts: %ld %ld %ld %ld %ld %ld %ld %ld, 
dparts: %lf %lf %lf %lf %lf %lf %lf %lf", \
-(long) (parts)[0], (long) (parts)[1], \
-(long) (parts)[2], (long) (parts)[3], \
-(long) (parts)[4], (long) (parts)[5], \
-(long) (parts)[6], (long) (parts)[7], \
-(double) (dparts)[0], (double) (dparts)[1], \
-(double) (dparts)[2], (double) (dparts)[3], \
-(double) (dparts)[4], (double) (dparts)[5], \
-(double) (dparts)[6], (double) (dparts)[7])); \
-   } while (0)
-#define  DUK__DPRINT_PARTS(parts)  do { \
-   DUK_D(DUK_DPRINT("parts: %ld %ld %ld %ld %ld %ld %ld %ld", \
-(long) (parts)[0], (long) (parts)[1], \
-(long) (parts)[2], (long) (parts)[3], \
-(long) (parts)[4], (long) (parts)[5], \
-(long) (parts)[6], (long) (parts)[7])); \
-   } while (0)
-#define  DUK__DPRINT_DPARTS(dparts)  do { \
-   DUK_D(DUK_DPRINT("dparts: %lf %lf %lf %lf %lf %lf %lf %lf", \
-(double) (dparts)[0], (double) (dparts)[1], \
-(double) (dparts)[2], (double) (dparts)[3], \
-(double) (dparts)[4], (double) (dparts)[5], \
-(double) (dparts)[6], (double) (dparts)[7])); \
-   } while (0)
-
-/* Equivalent year for DST calculations outside [1970,2038[ range, see
- * E5 Section 15.9.1.8.  Equivalent year has the same leap-year-ness and
- * starts with the same weekday on Jan 1.
- * https://bugzilla.mozilla.org/show_bug.cgi?id=351066
- */
-#define DUK__YEAR(x) ((duk_uint8_t) ((x) - 1970))
-DUK_LOCAL duk_uint8_t duk__date_equivyear[14] = {
-#if 1
-   /* This is based on V8 EquivalentYear() algorithm (see 
src/genequivyear.py):
-* http://code.google.com/p/v8/source/browse/trunk/src/date.h#146
-*/
-
-   /* non-leap year: sunday, monday, ... */
-   DUK__YEAR(2023), DUK__YEAR(2035), DUK__YEAR(2019), DUK__YEAR(2031),
-   DUK__YEAR(2015), DUK__YEAR(2027), DUK__YEAR(2011),
-
-   /* leap year: sunday, monday, ... */
-   DUK__YEAR(2012), DUK__YEAR(2024), DUK__YEAR(2008), DUK__YEAR(2020),
-   DUK__YEAR(2032), DUK__YEAR(2016), DUK__YEAR(2028)
-#endif
-
-#if 0
-   /* This is based on Rhino EquivalentYear() algorithm:
-* 
https://github.com/mozilla/rhino/blob/f99cc11d616f0cdda2c42bde72b3484df6182947/src/org/mozilla/javascript/NativeDate.java
-*/
-
-   /* non-leap year: sunday, monday, ... */
-   DUK__YEAR(1978), DUK__YEAR(1973), DUK__YEAR(1985), DUK__YEAR(1986),
-   DUK__YEAR(1981), DUK__YEAR(1971), DUK__YEAR(1977),
-
-   /* leap year: sunday, monday, ... */
-   DUK__YEAR(1984), DUK__YEAR(1996), DUK__YEAR(1980), DUK__YEAR(1992),
-   DUK__YEAR(1976), DUK__YEAR(1988), DUK__YEAR(1972)
-#endif
-};
-#undef DUK__YEAR
-
-/*
- *  ISO 8601 subset parser.
- */
-
-/* Parser part count. */
-#define DUK__NUM_ISO8601_PARSER_PARTS  9
-
-/* 

[20/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
deleted file mode 100644
index e0caff6..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debugger.c
+++ /dev/null
@@ -1,2773 +0,0 @@
-/*
- *  Duktape debugger
- */
-
-#include "duk_internal.h"
-
-#if defined(DUK_USE_DEBUGGER_SUPPORT)
-
-/*
- *  Helper structs
- */
-
-typedef union {
-   void *p;
-   duk_uint_t b[1];
-   /* Use b[] to access the size of the union, which is strictly not
-* correct.  Can't use fixed size unless there's feature detection
-* for pointer byte size.
-*/
-} duk__ptr_union;
-
-/*
- *  Detach handling
- */
-
-#define DUK__SET_CONN_BROKEN(thr,reason) do { \
-   /* For now shared handler is fine. */ \
-   duk__debug_do_detach1((thr)->heap, (reason)); \
-   } while (0)
-
-DUK_LOCAL void duk__debug_do_detach1(duk_heap *heap, duk_int_t reason) {
-   /* Can be called multiple times with no harm.  Mark the transport
-* bad (dbg_read_cb == NULL) and clear state except for the detached
-* callback and the udata field.  The detached callback is delayed
-* to the message loop so that it can be called between messages;
-* this avoids corner cases related to immediate debugger reattach
-* inside the detached callback.
-*/
-
-   if (heap->dbg_detaching) {
-   DUK_D(DUK_DPRINT("debugger already detaching, ignore detach1"));
-   return;
-   }
-
-   DUK_D(DUK_DPRINT("debugger transport detaching, marking transport 
broken"));
-
-   heap->dbg_detaching = 1;  /* prevent multiple in-progress detaches */
-
-   if (heap->dbg_write_cb != NULL) {
-   duk_hthread *thr;
-
-   thr = heap->heap_thread;
-   DUK_ASSERT(thr != NULL);
-
-   duk_debug_write_notify(thr, DUK_DBG_CMD_DETACHING);
-   duk_debug_write_int(thr, reason);
-   duk_debug_write_eom(thr);
-   }
-
-   heap->dbg_read_cb = NULL;
-   heap->dbg_write_cb = NULL;
-   heap->dbg_peek_cb = NULL;
-   heap->dbg_read_flush_cb = NULL;
-   heap->dbg_write_flush_cb = NULL;
-   heap->dbg_request_cb = NULL;
-   /* heap->dbg_detached_cb: keep */
-   /* heap->dbg_udata: keep */
-   /* heap->dbg_processing: keep on purpose to avoid debugger re-entry in 
detaching state */
-   heap->dbg_paused = 0;
-   heap->dbg_state_dirty = 0;
-   heap->dbg_force_restart = 0;
-   heap->dbg_step_type = 0;
-   heap->dbg_step_thread = NULL;
-   heap->dbg_step_csindex = 0;
-   heap->dbg_step_startline = 0;
-   heap->dbg_have_next_byte = 0;
-
-   /* Ensure there are no stale active breakpoint pointers.
-* Breakpoint list is currently kept - we could empty it
-* here but we'd need to handle refcounts correctly, and
-* we'd need a 'thr' reference for that.
-*
-* XXX: clear breakpoint on either attach or detach?
-*/
-   heap->dbg_breakpoints_active[0] = (duk_breakpoint *) NULL;
-}
-
-DUK_LOCAL void duk__debug_do_detach2(duk_heap *heap) {
-   duk_debug_detached_function detached_cb;
-   void *detached_udata;
-
-   /* Safe to call multiple times. */
-
-   detached_cb = heap->dbg_detached_cb;
-   detached_udata = heap->dbg_udata;
-   heap->dbg_detached_cb = NULL;
-   heap->dbg_udata = NULL;
-
-   if (detached_cb) {
-   /* Careful here: state must be wiped before the call
-* so that we can cleanly handle a re-attach from
-* inside the callback.
-*/
-   DUK_D(DUK_DPRINT("detached during message loop, delayed call to 
detached_cb"));
-   detached_cb(detached_udata);
-   }
-
-   heap->dbg_detaching = 0;
-}
-
-DUK_INTERNAL void duk_debug_do_detach(duk_heap *heap) {
-   duk__debug_do_detach1(heap, 0);
-   duk__debug_do_detach2(heap);
-}
-
-/* Called on a read/write error: NULL all callbacks except the detached
- * callback so that we never accidentally call them after a read/write
- * error has been indicated.  This is especially important for the transport
- * I/O callbacks to fulfill guaranteed callback semantics.
- */
-DUK_LOCAL void duk__debug_null_most_callbacks(duk_hthread *thr) {
-   duk_heap *heap;
-   heap = thr->heap;
-   DUK_D(DUK_DPRINT("transport read/write error, NULL all callbacks 
expected detached"));
-   heap->dbg_read_cb = NULL;
-   heap->dbg_write_cb = NULL;  /* this is especially critical to avoid 
another write call in detach1() */

[32/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
deleted file mode 100644
index 6e8ff3e..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_stack.c
+++ /dev/null
@@ -1,4658 +0,0 @@
-/*
- *  API calls related to general value stack manipulation: resizing the value
- *  stack, pushing and popping values, type checking and reading values,
- *  coercing values, etc.
- *
- *  Also contains internal functions (such as duk_get_tval()), defined
- *  in duk_api_internal.h, with semantics similar to the public API.
- */
-
-/* XXX: repetition of stack pre-checks -> helper or macro or inline */
-/* XXX: shared api error strings, and perhaps even throw code for rare cases? 
*/
-
-#include "duk_internal.h"
-
-/*
- *  Forward declarations
- */
-
-DUK_LOCAL_DECL duk_idx_t duk__push_c_function_raw(duk_context *ctx, 
duk_c_function func, duk_idx_t nargs, duk_uint_t flags);
-
-/*
- *  Global state for working around missing variadic macros
- */
-
-#ifndef DUK_USE_VARIADIC_MACROS
-DUK_EXTERNAL const char *duk_api_global_filename = NULL;
-DUK_EXTERNAL duk_int_t duk_api_global_line = 0;
-#endif
-
-/*
- *  Misc helpers
- */
-
-/* Check that there's room to push one value. */
-#if defined(DUK_USE_VALSTACK_UNSAFE)
-/* Faster but value stack overruns are memory unsafe. */
-#define DUK__CHECK_SPACE() do { \
-   DUK_ASSERT(!(thr->valstack_top >= thr->valstack_end)); \
-   } while (0)
-#else
-#define DUK__CHECK_SPACE() do { \
-   if (DUK_UNLIKELY(thr->valstack_top >= thr->valstack_end)) { \
-   DUK_ERROR_API(thr, DUK_STR_PUSH_BEYOND_ALLOC_STACK); \
-   } \
-   } while (0)
-#endif
-
-DUK_LOCAL_DECL duk_heaphdr *duk__get_tagged_heaphdr_raw(duk_context *ctx, 
duk_idx_t index, duk_uint_t tag);
-
-DUK_LOCAL duk_int_t duk__api_coerce_d2i(duk_context *ctx, duk_idx_t index, 
duk_bool_t require) {
-   duk_hthread *thr;
-   duk_tval *tv;
-   duk_small_int_t c;
-   duk_double_t d;
-
-   thr = (duk_hthread *) ctx;
-
-   tv = duk_get_tval(ctx, index);
-   if (tv == NULL) {
-   goto error_notnumber;
-   }
-
-   /*
-*  Special cases like NaN and +/- Infinity are handled explicitly
-*  because a plain C coercion from double to int handles these cases
-*  in undesirable ways.  For instance, NaN may coerce to INT_MIN
-*  (not zero), and INT_MAX + 1 may coerce to INT_MIN (not INT_MAX).
-*
-*  This double-to-int coercion differs from ToInteger() because it
-*  has a finite range (ToInteger() allows e.g. +/- Infinity).  It
-*  also differs from ToInt32() because the INT_MIN/INT_MAX clamping
-*  depends on the size of the int type on the platform.  In particular,
-*  on platforms with a 64-bit int type, the full range is allowed.
-*/
-
-#if defined(DUK_USE_FASTINT)
-   if (DUK_TVAL_IS_FASTINT(tv)) {
-   duk_int64_t t = DUK_TVAL_GET_FASTINT(tv);
-#if (DUK_INT_MAX <= 0x7fffL)
-   /* Clamping only necessary for 32-bit ints. */
-   if (t < DUK_INT_MIN) {
-   t = DUK_INT_MIN;
-   } else if (t > DUK_INT_MAX) {
-   t = DUK_INT_MAX;
-   }
-#endif
-   return (duk_int_t) t;
-   }
-#endif
-
-   if (DUK_TVAL_IS_NUMBER(tv)) {
-   d = DUK_TVAL_GET_NUMBER(tv);
-   c = (duk_small_int_t) DUK_FPCLASSIFY(d);
-   if (c == DUK_FP_NAN) {
-   return 0;
-   } else if (d < (duk_double_t) DUK_INT_MIN) {
-   /* covers -Infinity */
-   return DUK_INT_MIN;
-   } else if (d > (duk_double_t) DUK_INT_MAX) {
-   /* covers +Infinity */
-   return DUK_INT_MAX;
-   } else {
-   /* coerce towards zero */
-   return (duk_int_t) d;
-   }
-   }
-
- error_notnumber:
-
-   if (require) {
-   DUK_ERROR_REQUIRE_TYPE_INDEX(thr, index, "number", 
DUK_STR_NOT_NUMBER);
-   /* not reachable */
-   }
-   return 0;
-}
-
-DUK_LOCAL duk_uint_t duk__api_coerce_d2ui(duk_context *ctx, duk_idx_t index, 
duk_bool_t require) {
-   duk_hthread *thr;
-   duk_tval *tv;
-   duk_small_int_t c;
-   duk_double_t d;
-
-   /* Same as above but for unsigned int range. */
-
-   thr = (duk_hthread *) ctx;
-
-   tv = duk_get_tval(ctx, index);
-   if (tv == NULL) {
-   goto error_notnumber;
-   }
-

[48/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
deleted file mode 100644
index b2b5a38..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/duk_config.h-modular-static
+++ /dev/null
@@ -1,3415 +0,0 @@
-/*
- *  duk_config.h configuration header generated by genconfig.py.
- *
- *  Git commit: cad34ae155acb0846545ca6bf2d29f9463b22bbb
- *  Git describe: v1.5.2
- *  Git branch: HEAD
- *
- *  Supported platforms:
- *  - Mac OSX, iPhone, Darwin
- *  - OpenBSD
- *  - Generic BSD
- *  - Atari ST TOS
- *  - AmigaOS
- *  - Windows
- *  - Flashplayer (Crossbridge)
- *  - QNX
- *  - TI-Nspire
- *  - Emscripten
- *  - Linux
- *  - Solaris
- *  - Generic POSIX
- *  - Cygwin
- *  - Generic UNIX
- *  - Generic fallback
- *
- *  Supported architectures:
- *  - x86
- *  - x64
- *  - x32
- *  - ARM 32-bit
- *  - ARM 64-bit
- *  - MIPS 32-bit
- *  - MIPS 64-bit
- *  - PowerPC 32-bit
- *  - PowerPC 64-bit
- *  - SPARC 32-bit
- *  - SPARC 64-bit
- *  - SuperH
- *  - Motorola 68k
- *  - Emscripten
- *  - Generic
- *
- *  Supported compilers:
- *  - Clang
- *  - GCC
- *  - MSVC
- *  - Emscripten
- *  - TinyC
- *  - VBCC
- *  - Bruce's C compiler
- *  - Generic
- *
- */
-
-#if !defined(DUK_CONFIG_H_INCLUDED)
-#define DUK_CONFIG_H_INCLUDED
-
-/*
- *  Intermediate helper defines
- */
-
-/* DLL build detection */
-#if defined(DUK_OPT_DLL_BUILD)
-#define DUK_F_DLL_BUILD
-#elif defined(DUK_OPT_NO_DLL_BUILD)
-#undef DUK_F_DLL_BUILD
-#else
-/* not configured for DLL build */
-#undef DUK_F_DLL_BUILD
-#endif
-
-/* Apple OSX, iOS */
-#if defined(__APPLE__)
-#define DUK_F_APPLE
-#endif
-
-/* OpenBSD */
-#if defined(__OpenBSD__) || defined(__OpenBSD)
-#define DUK_F_OPENBSD
-#endif
-
-/* NetBSD */
-#if defined(__NetBSD__) || defined(__NetBSD)
-#define DUK_F_NETBSD
-#endif
-
-/* FreeBSD */
-#if defined(__FreeBSD__) || defined(__FreeBSD)
-#define DUK_F_FREEBSD
-#endif
-
-/* BSD variant */
-#if defined(DUK_F_FREEBSD) || defined(DUK_F_NETBSD) || defined(DUK_F_OPENBSD) 
|| \
-defined(__bsdi__) || defined(__DragonFly__)
-#define DUK_F_BSD
-#endif
-
-/* Atari ST TOS.  __TOS__ defined by PureC.  No platform define in VBCC
- * apparently, so to use with VBCC user must define __TOS__ manually.
-  */
-#if defined(__TOS__)
-#define DUK_F_TOS
-#endif
-
-/* Motorola 68K.  Not defined by VBCC, so user must define one of these
- * manually when using VBCC.
- */
-#if defined(__m68k__) || defined(M68000) || defined(__MC68K__)
-#define DUK_F_M68K
-#endif
-
-/* AmigaOS.  Neither AMIGA nor __amigaos__ is defined on VBCC, so user must
- * define 'AMIGA' manually when using VBCC.
- */
-#if defined(AMIGA) || defined(__amigaos__)
-#define DUK_F_AMIGAOS
-#endif
-
-/* PowerPC */
-#if defined(__powerpc) || defined(__powerpc__) || defined(__PPC__)
-#define DUK_F_PPC
-#if defined(__PPC64__) || defined(__LP64__) || defined(_LP64)
-#define DUK_F_PPC64
-#else
-#define DUK_F_PPC32
-#endif
-#endif
-
-/* Windows, both 32-bit and 64-bit */
-#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || \
-defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
-#define DUK_F_WINDOWS
-#if defined(_WIN64) || defined(WIN64)
-#define DUK_F_WIN64
-#else
-#define DUK_F_WIN32
-#endif
-#endif
-
-/* Flash player (e.g. Crossbridge) */
-#if defined(__FLASHPLAYER__)
-#define DUK_F_FLASHPLAYER
-#endif
-
-/* QNX */
-#if defined(__QNX__)
-#define DUK_F_QNX
-#endif
-
-/* TI-Nspire (using Ndless) */
-#if defined(_TINSPIRE)
-#define DUK_F_TINSPIRE
-#endif
-
-/* Emscripten (provided explicitly by user), improve if possible */
-#if defined(EMSCRIPTEN)
-#define DUK_F_EMSCRIPTEN
-#endif
-
-/* BCC (Bruce's C compiler): this is a "torture target" for compilation */
-#if defined(__BCC__) || defined(__BCC_VERSION__)
-#define DUK_F_BCC
-#endif
-
-/* Linux */
-#if defined(__linux) || defined(__linux__) || defined(linux)
-#define DUK_F_LINUX
-#endif
-
-/* illumos / Solaris */
-#if defined(__sun) && defined(__SVR4)
-#define DUK_F_SUN
-#endif
-
-/* POSIX */
-#if defined(__posix)
-#define DUK_F_POSIX
-#endif
-
-/* Cygwin */
-#if defined(__CYGWIN__)
-#define DUK_F_CYGWIN
-#endif
-
-/* Generic Unix (includes Cygwin) */
-#if defined(__unix) || defined(__unix__) || defined(unix) || \
-defined(DUK_F_LINUX) || defined(DUK_F_BSD)
-#define DUK_F_UNIX
-#endif
-
-/* stdint.h not available */
-#if defined(DUK_F_WINDOWS) && defined(_MSC_VER)
-#if (_MSC_VER < 1700)
-/* VS2012+ has stdint.h, < VS2012 does not (but it's available for 

[07/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
deleted file mode 100644
index 695077b..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_js_executor.c
+++ /dev/null
@@ -1,4507 +0,0 @@
-/*
- *  Ecmascript bytecode executor.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Local declarations.
- */
-
-DUK_LOCAL_DECL void duk__js_execute_bytecode_inner(duk_hthread *entry_thread, 
duk_size_t entry_callstack_top);
-
-/*
- *  Arithmetic, binary, and logical helpers.
- *
- *  Note: there is no opcode for logical AND or logical OR; this is on
- *  purpose, because the evalution order semantics for them make such
- *  opcodes pretty pointless: short circuiting means they are most
- *  comfortably implemented as jumps.  However, a logical NOT opcode
- *  is useful.
- *
- *  Note: careful with duk_tval pointers here: they are potentially
- *  invalidated by any DECREF and almost any API call.  It's still
- *  preferable to work without making a copy but that's not always
- *  possible.
- */
-
-DUK_LOCAL duk_double_t duk__compute_mod(duk_double_t d1, duk_double_t d2) {
-   /*
-*  Ecmascript modulus ('%') does not match IEEE 754 "remainder"
-*  operation (implemented by remainder() in C99) but does seem
-*  to match ANSI C fmod().
-*
-*  Compare E5 Section 11.5.3 and "man fmod".
-*/
-
-   return (duk_double_t) DUK_FMOD((double) d1, (double) d2);
-}
-
-DUK_LOCAL void duk__vm_arith_add(duk_hthread *thr, duk_tval *tv_x, duk_tval 
*tv_y, duk_small_uint_fast_t idx_z) {
-   /*
-*  Addition operator is different from other arithmetic
-*  operations in that it also provides string concatenation.
-*  Hence it is implemented separately.
-*
-*  There is a fast path for number addition.  Other cases go
-*  through potentially multiple coercions as described in the
-*  E5 specification.  It may be possible to reduce the number
-*  of coercions, but this must be done carefully to preserve
-*  the exact semantics.
-*
-*  E5 Section 11.6.1.
-*
-*  Custom types also have special behavior implemented here.
-*/
-
-   duk_context *ctx = (duk_context *) thr;
-   duk_double_union du;
-
-   DUK_ASSERT(thr != NULL);
-   DUK_ASSERT(ctx != NULL);
-   DUK_ASSERT(tv_x != NULL);  /* may be reg or const */
-   DUK_ASSERT(tv_y != NULL);  /* may be reg or const */
-   DUK_ASSERT_DISABLE(idx_z >= 0);  /* unsigned */
-   DUK_ASSERT((duk_uint_t) idx_z < (duk_uint_t) duk_get_top(ctx));
-
-   /*
-*  Fast paths
-*/
-
-#if defined(DUK_USE_FASTINT)
-   if (DUK_TVAL_IS_FASTINT(tv_x) && DUK_TVAL_IS_FASTINT(tv_y)) {
-   duk_int64_t v1, v2, v3;
-   duk_int32_t v3_hi;
-   duk_tval *tv_z;
-
-   /* Input values are signed 48-bit so we can detect overflow
-* reliably from high bits or just a comparison.
-*/
-
-   v1 = DUK_TVAL_GET_FASTINT(tv_x);
-   v2 = DUK_TVAL_GET_FASTINT(tv_y);
-   v3 = v1 + v2;
-   v3_hi = (duk_int32_t) (v3 >> 32);
-   if (DUK_LIKELY(v3_hi >= -0x8000LL && v3_hi <= 0x7fffLL)) {
-   tv_z = thr->valstack_bottom + idx_z;
-   DUK_TVAL_SET_FASTINT_UPDREF(thr, tv_z, v3);  /* side 
effects */
-   return;
-   } else {
-   /* overflow, fall through */
-   ;
-   }
-   }
-#endif  /* DUK_USE_FASTINT */
-
-   if (DUK_TVAL_IS_NUMBER(tv_x) && DUK_TVAL_IS_NUMBER(tv_y)) {
-   duk_tval *tv_z;
-
-   du.d = DUK_TVAL_GET_NUMBER(tv_x) + DUK_TVAL_GET_NUMBER(tv_y);
-   DUK_DBLUNION_NORMALIZE_NAN_CHECK();
-   DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED());
-
-   tv_z = thr->valstack_bottom + idx_z;
-   DUK_TVAL_SET_NUMBER_UPDREF(thr, tv_z, du.d);  /* side effects */
-   return;
-   }
-
-   /*
-*  Slow path: potentially requires function calls for coercion
-*/
-
-   duk_push_tval(ctx, tv_x);
-   duk_push_tval(ctx, tv_y);
-   duk_to_primitive(ctx, -2, DUK_HINT_NONE);  /* side effects -> don't use 
tv_x, tv_y after */
-   duk_to_primitive(ctx, -1, DUK_HINT_NONE);
-
-   /* As a first approximation, buffer values are coerced to strings
-* for addition.  This means that adding two buffers currently
-* results in a string.
-*/
-   if 

[35/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h
deleted file mode 100644
index 84a32f8..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/duktape.h
+++ /dev/null
@@ -1,1567 +0,0 @@
-/*
- *  Duktape public API for Duktape 1.5.2.
- *
- *  See the API reference for documentation on call semantics.
- *  The exposed API is inside the DUK_API_PUBLIC_H_INCLUDED
- *  include guard.  Other parts of the header are Duktape
- *  internal and related to platform/compiler/feature detection.
- *
- *  Git commit cad34ae155acb0846545ca6bf2d29f9463b22bbb (v1.5.2).
- *  Git branch HEAD.
- *
- *  See Duktape AUTHORS.rst and LICENSE.txt for copyright and
- *  licensing information.
- */
-
-/* LICENSE.txt */
-/*
- *  ===
- *  Duktape license
- *  ===
- *  
- *  (http://opensource.org/licenses/MIT)
- *  
- *  Copyright (c) 2013-2016 by Duktape authors (see AUTHORS.rst)
- *  
- *  Permission is hereby granted, free of charge, to any person obtaining a 
copy
- *  of this software and associated documentation files (the "Software"), to 
deal
- *  in the Software without restriction, including without limitation the 
rights
- *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- *  copies of the Software, and to permit persons to whom the Software is
- *  furnished to do so, subject to the following conditions:
- *  
- *  The above copyright notice and this permission notice shall be included in
- *  all copies or substantial portions of the Software.
- *  
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
- *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- *  THE SOFTWARE.
- */
-
-/* AUTHORS.rst */
-/*
- *  ===
- *  Duktape authors
- *  ===
- *  
- *  Copyright
- *  =
- *  
- *  Duktape copyrights are held by its authors.  Each author has a copyright
- *  to their contribution, and agrees to irrevocably license the contribution
- *  under the Duktape ``LICENSE.txt``.
- *  
- *  Authors
- *  ===
- *  
- *  Please include an e-mail address, a link to your GitHub profile, or 
something
- *  similar to allow your contribution to be identified accurately.
- *  
- *  The following people have contributed code, website contents, or Wiki 
contents,
- *  and agreed to irrevocably license their contributions under the Duktape
- *  ``LICENSE.txt`` (in order of appearance):
- *  
- *  * Sami Vaarala 
- *  * Niki Dobrev
- *  * Andreas \u00d6man 
- *  * L\u00e1szl\u00f3 Lang\u00f3 
- *  * Legimet 
- *  * Karl Skomski 
- *  * Bruce Pascoe 
- *  * Ren\u00e9 Hollander 
- *  * Julien Hamaide (https://github.com/crazyjul)
- *  * Sebastian G\u00f6tte (https://github.com/jaseg)
- *  
- *  Other contributions
- *  ===
- *  
- *  The following people have contributed something other than code (e.g. 
reported
- *  bugs, provided ideas, etc; roughly in order of appearance):
- *  
- *  * Greg Burns
- *  * Anthony Rabine
- *  * Carlos Costa
- *  * Aur\u00e9lien Bouilland
- *  * Preet Desai (Pris Matic)
- *  * judofyr (http://www.reddit.com/user/judofyr)
- *  * Jason Woofenden
- *  * Micha\u0142 Przyby\u015b
- *  * Anthony Howe
- *  * Conrad Pankoff
- *  * Jim Schimpf
- *  * Rajaran Gaunker (https://github.com/zimbabao)
- *  * Andreas \u00d6man
- *  * Doug Sanden
- *  * Josh Engebretson (https://github.com/JoshEngebretson)
- *  * Remo Eichenberger (https://github.com/remoe)
- *  * Mamod Mehyar (https://github.com/mamod)
- *  * David Demelier (https://github.com/markand)
- *  * Tim Caswell (https://github.com/creationix)
- *  * Mitchell Blank Jr (https://github.com/mitchblank)
- *  * https://github.com/yushli
- *  * Seo Sanghyeon (https://github.com/sanxiyn)
- *  * Han ChoongWoo (https://github.com/tunz)
- *  * Joshua Peek (https://github.com/josh)
- *  * Bruce E. Pascoe (https://github.com/fatcerberus)
- *  * https://github.com/Kelledin
- *  * https://github.com/sstruchtrup
- *  * Michael Drake (https://github.com/tlsa)
- *  * https://github.com/chris-y
- *  * Laurent Zubiaur (https://github.com/lzubiaur)
- *  * Ole Andr\u00e9 Vadla Ravn\u00e5s 

[41/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c
deleted file mode 100644
index 4409926..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eval/eval.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- *  Very simple example program for evaluating expressions from
- *  command line
- */
-
-#include "duktape.h"
-#include 
-
-static int eval_raw(duk_context *ctx) {
-   duk_eval(ctx);
-   return 1;
-}
-
-static int tostring_raw(duk_context *ctx) {
-   duk_to_string(ctx, -1);
-   return 1;
-}
-
-static void usage_exit(void) {
-   fprintf(stderr, "Usage: eval  [] ...\n");
-   fflush(stderr);
-   exit(1);
-}
-
-int main(int argc, char *argv[]) {
-   duk_context *ctx;
-   int i;
-   const char *res;
-
-   if (argc < 2) {
-   usage_exit();
-   }
-
-   ctx = duk_create_heap_default();
-   for (i = 1; i < argc; i++) {
-   printf("=== eval: '%s' ===\n", argv[i]);
-   duk_push_string(ctx, argv[i]);
-   duk_safe_call(ctx, eval_raw, 1 /*nargs*/, 1 /*nrets*/);
-   duk_safe_call(ctx, tostring_raw, 1 /*nargs*/, 1 /*nrets*/);
-   res = duk_get_string(ctx, -1);
-   printf("%s\n", res ? res : "null");
-   duk_pop(ctx);
-   }
-
-   duk_destroy_heap(ctx);
-
-   return 0;
-}

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
deleted file mode 100644
index 5b1b147..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/examples/eventloop/README.rst
+++ /dev/null
@@ -1,76 +0,0 @@
-==
-Eventloop examples
-==
-
-Overview and usage
-==
-
-A few examples on how an event loop can be implemented with Duktape, mainly
-illlustrating how the Duktape interface works (not how event loops should be
-built otherwise).
-
-To test (Linux only, perhaps other Unix)::
-
-  $ make
-  $ ./evloop curses-timers.js # run with Ecmascript eventloop
-  $ ./evloop -c curses-timers.js  # run with C eventloop
-
-Implementation approaches
-=
-
-There are several approaches to implementation timers.  Here we demonstrate
-two main approaches:
-
-1. Using a C eventloop which calls into Javascript.  All the event loop state
-   like timers, sockets, etc, is held in C structures.
-   (See ``c_eventloop.c`` and ``c_eventloop.js``.)
-
-2. Using an Ecmascript eventloop which never returns.  All the event loop state
-   can be managed with Ecmascript code instead of C structures.  The Ecmascript
-   eventloop calls a Duktape/C helper to do the lowest level poll() call.
-   (See ``ecma_eventloop.js``.)
-
-Services provided
-=
-
-The event loop API provided by both examples is the same, and includes:
-
-* Timers: setTimeout, clearTimeout, setInterval, clearInterval
-
-* Sockets: simple network sockets
-
-In addition there are a few synchronous API bindings which are not event loop
-related:
-
-* File I/O
-
-* Curses, for doing beautiful character graphics
-
-Limitations
-===
-
-This is **not** a production quality event loop.  This is on purpose, to
-keep the example somewhat simple.  Some shortcomings include:
-
-* A production quality event loop would track its internal state (active
-  timers and sockets) much more efficiently.  In general memory usage and
-  code footprint can be reduced.
-
-* Buffer churn caused by allocating a new buffer for every socket read
-  should be eliminated by reusing buffers where appropriate.  Although
-  churn doesn't increase memory footprint with reference counting, it
-  is slower than reusing buffers and might increase memory fragmentation.
-
-* There is no way to suspend reading or writing in the example.  Adding
-  them is straightforward: the poll set needs to be managed dynamically.
-
-* The example uses poll() while one should use epoll() on Linux, kqueue()
-  on BSD systems, etc.
-
-* Timers are not very accurate, e.g. setInterval() does not try to guarantee
-  a steady schedule.  Instead, the next interval is scheduled after the
-  current callback has finished.  This is not the best behavior for some
-  environments, but avoids bunching callbacks.
-
-* Error handling is mostly missing.  Debug prints don't interact well
-  with curses.


[23/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
deleted file mode 100644
index 9bea59d..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_builtins.h
+++ /dev/null
@@ -1,854 +0,0 @@
-/*
- *  Automatically generated by genbuiltins.py, do not edit!
- */
-
-#ifndef DUK_BUILTINS_H_INCLUDED
-#define DUK_BUILTINS_H_INCLUDED
-
-#if defined(DUK_USE_ROM_STRINGS)
-#error ROM support not enabled, rerun make_dist.py with --rom-support
-#else  /* DUK_USE_ROM_STRINGS */
-#define DUK_STRIDX_UC_UNDEFINED   0
  /* 'Undefined' */
-#define DUK_HEAP_STRING_UC_UNDEFINED(heap)
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_UNDEFINED)
-#define DUK_HTHREAD_STRING_UC_UNDEFINED(thr)  
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_UNDEFINED)
-#define DUK_STRIDX_UC_NULL1
  /* 'Null' */
-#define DUK_HEAP_STRING_UC_NULL(heap) 
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_NULL)
-#define DUK_HTHREAD_STRING_UC_NULL(thr)   
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_NULL)
-#define DUK_STRIDX_UC_ARGUMENTS   2
  /* 'Arguments' */
-#define DUK_HEAP_STRING_UC_ARGUMENTS(heap)
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_ARGUMENTS)
-#define DUK_HTHREAD_STRING_UC_ARGUMENTS(thr)  
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_ARGUMENTS)
-#define DUK_STRIDX_UC_OBJECT  3
  /* 'Object' */
-#define DUK_HEAP_STRING_UC_OBJECT(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_OBJECT)
-#define DUK_HTHREAD_STRING_UC_OBJECT(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_OBJECT)
-#define DUK_STRIDX_UC_FUNCTION4
  /* 'Function' */
-#define DUK_HEAP_STRING_UC_FUNCTION(heap) 
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_FUNCTION)
-#define DUK_HTHREAD_STRING_UC_FUNCTION(thr)   
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_FUNCTION)
-#define DUK_STRIDX_ARRAY  5
  /* 'Array' */
-#define DUK_HEAP_STRING_ARRAY(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_ARRAY)
-#define DUK_HTHREAD_STRING_ARRAY(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_ARRAY)
-#define DUK_STRIDX_UC_STRING  6
  /* 'String' */
-#define DUK_HEAP_STRING_UC_STRING(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_STRING)
-#define DUK_HTHREAD_STRING_UC_STRING(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_STRING)
-#define DUK_STRIDX_UC_BOOLEAN 7
  /* 'Boolean' */
-#define DUK_HEAP_STRING_UC_BOOLEAN(heap)  
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_BOOLEAN)
-#define DUK_HTHREAD_STRING_UC_BOOLEAN(thr)
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_BOOLEAN)
-#define DUK_STRIDX_UC_NUMBER  8
  /* 'Number' */
-#define DUK_HEAP_STRING_UC_NUMBER(heap)   
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_NUMBER)
-#define DUK_HTHREAD_STRING_UC_NUMBER(thr) 
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_NUMBER)
-#define DUK_STRIDX_DATE   9
  /* 'Date' */
-#define DUK_HEAP_STRING_DATE(heap)
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_DATE)
-#define DUK_HTHREAD_STRING_DATE(thr)  
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_DATE)
-#define DUK_STRIDX_REG_EXP10   
  /* 'RegExp' */
-#define DUK_HEAP_STRING_REG_EXP(heap) 
DUK_HEAP_GET_STRING((heap),DUK_STRIDX_REG_EXP)
-#define DUK_HTHREAD_STRING_REG_EXP(thr)   
DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_REG_EXP)
-#define DUK_STRIDX_UC_ERROR   11   
  /* 'Error' */
-#define DUK_HEAP_STRING_UC_ERROR(heap) 

[30/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
deleted file mode 100644
index 0d8efb0..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_buffer.c
+++ /dev/null
@@ -1,2882 +0,0 @@
-/*
- *  Duktape.Buffer, Node.js Buffer, and Khronos/ES6 TypedArray built-ins
- */
-
-#include "duk_internal.h"
-
-/*
- *  Misc helpers
- */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Map DUK_HBUFFEROBJECT_ELEM_xxx to duk_hobject class number.
- * Sync with duk_hbufferobject.h and duk_hobject.h.
- */
-static const duk_uint8_t duk__buffer_class_from_elemtype[9] = {
-   DUK_HOBJECT_CLASS_UINT8ARRAY,
-   DUK_HOBJECT_CLASS_UINT8CLAMPEDARRAY,
-   DUK_HOBJECT_CLASS_INT8ARRAY,
-   DUK_HOBJECT_CLASS_UINT16ARRAY,
-   DUK_HOBJECT_CLASS_INT16ARRAY,
-   DUK_HOBJECT_CLASS_UINT32ARRAY,
-   DUK_HOBJECT_CLASS_INT32ARRAY,
-   DUK_HOBJECT_CLASS_FLOAT32ARRAY,
-   DUK_HOBJECT_CLASS_FLOAT64ARRAY
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Map DUK_HBUFFEROBJECT_ELEM_xxx to prototype object built-in index.
- * Sync with duk_hbufferobject.h.
- */
-static const duk_uint8_t duk__buffer_proto_from_elemtype[9] = {
-   DUK_BIDX_UINT8ARRAY_PROTOTYPE,
-   DUK_BIDX_UINT8CLAMPEDARRAY_PROTOTYPE,
-   DUK_BIDX_INT8ARRAY_PROTOTYPE,
-   DUK_BIDX_UINT16ARRAY_PROTOTYPE,
-   DUK_BIDX_INT16ARRAY_PROTOTYPE,
-   DUK_BIDX_UINT32ARRAY_PROTOTYPE,
-   DUK_BIDX_INT32ARRAY_PROTOTYPE,
-   DUK_BIDX_FLOAT32ARRAY_PROTOTYPE,
-   DUK_BIDX_FLOAT64ARRAY_PROTOTYPE
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Map DUK__FLX_xxx to byte size.
- */
-static const duk_uint8_t duk__buffer_nbytes_from_fldtype[6] = {
-   1,  /* DUK__FLD_8BIT */
-   2,  /* DUK__FLD_16BIT */
-   4,  /* DUK__FLD_32BIT */
-   4,  /* DUK__FLD_FLOAT */
-   8,  /* DUK__FLD_DOUBLE */
-   0   /* DUK__FLD_VARINT; not relevant here */
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Bitfield for each DUK_HBUFFEROBJECT_ELEM_xxx indicating which element types
- * are compatible with a blind byte copy for the TypedArray set() method (also
- * used for TypedArray constructor).  Array index is target buffer elem type,
- * bitfield indicates compatible source types.  The types must have same byte
- * size and they must be coercion compatible.
- */
-static duk_uint16_t duk__buffer_elemtype_copy_compatible[9] = {
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT8 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT8),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED
-* Note: INT8 is -not- copy compatible, e.g. -1 would coerce to 0x00.
-*/
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_INT8 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT8CLAMPED) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT8),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT16 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT16) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT16),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_INT16 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT16) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT16),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_UINT32 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT32) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT32),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_INT32 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_UINT32) |
-   (1U << DUK_HBUFFEROBJECT_ELEM_INT32),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_FLOAT32 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_FLOAT32),
-
-   /* xxx -> DUK_HBUFFEROBJECT_ELEM_FLOAT64 */
-   (1U << DUK_HBUFFEROBJECT_ELEM_FLOAT64)
-};
-#endif  /* DUK_USE_BUFFEROBJECT_SUPPORT */
-
-#if defined(DUK_USE_BUFFEROBJECT_SUPPORT)
-/* Shared helper. */
-DUK_LOCAL duk_hbufferobject *duk__getrequire_bufobj_this(duk_context *ctx, 
duk_bool_t throw_flag) {
-   duk_hthread *thr;
-   duk_tval *tv;
-   duk_hbufferobject *h_this;
-
-   DUK_ASSERT(ctx != NULL);
-   thr = (duk_hthread *) ctx;
-
-   tv = duk_get_borrowed_this_tval(ctx);
-   DUK_ASSERT(tv != NULL);
-   if (DUK_TVAL_IS_OBJECT(tv)) {
-   h_this = (duk_hbufferobject *) DUK_TVAL_GET_OBJECT(tv);
-   DUK_ASSERT(h_this != NULL);
-   

[34/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
deleted file mode 100644
index 56ef280..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-noline/metadata.json
+++ /dev/null
@@ -1,629 +0,0 @@
-{
-"line_map": [
-{
-"original_line": 1, 
-"combined_line": 114, 
-"original_file": "duk_internal.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 159, 
-"original_file": "duk_replacements.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 187, 
-"original_file": "duk_jmpbuf.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 211, 
-"original_file": "duk_exception.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 229, 
-"original_file": "duk_forwdecl.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 351, 
-"original_file": "duk_tval.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 869, 
-"original_file": "duk_builtins.h"
-}, 
-{
-"original_line": 52, 
-"combined_line": 1723, 
-"original_file": "duk_internal.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 1724, 
-"original_file": "duk_util.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 2254, 
-"original_file": "duk_strings.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 2506, 
-"original_file": "duk_js_bytecode.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 2711, 
-"original_file": "duk_lexer.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 3143, 
-"original_file": "duk_js_compiler.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 3370, 
-"original_file": "duk_regexp.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 3452, 
-"original_file": "duk_heaphdr.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 4202, 
-"original_file": "duk_api_internal.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 4396, 
-"original_file": "duk_hstring.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 4615, 
-"original_file": "duk_hobject.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5541, 
-"original_file": "duk_hcompiledfunction.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5780, 
-"original_file": "duk_hnativefunction.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5812, 
-"original_file": "duk_hbufferobject.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 5945, 
-"original_file": "duk_hthread.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 6325, 
-"original_file": "duk_hbuffer.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 6653, 
-"original_file": "duk_heap.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 7249, 
-"original_file": "duk_debugger.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 7393, 
-"original_file": "duk_debug.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 7578, 
-"original_file": "duk_error.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8017, 
-"original_file": "duk_unicode.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8284, 
-"original_file": "duk_json.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8352, 
-"original_file": "duk_js.h"
-}, 
-{
-"original_line": 1, 
-"combined_line": 8451, 
-"original_file": "duk_numconv.h"
-}, 
-{
-   

[16/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
deleted file mode 100644
index ace607e..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_heap_stringcache.c
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- *  String cache.
- *
- *  Provides a cache to optimize indexed string lookups.  The cache keeps
- *  track of (byte offset, char offset) states for a fixed number of strings.
- *  Otherwise we'd need to scan from either end of the string, as we store
- *  strings in (extended) UTF-8.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Delete references to given hstring from the heap string cache.
- *
- *  String cache references are 'weak': they are not counted towards
- *  reference counts, nor serve as roots for mark-and-sweep.  When an
- *  object is about to be freed, such references need to be removed.
- */
-
-DUK_INTERNAL void duk_heap_strcache_string_remove(duk_heap *heap, duk_hstring 
*h) {
-   duk_small_int_t i;
-   for (i = 0; i < DUK_HEAP_STRCACHE_SIZE; i++) {
-   duk_strcache *c = heap->strcache + i;
-   if (c->h == h) {
-   DUK_DD(DUK_DDPRINT("deleting weak strcache reference to 
hstring %p from heap %p",
-  (void *) h, (void *) heap));
-   c->h = NULL;
-
-   /* XXX: the string shouldn't appear twice, but we now 
loop to the
-* end anyway; if fixed, add a looping assertion to 
ensure there
-* is no duplicate.
-*/
-   }
-   }
-}
-
-/*
- *  String scanning helpers
- *
- *  All bytes other than UTF-8 continuation bytes ([0x80,0xbf]) are
- *  considered to contribute a character.  This must match how string
- *  character length is computed.
- */
-
-DUK_LOCAL const duk_uint8_t *duk__scan_forwards(const duk_uint8_t *p, const 
duk_uint8_t *q, duk_uint_fast32_t n) {
-   while (n > 0) {
-   for (;;) {
-   p++;
-   if (p >= q) {
-   return NULL;
-   }
-   if ((*p & 0xc0) != 0x80) {
-   break;
-   }
-   }
-   n--;
-   }
-   return p;
-}
-
-DUK_LOCAL const duk_uint8_t *duk__scan_backwards(const duk_uint8_t *p, const 
duk_uint8_t *q, duk_uint_fast32_t n) {
-   while (n > 0) {
-   for (;;) {
-   p--;
-   if (p < q) {
-   return NULL;
-   }
-   if ((*p & 0xc0) != 0x80) {
-   break;
-   }
-   }
-   n--;
-   }
-   return p;
-}
-
-/*
- *  Convert char offset to byte offset
- *
- *  Avoid using the string cache if possible: for ASCII strings byte and
- *  char offsets are equal and for short strings direct scanning may be
- *  better than using the string cache (which may evict a more important
- *  entry).
- *
- *  Typing now assumes 32-bit string byte/char offsets (duk_uint_fast32_t).
- *  Better typing might be to use duk_size_t.
- */
-
-DUK_INTERNAL duk_uint_fast32_t duk_heap_strcache_offset_char2byte(duk_hthread 
*thr, duk_hstring *h, duk_uint_fast32_t char_offset) {
-   duk_heap *heap;
-   duk_strcache *sce;
-   duk_uint_fast32_t byte_offset;
-   duk_small_int_t i;
-   duk_bool_t use_cache;
-   duk_uint_fast32_t dist_start, dist_end, dist_sce;
-   const duk_uint8_t *p_start;
-   const duk_uint8_t *p_end;
-   const duk_uint8_t *p_found;
-
-   if (char_offset > DUK_HSTRING_GET_CHARLEN(h)) {
-   goto error;
-   }
-
-   /*
-*  For ASCII strings, the answer is simple.
-*/
-
-   if (DUK_HSTRING_IS_ASCII(h)) {
-   /* clen == blen -> pure ascii */
-   return char_offset;
-   }
-
-   /*
-*  For non-ASCII strings, we need to scan forwards or backwards
-*  from some starting point.  The starting point may be the start
-*  or end of the string, or some cached midpoint in the string
-*  cache.
-*
-*  For "short" strings we simply scan without checking or updating
-*  the cache.  For longer strings we check and update the cache as
-*  necessary, inserting a new cache entry if none exists.
-*/
-
-   DUK_DDD(DUK_DDDPRINT("non-ascii string %p, char_offset=%ld, clen=%ld, 
blen=%ld",
-(void *) 

[25/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
deleted file mode 100644
index bf43750..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_string.c
+++ /dev/null
@@ -1,1314 +0,0 @@
-/*
- *  String built-ins
- */
-
-/* XXX: There are several limitations in the current implementation for
- * strings with >= 0x8000UL characters.  In some cases one would need
- * to be able to represent the range [-0x,0x] and so on.
- * Generally character and byte length are assumed to fit into signed 32
- * bits (< 0x8000UL).  Places with issues are not marked explicitly
- * below in all cases, look for signed type usage (duk_int_t etc) for
- * offsets/lengths.
- */
-
-#include "duk_internal.h"
-
-/*
- *  Constructor
- */
-
-DUK_INTERNAL duk_ret_t duk_bi_string_constructor(duk_context *ctx) {
-   /* String constructor needs to distinguish between an argument not 
given at all
-* vs. given as 'undefined'.  We're a vararg function to handle this 
properly.
-*/
-
-   if (duk_get_top(ctx) == 0) {
-   duk_push_hstring_stridx(ctx, DUK_STRIDX_EMPTY_STRING);
-   } else {
-   duk_to_string(ctx, 0);
-   }
-   DUK_ASSERT(duk_is_string(ctx, 0));
-   duk_set_top(ctx, 1);
-
-   if (duk_is_constructor_call(ctx)) {
-   duk_push_object_helper(ctx,
-  DUK_HOBJECT_FLAG_EXTENSIBLE |
-  DUK_HOBJECT_FLAG_EXOTIC_STRINGOBJ |
-  
DUK_HOBJECT_CLASS_AS_FLAGS(DUK_HOBJECT_CLASS_STRING),
-  DUK_BIDX_STRING_PROTOTYPE);
-
-   /* String object internal value is immutable */
-   duk_dup(ctx, 0);
-   duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_INT_VALUE, 
DUK_PROPDESC_FLAGS_NONE);
-   }
-   /* Note: unbalanced stack on purpose */
-
-   return 1;
-}
-
-DUK_INTERNAL duk_ret_t duk_bi_string_constructor_from_char_code(duk_context 
*ctx) {
-   duk_hthread *thr = (duk_hthread *) ctx;
-   duk_bufwriter_ctx bw_alloc;
-   duk_bufwriter_ctx *bw;
-   duk_idx_t i, n;
-   duk_ucodepoint_t cp;
-
-   /* XXX: It would be nice to build the string directly but ToUint16()
-* coercion is needed so a generic helper would not be very
-* helpful (perhaps coerce the value stack first here and then
-* build a string from a duk_tval number sequence in one go?).
-*/
-
-   n = duk_get_top(ctx);
-
-   bw = _alloc;
-   DUK_BW_INIT_PUSHBUF(thr, bw, n);  /* initial estimate for ASCII only 
codepoints */
-
-   for (i = 0; i < n; i++) {
-   /* XXX: could improve bufwriter handling to write multiple 
codepoints
-* with one ensure call but the relative benefit would be quite 
small.
-*/
-
-#if defined(DUK_USE_NONSTD_STRING_FROMCHARCODE_32BIT)
-   /* ToUint16() coercion is mandatory in the E5.1 specification, 
but
-* this non-compliant behavior makes more sense because we 
support
-* non-BMP codepoints.  Don't use CESU-8 because that'd create
-* surrogate pairs.
-*/
-
-   cp = (duk_ucodepoint_t) duk_to_uint32(ctx, i);
-   DUK_BW_WRITE_ENSURE_XUTF8(thr, bw, cp);
-#else
-   cp = (duk_ucodepoint_t) duk_to_uint16(ctx, i);
-   DUK_BW_WRITE_ENSURE_CESU8(thr, bw, cp);
-#endif
-   }
-
-   DUK_BW_COMPACT(thr, bw);
-   duk_to_string(ctx, -1);
-   return 1;
-}
-
-/*
- *  toString(), valueOf()
- */
-
-DUK_INTERNAL duk_ret_t duk_bi_string_prototype_to_string(duk_context *ctx) {
-   duk_tval *tv;
-
-   duk_push_this(ctx);
-   tv = duk_require_tval(ctx, -1);
-   DUK_ASSERT(tv != NULL);
-
-   if (DUK_TVAL_IS_STRING(tv)) {
-   /* return as is */
-   return 1;
-   } else if (DUK_TVAL_IS_OBJECT(tv)) {
-   duk_hobject *h = DUK_TVAL_GET_OBJECT(tv);
-   DUK_ASSERT(h != NULL);
-
-   /* Must be a "string object", i.e. class "String" */
-   if (DUK_HOBJECT_GET_CLASS_NUMBER(h) != 
DUK_HOBJECT_CLASS_STRING) {
-   goto type_error;
-   }
-
-   duk_get_prop_stridx(ctx, -1, DUK_STRIDX_INT_VALUE);
-   DUK_ASSERT(duk_is_string(ctx, -1));
-
-   return 1;
-   } else {
-   goto type_error;
-   }
-
-   /* never here, but fall through */
-
- type_error:
-   return DUK_RET_TYPE_ERROR;
-}
-
-/*
- *  Character 

[27/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
deleted file mode 100644
index d05ccd9..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_bi_json.c
+++ /dev/null
@@ -1,3143 +0,0 @@
-/*
- *  JSON built-ins.
- *
- *  See doc/json.rst.
- *
- *  Codepoints are handled as duk_uint_fast32_t to ensure that the full
- *  unsigned 32-bit range is supported.  This matters to e.g. JX.
- *
- *  Input parsing doesn't do an explicit end-of-input check at all.  This is
- *  safe: input string data is always NUL-terminated (0x00) and valid JSON
- *  inputs never contain plain NUL characters, so that as long as syntax checks
- *  are correct, we'll never read past the NUL.  This approach reduces code 
size
- *  and improves parsing performance, but it's critical that syntax checks are
- *  indeed correct!
- */
-
-#include "duk_internal.h"
-
-/*
- *  Local defines and forward declarations.
- */
-
-#define DUK__JSON_DECSTR_BUFSIZE 128
-#define DUK__JSON_DECSTR_CHUNKSIZE 64
-#define DUK__JSON_ENCSTR_CHUNKSIZE 64
-#define DUK__JSON_STRINGIFY_BUFSIZE 128
-#define DUK__JSON_MAX_ESC_LEN 10  /* '\Udeadbeef' */
-
-DUK_LOCAL_DECL void duk__dec_syntax_error(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_eat_white(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint8_t duk__dec_peek(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint8_t duk__dec_get(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint8_t duk__dec_get_nonwhite(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL duk_uint_fast32_t duk__dec_decode_hex_escape(duk_json_dec_ctx 
*js_ctx, duk_small_uint_t n);
-DUK_LOCAL_DECL void duk__dec_req_stridx(duk_json_dec_ctx *js_ctx, 
duk_small_uint_t stridx);
-DUK_LOCAL_DECL void duk__dec_string(duk_json_dec_ctx *js_ctx);
-#ifdef DUK_USE_JX
-DUK_LOCAL_DECL void duk__dec_plain_string(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_pointer(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_buffer(duk_json_dec_ctx *js_ctx);
-#endif
-DUK_LOCAL_DECL void duk__dec_number(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_objarr_entry(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_objarr_exit(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_object(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_array(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_value(duk_json_dec_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__dec_reviver_walk(duk_json_dec_ctx *js_ctx);
-
-DUK_LOCAL_DECL void duk__emit_1(duk_json_enc_ctx *js_ctx, duk_uint_fast8_t ch);
-DUK_LOCAL_DECL void duk__emit_2(duk_json_enc_ctx *js_ctx, duk_uint_fast8_t 
ch1, duk_uint_fast8_t ch2);
-DUK_LOCAL_DECL void duk__unemit_1(duk_json_enc_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__emit_hstring(duk_json_enc_ctx *js_ctx, duk_hstring 
*h);
-#if defined(DUK_USE_FASTINT)
-DUK_LOCAL_DECL void duk__emit_cstring(duk_json_enc_ctx *js_ctx, const char *p);
-#endif
-DUK_LOCAL_DECL void duk__emit_stridx(duk_json_enc_ctx *js_ctx, 
duk_small_uint_t stridx);
-DUK_LOCAL_DECL duk_uint8_t *duk__emit_esc_auto_fast(duk_json_enc_ctx *js_ctx, 
duk_uint_fast32_t cp, duk_uint8_t *q);
-DUK_LOCAL_DECL void duk__enc_key_autoquote(duk_json_enc_ctx *js_ctx, 
duk_hstring *k);
-DUK_LOCAL_DECL void duk__enc_quote_string(duk_json_enc_ctx *js_ctx, 
duk_hstring *h_str);
-DUK_LOCAL_DECL void duk__enc_objarr_entry(duk_json_enc_ctx *js_ctx, duk_idx_t 
*entry_top);
-DUK_LOCAL_DECL void duk__enc_objarr_exit(duk_json_enc_ctx *js_ctx, duk_idx_t 
*entry_top);
-DUK_LOCAL_DECL void duk__enc_object(duk_json_enc_ctx *js_ctx);
-DUK_LOCAL_DECL void duk__enc_array(duk_json_enc_ctx *js_ctx);
-DUK_LOCAL_DECL duk_bool_t duk__enc_value(duk_json_enc_ctx *js_ctx, duk_idx_t 
idx_holder);
-DUK_LOCAL_DECL duk_bool_t duk__enc_allow_into_proplist(duk_tval *tv);
-DUK_LOCAL_DECL void duk__enc_double(duk_json_enc_ctx *js_ctx);
-#if defined(DUK_USE_FASTINT)
-DUK_LOCAL_DECL void duk__enc_fastint_tval(duk_json_enc_ctx *js_ctx, duk_tval 
*tv);
-#endif
-#if defined(DUK_USE_JX) || defined(DUK_USE_JC)
-DUK_LOCAL_DECL void duk__enc_buffer(duk_json_enc_ctx *js_ctx, duk_hbuffer *h);
-DUK_LOCAL_DECL void duk__enc_pointer(duk_json_enc_ctx *js_ctx, void *ptr);
-DUK_LOCAL_DECL void duk__enc_bufferobject(duk_json_enc_ctx *js_ctx, 
duk_hbufferobject *h_bufobj);
-#endif
-DUK_LOCAL_DECL void duk__enc_newline_indent(duk_json_enc_ctx *js_ctx, 
duk_int_t depth);
-
-/*
- *  Helper tables
- */
-
-#if defined(DUK_USE_JSON_QUOTESTRING_FASTPATH)
-DUK_LOCAL const duk_uint8_t duk__json_quotestr_lookup[256] = {
-   /* 0x00 ... 0x7f: as is
-* 0x80: escape generically
-* 0x81: slow path
-* 0xa0 ... 0xff: backslash + one 

[21/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
deleted file mode 100644
index 256d2dc..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_debug.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- *  Debugging macros, DUK_DPRINT() and its variants in particular.
- *
- *  DUK_DPRINT() allows formatted debug prints, and supports standard
- *  and Duktape specific formatters.  See duk_debug_vsnprintf.c for details.
- *
- *  DUK_D(x), DUK_DD(x), and DUK_DDD(x) are used together with log macros
- *  for technical reasons.  They are concretely used to hide 'x' from the
- *  compiler when the corresponding log level is disabled.  This allows
- *  clean builds on non-C99 compilers, at the cost of more verbose code.
- *  Examples:
- *
- *DUK_D(DUK_DPRINT("foo"));
- *DUK_DD(DUK_DDPRINT("foo"));
- *DUK_DDD(DUK_DDDPRINT("foo"));
- *
- *  This approach is preferable to the old "double parentheses" hack because
- *  double parentheses make the C99 solution worse: __FILE__ and __LINE__ can
- *  no longer be added transparently without going through globals, which
- *  works poorly with threading.
- */
-
-#ifndef DUK_DEBUG_H_INCLUDED
-#define DUK_DEBUG_H_INCLUDED
-
-#ifdef DUK_USE_DEBUG
-
-#if defined(DUK_USE_DPRINT)
-#define DUK_D(x) x
-#else
-#define DUK_D(x) do { } while (0) /* omit */
-#endif
-
-#if defined(DUK_USE_DDPRINT)
-#define DUK_DD(x) x
-#else
-#define DUK_DD(x) do { } while (0) /* omit */
-#endif
-
-#if defined(DUK_USE_DDDPRINT)
-#define DUK_DDD(x) x
-#else
-#define DUK_DDD(x) do { } while (0) /* omit */
-#endif
-
-/*
- *  Exposed debug macros: debugging enabled
- */
-
-#define DUK_LEVEL_DEBUG1
-#define DUK_LEVEL_DDEBUG   2
-#define DUK_LEVEL_DDDEBUG  3
-
-#ifdef DUK_USE_VARIADIC_MACROS
-
-/* Note: combining __FILE__, __LINE__, and __func__ into fmt would be
- * possible compile time, but waste some space with shared function names.
- */
-#define DUK__DEBUG_LOG(lev,...)  duk_debug_log((duk_small_int_t) (lev), 
DUK_FILE_MACRO, (duk_int_t) DUK_LINE_MACRO, DUK_FUNC_MACRO, __VA_ARGS__);
-
-#define DUK_DPRINT(...)  DUK__DEBUG_LOG(DUK_LEVEL_DEBUG, __VA_ARGS__)
-
-#ifdef DUK_USE_DDPRINT
-#define DUK_DDPRINT(...) DUK__DEBUG_LOG(DUK_LEVEL_DDEBUG, __VA_ARGS__)
-#else
-#define DUK_DDPRINT(...)
-#endif
-
-#ifdef DUK_USE_DDDPRINT
-#define DUK_DDDPRINT(...)DUK__DEBUG_LOG(DUK_LEVEL_DDDEBUG, __VA_ARGS__)
-#else
-#define DUK_DDDPRINT(...)
-#endif
-
-#else  /* DUK_USE_VARIADIC_MACROS */
-
-#define DUK__DEBUG_STASH(lev)\
-   (void) DUK_SNPRINTF(duk_debug_file_stash, DUK_DEBUG_STASH_SIZE, "%s", 
(const char *) DUK_FILE_MACRO), \
-   duk_debug_file_stash[DUK_DEBUG_STASH_SIZE - 1] = (char) 0; \
-   (void) DUK_SNPRINTF(duk_debug_line_stash, DUK_DEBUG_STASH_SIZE, "%ld", 
(long) DUK_LINE_MACRO), \
-   duk_debug_line_stash[DUK_DEBUG_STASH_SIZE - 1] = (char) 0; \
-   (void) DUK_SNPRINTF(duk_debug_func_stash, DUK_DEBUG_STASH_SIZE, "%s", 
(const char *) DUK_FUNC_MACRO), \
-   duk_debug_func_stash[DUK_DEBUG_STASH_SIZE - 1] = (char) 0; \
-   (void) (duk_debug_level_stash = (lev))
-
-/* Without variadic macros resort to comma expression trickery to handle debug
- * prints.  This generates a lot of harmless warnings.  These hacks are not
- * needed normally because DUK_D() and friends will hide the entire debug log
- * statement from the compiler.
- */
-
-#ifdef DUK_USE_DPRINT
-#define DUK_DPRINT  DUK__DEBUG_STASH(DUK_LEVEL_DEBUG), (void) duk_debug_log  
/* args go here in parens */
-#else
-#define DUK_DPRINT  0 && /* args go here as a comma expression in parens */
-#endif
-
-#ifdef DUK_USE_DDPRINT
-#define DUK_DDPRINT  DUK__DEBUG_STASH(DUK_LEVEL_DDEBUG), (void) duk_debug_log  
/* args go here in parens */
-#else
-#define DUK_DDPRINT  0 && /* args */
-#endif
-
-#ifdef DUK_USE_DDDPRINT
-#define DUK_DDDPRINT  DUK__DEBUG_STASH(DUK_LEVEL_DDDEBUG), (void) 
duk_debug_log  /* args go here in parens */
-#else
-#define DUK_DDDPRINT  0 && /* args */
-#endif
-
-#endif  /* DUK_USE_VARIADIC_MACROS */
-
-#else  /* DUK_USE_DEBUG */
-
-/*
- *  Exposed debug macros: debugging disabled
- */
-
-#define DUK_D(x) do { } while (0) /* omit */
-#define DUK_DD(x) do { } while (0) /* omit */
-#define DUK_DDD(x) do { } while (0) /* omit */
-
-#ifdef DUK_USE_VARIADIC_MACROS
-
-#define DUK_DPRINT(...)
-#define DUK_DDPRINT(...)
-#define DUK_DDDPRINT(...)
-
-#else  /* DUK_USE_VARIADIC_MACROS */
-
-#define DUK_DPRINT0 && /* args go here as a comma expression in parens */
-#define DUK_DDPRINT   0 && /* args */
-#define DUK_DDDPRINT  0 && /* args */
-
-#endif  /* DUK_USE_VARIADIC_MACROS */
-
-#endif  /* DUK_USE_DEBUG */
-
-/*
- 

[39/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx
deleted file mode 100644
index 29a6b8d..000
--- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/license.spdx
+++ /dev/null
@@ -1,3933 +0,0 @@
-
-http://spdx.org/rdf/terms#;
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
-   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#;
->
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>6f9134b7d1c939593043b9e0ecb308fbc745c9af
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP102"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./examples/eventloop/main.c
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>bd2f85dccd23b76b9cf9900b8b2b86f0bf97421b
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP416"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_initjs_min.js
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP322"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_internal.h
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>b7ee0e88e6365390db594e5e1a90c383847cfd0f
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:created 
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime;>2016-12-08T20:32:53Z
-
-<_3:licenseListVersion>1.20
-http://spdx.org/rdf/terms#CreationInfo"/>
-<_3:creator>Organization: duktape.org
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP80"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./examples/coffee/README.rst
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_other"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP276"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_heap_stringtable.c
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>d70b4083ccd3b5dac32ad07e58d3132dc3390b79
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>f051b42ff42dc8655b9e17739f7cb7cb76bdf78d
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:algorithm 
rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
-
<_3:checksumValue>61db5ef1604240b33fa9e1e8825ad588076a5aef
-http://spdx.org/rdf/terms#Checksum"/>
-  
-  
-<_3:licenseConcluded rdf:resource="http://spdx.org/licenses/MIT"/>
-<_3:licenseInfoInFile rdf:resource="http://spdx.org/rdf/terms#none"/>
-<_3:copyrightText>Copyright 2013-2016 Duktape authors (see AUTHORS.rst in 
the Duktape distributable)
-<_3:checksum rdf:nodeID="svBMzJkP366"/>
-http://spdx.org/rdf/terms#File"/>
-<_3:fileName>./src-separate/duk_debug.h
-<_3:fileType rdf:resource="http://spdx.org/rdf/terms#fileType_source"/>
-  
-  
-<_3:algorithm 

[03/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
deleted file mode 100644
index 3010c80..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_lexer.h
+++ /dev/null
@@ -1,432 +0,0 @@
-/*
- *  Lexer defines.
- */
-
-#ifndef DUK_LEXER_H_INCLUDED
-#define DUK_LEXER_H_INCLUDED
-
-typedef void (*duk_re_range_callback)(void *user, duk_codepoint_t r1, 
duk_codepoint_t r2, duk_bool_t direct);
-
-/*
- *  A token is interpreted as any possible production of InputElementDiv
- *  and InputElementRegExp, see E5 Section 7 in its entirety.  Note that
- *  the E5 "Token" production does not cover all actual tokens of the
- *  language (which is explicitly stated in the specification, Section 7.5).
- *  Null and boolean literals are defined as part of both ReservedWord
- *  (E5 Section 7.6.1) and Literal (E5 Section 7.8) productions.  Here,
- *  null and boolean values have literal tokens, and are not reserved
- *  words.
- *
- *  Decimal literal negative/positive sign is -not- part of DUK_TOK_NUMBER.
- *  The number tokens always have a non-negative value.  The unary minus
- *  operator in "-1.0" is optimized during compilation to yield a single
- *  negative constant.
- *
- *  Token numbering is free except that reserved words are required to be
- *  in a continuous range and in a particular order.  See genstrings.py.
- */
-
-#define DUK_LEXER_INITCTX(ctx)duk_lexer_initctx((ctx))
-
-#define DUK_LEXER_SETPOINT(ctx,pt)duk_lexer_setpoint((ctx), (pt))
-
-#define DUK_LEXER_GETPOINT(ctx,pt)do { (pt)->offset = 
(ctx)->window[0].offset; \
-   (pt)->line = (ctx)->window[0].line; 
} while (0)
-
-/* currently 6 characters of lookup are actually needed (duk_lexer.c) */
-#define DUK_LEXER_WINDOW_SIZE 6
-#if defined(DUK_USE_LEXER_SLIDING_WINDOW)
-#define DUK_LEXER_BUFFER_SIZE 64
-#endif
-
-#define DUK_TOK_MINVAL0
-
-/* returned after EOF (infinite amount) */
-#define DUK_TOK_EOF   0
-
-/* identifier names (E5 Section 7.6) */
-#define DUK_TOK_IDENTIFIER1
-
-/* reserved words: keywords */
-#define DUK_TOK_START_RESERVED2
-#define DUK_TOK_BREAK 2
-#define DUK_TOK_CASE  3
-#define DUK_TOK_CATCH 4
-#define DUK_TOK_CONTINUE  5
-#define DUK_TOK_DEBUGGER  6
-#define DUK_TOK_DEFAULT   7
-#define DUK_TOK_DELETE8
-#define DUK_TOK_DO9
-#define DUK_TOK_ELSE  10
-#define DUK_TOK_FINALLY   11
-#define DUK_TOK_FOR   12
-#define DUK_TOK_FUNCTION  13
-#define DUK_TOK_IF14
-#define DUK_TOK_IN15
-#define DUK_TOK_INSTANCEOF16
-#define DUK_TOK_NEW   17
-#define DUK_TOK_RETURN18
-#define DUK_TOK_SWITCH19
-#define DUK_TOK_THIS  20
-#define DUK_TOK_THROW 21
-#define DUK_TOK_TRY   22
-#define DUK_TOK_TYPEOF23
-#define DUK_TOK_VAR   24
-#define DUK_TOK_CONST 25
-#define DUK_TOK_VOID  26
-#define DUK_TOK_WHILE 27
-#define DUK_TOK_WITH  28
-
-/* reserved words: future reserved words */
-#define DUK_TOK_CLASS 29
-#define DUK_TOK_ENUM  30
-#define DUK_TOK_EXPORT31
-#define DUK_TOK_EXTENDS   32
-#define DUK_TOK_IMPORT33
-#define DUK_TOK_SUPER 34
-
-/* "null", "true", and "false" are always reserved words.
- * Note that "get" and "set" are not!
- */
-#define DUK_TOK_NULL  35
-#define DUK_TOK_TRUE  36
-#define DUK_TOK_FALSE 37
-
-/* reserved words: additional future reserved words in strict mode */
-#define DUK_TOK_START_STRICT_RESERVED 38  /* inclusive */
-#define DUK_TOK_IMPLEMENTS38
-#define DUK_TOK_INTERFACE 39
-#define DUK_TOK_LET   

[52/52] nifi-minifi-cpp git commit: MINIFI-294 Required vs. optional fields in config YAML

2017-05-04 Thread aldrin
MINIFI-294 Required vs. optional fields in config YAML

Long description of the changes in this commit can be found in the
JIRA for MINFI-294. Basically, better checks are now in place and
in the case of missing required fields, better error messaging.
This builds upon improvements made in MINIFI-275, and also
updates the config.yml exampe in the README.md file to match the
code.

This closes #90.

Signed-off-by: Aldrin Piri 


Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/153b25b2
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/153b25b2
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/153b25b2

Branch: refs/heads/master
Commit: 153b25b2ed9f42380548e261277a2c545278c8bc
Parents: b26ac36
Author: Kevin Doran 
Authored: Wed May 3 18:22:14 2017 -0400
Committer: Aldrin Piri 
Committed: Thu May 4 15:02:56 2017 -0400

--
 README.md |   1 +
 libminifi/src/core/yaml/YamlConfiguration.cpp | 253 ++---
 2 files changed, 123 insertions(+), 131 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/153b25b2/README.md
--
diff --git a/README.md b/README.md
index 7baefbc..ea73cd7 100644
--- a/README.md
+++ b/README.md
@@ -255,6 +255,7 @@ Additionally, users can utilize the MiNiFi Toolkit 
Converter (version 0.0.1 - sc
 Connections:
 - name: TransferFilesToRPG
   id: 471deef6-2a6e-4a7d-912a-81cc17e3a207
+  source name: GetFile
   source id: 471deef6-2a6e-4a7d-912a-81cc17e3a206 
   source relationship name: success
   destination id: 471deef6-2a6e-4a7d-912a-81cc17e3a204

http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/153b25b2/libminifi/src/core/yaml/YamlConfiguration.cpp
--
diff --git a/libminifi/src/core/yaml/YamlConfiguration.cpp 
b/libminifi/src/core/yaml/YamlConfiguration.cpp
index 0429f2c..489bdaa 100644
--- a/libminifi/src/core/yaml/YamlConfiguration.cpp
+++ b/libminifi/src/core/yaml/YamlConfiguration.cpp
@@ -69,13 +69,12 @@ void YamlConfiguration::parseProcessorNodeYaml(
 YAML::Node procNode = iter->as();
 
 checkRequiredField(, "name", CONFIG_YAML_PROCESSORS_KEY);
-checkRequiredField(, "class", CONFIG_YAML_PROCESSORS_KEY);
-
 procCfg.name = procNode["name"].as();
 procCfg.id = getOrGenerateId();
 uuid_parse(procCfg.id.c_str(), uuid);
 logger_->log_debug("parseProcessorNode: name => [%s] id => [%s]",
procCfg.name, procCfg.id);
+checkRequiredField(, "class", CONFIG_YAML_PROCESSORS_KEY);
 procCfg.javaClass = procNode["class"].as();
 logger_->log_debug("parseProcessorNode: class => [%s]",
procCfg.javaClass);
@@ -98,79 +97,73 @@ void YamlConfiguration::parseProcessorNodeYaml(
 }
 processor->setName(procCfg.name);
 
-procCfg.maxConcurrentTasks = procNode["max concurrent tasks"]
-.as();
-logger_->log_debug("parseProcessorNode: max concurrent tasks => [%s]",
-   procCfg.maxConcurrentTasks);
-
+checkRequiredField(, "scheduling strategy", 
CONFIG_YAML_PROCESSORS_KEY);
 procCfg.schedulingStrategy = procNode["scheduling 
strategy"].as();
-logger_->log_debug("parseProcessorNode: scheduling strategy => [%s]",
-   procCfg.schedulingStrategy);
+logger_->log_debug("parseProcessorNode: scheduling strategy => [%s]", 
procCfg.schedulingStrategy);
 
+checkRequiredField(, "scheduling period", 
CONFIG_YAML_PROCESSORS_KEY);
 procCfg.schedulingPeriod = procNode["scheduling 
period"].as();
-logger_->log_debug("parseProcessorNode: scheduling period => [%s]",
-   procCfg.schedulingPeriod);
+logger_->log_debug("parseProcessorNode: scheduling period => [%s]", 
procCfg.schedulingPeriod);
 
-procCfg.penalizationPeriod = procNode["penalization 
period"].as();
-logger_->log_debug("parseProcessorNode: penalization period => [%s]",
-   procCfg.penalizationPeriod);
+if (procNode["max concurrent tasks"]) {
+  procCfg.maxConcurrentTasks = procNode["max concurrent 
tasks"].as();
+  logger_->log_debug("parseProcessorNode: max concurrent tasks => 
[%s]", procCfg.maxConcurrentTasks);
+}
 
-procCfg.yieldPeriod = procNode["yield period"].as();
-logger_->log_debug("parseProcessorNode: yield period => [%s]",
-   procCfg.yieldPeriod);
+if 

[33/52] [partial] nifi-minifi-cpp git commit: Remove libxml2, civetweb thirdparty.

2017-05-04 Thread aldrin
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b26ac36e/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
--
diff --git 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
 
b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
deleted file mode 100644
index 38677ba..000
--- 
a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/src-separate/duk_api_compile.c
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- *  Compilation and evaluation
- */
-
-#include "duk_internal.h"
-
-typedef struct duk__compile_raw_args duk__compile_raw_args;
-struct duk__compile_raw_args {
-   duk_size_t src_length;  /* should be first on 64-bit platforms */
-   const duk_uint8_t *src_buffer;
-   duk_uint_t flags;
-};
-
-/* Eval is just a wrapper now. */
-DUK_EXTERNAL duk_int_t duk_eval_raw(duk_context *ctx, const char *src_buffer, 
duk_size_t src_length, duk_uint_t flags) {
-   duk_uint_t comp_flags;
-   duk_int_t rc;
-
-   DUK_ASSERT_CTX_VALID(ctx);
-
-   /* Note: strictness is *not* inherited from the current Duktape/C.
-* This would be confusing because the current strictness state
-* depends on whether we're running inside a Duktape/C activation
-* (= strict mode) or outside of any activation (= non-strict mode).
-* See tests/api/test-eval-strictness.c for more discussion.
-*/
-
-   /* [ ... source? filename? ] (depends on flags) */
-
-   comp_flags = flags;
-   comp_flags |= DUK_COMPILE_EVAL;
-   rc = duk_compile_raw(ctx, src_buffer, src_length, comp_flags);  /* may 
be safe, or non-safe depending on flags */
-
-   /* [ ... closure/error ] */
-
-   if (rc != DUK_EXEC_SUCCESS) {
-   rc = DUK_EXEC_ERROR;
-   goto got_rc;
-   }
-
-   duk_push_global_object(ctx);  /* explicit 'this' binding, see GH-164 */
-
-   if (flags & DUK_COMPILE_SAFE) {
-   rc = duk_pcall_method(ctx, 0);
-   } else {
-   duk_call_method(ctx, 0);
-   rc = DUK_EXEC_SUCCESS;
-   }
-
-   /* [ ... result/error ] */
-
- got_rc:
-   if (flags & DUK_COMPILE_NORESULT) {
-   duk_pop(ctx);
-   }
-
-   return rc;
-}
-
-/* Helper which can be called both directly and with duk_safe_call(). */
-DUK_LOCAL duk_ret_t duk__do_compile(duk_context *ctx) {
-   duk_hthread *thr = (duk_hthread *) ctx;
-   duk__compile_raw_args *comp_args;
-   duk_uint_t flags;
-   duk_small_uint_t comp_flags;
-   duk_hcompiledfunction *h_templ;
-
-   DUK_ASSERT_CTX_VALID(ctx);
-
-   /* Note: strictness is not inherited from the current Duktape/C
-* context.  Otherwise it would not be possible to compile
-* non-strict code inside a Duktape/C activation (which is
-* always strict now).  See tests/api/test-eval-strictness.c
-* for discussion.
-*/
-
-   /* [ ... source? filename? _args ] (depends on flags) */
-
-   comp_args = (duk__compile_raw_args *) duk_require_pointer(ctx, -1);
-   flags = comp_args->flags;
-   duk_pop(ctx);
-
-   /* [ ... source? filename? ] */
-
-   if (flags & DUK_COMPILE_NOFILENAME) {
-   /* Automatic filename: 'eval' or 'input'. */
-   duk_push_hstring_stridx(ctx, (flags & DUK_COMPILE_EVAL) ? 
DUK_STRIDX_EVAL : DUK_STRIDX_INPUT);
-   }
-
-   /* [ ... source? filename ] */
-
-   if (!comp_args->src_buffer) {
-   duk_hstring *h_sourcecode;
-
-   h_sourcecode = duk_get_hstring(ctx, -2);
-   if ((flags & DUK_COMPILE_NOSOURCE) ||  /* args incorrect */
-   (h_sourcecode == NULL)) {  /* e.g. 
duk_push_string_file_raw() pushed undefined */
-   /* XXX: when this error is caused by a nonexistent
-* file given to duk_peval_file() or similar, the
-* error message is not the best possible.
-*/
-   DUK_ERROR_API(thr, DUK_STR_NO_SOURCECODE);
-   }
-   DUK_ASSERT(h_sourcecode != NULL);
-   comp_args->src_buffer = (const duk_uint8_t *) 
DUK_HSTRING_GET_DATA(h_sourcecode);
-   comp_args->src_length = (duk_size_t) 
DUK_HSTRING_GET_BYTELEN(h_sourcecode);
-   }
-   DUK_ASSERT(comp_args->src_buffer != NULL);
-
-   /* XXX: unnecessary translation of flags */
-   comp_flags = 0;
-   if (flags & DUK_COMPILE_EVAL) {
-   comp_flags |= DUK_JS_COMPILE_FLAG_EVAL;
-   }
-   if (flags & DUK_COMPILE_FUNCTION) {
-   comp_flags |= DUK_JS_COMPILE_FLAG_EVAL |
- DUK_JS_COMPILE_FLAG_FUNCEXPR;
-   }
-   if (flags & DUK_COMPILE_STRICT) {
-   comp_flags |= DUK_JS_COMPILE_FLAG_STRICT;
-   }
-
- 

  1   2   >