Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 689A8200CA3 for ; Wed, 17 May 2017 19:49:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 673F5160BDB; Wed, 17 May 2017 17:49:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0DC87160BDE for ; Wed, 17 May 2017 19:49:53 +0200 (CEST) Received: (qmail 27131 invoked by uid 500); 17 May 2017 17:49:46 -0000 Mailing-List: contact commits-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list commits@geode.apache.org Received: (qmail 25420 invoked by uid 99); 17 May 2017 17:49:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2017 17:49:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F11B8DFFB5; Wed, 17 May 2017 17:49:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jbarrett@apache.org To: commits@geode.apache.org Date: Wed, 17 May 2017 17:50:27 -0000 Message-Id: <15f65f0df05e484aa44f0a75442f8a93@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [45/46] geode-native git commit: GEODE-2741: Fixes inclusion of unmanaged headers. archived-at: Wed, 17 May 2017 17:49:55 -0000 GEODE-2741: Fixes inclusion of unmanaged headers. Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/d58a5e30 Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/d58a5e30 Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/d58a5e30 Branch: refs/heads/develop Commit: d58a5e30d42ae38fd9a439fe875bb9096cdde386 Parents: 3cb20df Author: Jacob Barrett Authored: Wed May 17 03:26:35 2017 +0000 Committer: Jacob Barrett Committed: Wed May 17 03:26:35 2017 +0000 ---------------------------------------------------------------------- src/clicache/src/AttributesFactory.cpp | 2 ++ src/clicache/src/CqAttributesMutator.cpp | 3 +-- src/clicache/src/begin_native.hpp | 19 +++++++++++++++ src/clicache/src/end_native.hpp | 23 +++++++++++++++++-- .../src/native_conditional_unique_ptr.hpp | 19 +++++++++++++++ src/clicache/src/native_shared_ptr.hpp | 2 ++ src/clicache/src/native_unique_ptr.hpp | 19 +++++++++++++++ .../test/native_conditional_unqiue_ptrTests.cpp | 19 +++++++++++++++ src/clicache/test/native_shared_ptrTests.cpp | Bin 5153 -> 12434 bytes src/clicache/test/native_unique_ptrTests.cpp | 19 +++++++++++++++ src/tests/cli/QueryHelper/QueryStringsM.cpp | 8 +++++-- 11 files changed, 127 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/src/AttributesFactory.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/AttributesFactory.cpp b/src/clicache/src/AttributesFactory.cpp index 90a34b6..33f84ea 100644 --- a/src/clicache/src/AttributesFactory.cpp +++ b/src/clicache/src/AttributesFactory.cpp @@ -37,7 +37,9 @@ #include "impl/SafeConvert.hpp" #include "ExceptionTypes.hpp" +#include "begin_native.hpp" #include +#include "end_native.hpp" namespace Apache { http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/src/CqAttributesMutator.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/CqAttributesMutator.cpp b/src/clicache/src/CqAttributesMutator.cpp index 5184903..e1d9e32 100644 --- a/src/clicache/src/CqAttributesMutator.cpp +++ b/src/clicache/src/CqAttributesMutator.cpp @@ -15,9 +15,8 @@ * limitations under the License. */ -#include - #include "begin_native.hpp" +#include #include #include "end_native.hpp" http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/src/begin_native.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/begin_native.hpp b/src/clicache/src/begin_native.hpp index 14d9d47..5ee5877 100644 --- a/src/clicache/src/begin_native.hpp +++ b/src/clicache/src/begin_native.hpp @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the 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. + */ + #if defined(__begin_native__hpp__) #error Including begin_native.hpp mulitple times without end_native.hpp #endif @@ -20,3 +37,5 @@ // Disable native code generation warning #pragma warning(disable: 4793) + +#pragma managed(push, off) http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/src/end_native.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/end_native.hpp b/src/clicache/src/end_native.hpp index 1af8380..8a8a4ae 100644 --- a/src/clicache/src/end_native.hpp +++ b/src/clicache/src/end_native.hpp @@ -1,6 +1,25 @@ -#pragma pop_macro("nullptr") -#pragma pop_macro("_ALLOW_KEYWORD_MACROS") +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the 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. + */ + +#pragma managed(pop) #pragma warning(pop) +#pragma pop_macro("nullptr") +#pragma pop_macro("_ALLOW_KEYWORD_MACROS") + #undef __begin_native__hpp__ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/src/native_conditional_unique_ptr.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/native_conditional_unique_ptr.hpp b/src/clicache/src/native_conditional_unique_ptr.hpp index aff0b47..395fb29 100644 --- a/src/clicache/src/native_conditional_unique_ptr.hpp +++ b/src/clicache/src/native_conditional_unique_ptr.hpp @@ -1,6 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the 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. + */ + #pragma once +#include "begin_native.hpp" #include +#include "end_native.hpp" namespace Apache { http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/src/native_shared_ptr.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/native_shared_ptr.hpp b/src/clicache/src/native_shared_ptr.hpp index 0e40ff9..ebb0f21 100644 --- a/src/clicache/src/native_shared_ptr.hpp +++ b/src/clicache/src/native_shared_ptr.hpp @@ -1,6 +1,8 @@ #pragma once +#include "begin_native.hpp" #include +#include "end_native.hpp" namespace Apache { http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/src/native_unique_ptr.hpp ---------------------------------------------------------------------- diff --git a/src/clicache/src/native_unique_ptr.hpp b/src/clicache/src/native_unique_ptr.hpp index bd8ff5f..a14f698 100644 --- a/src/clicache/src/native_unique_ptr.hpp +++ b/src/clicache/src/native_unique_ptr.hpp @@ -1,6 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the 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. + */ + #pragma once +#include "begin_native.hpp" #include +#include "end_native.hpp" namespace Apache { http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/test/native_conditional_unqiue_ptrTests.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/test/native_conditional_unqiue_ptrTests.cpp b/src/clicache/test/native_conditional_unqiue_ptrTests.cpp index 74cdf34..59fea8d 100644 --- a/src/clicache/test/native_conditional_unqiue_ptrTests.cpp +++ b/src/clicache/test/native_conditional_unqiue_ptrTests.cpp @@ -1,5 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the 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. + */ + +#include "begin_native.hpp" #include #include +#include "end_native.hpp" #include #include "Utils.hpp" http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/test/native_shared_ptrTests.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/test/native_shared_ptrTests.cpp b/src/clicache/test/native_shared_ptrTests.cpp index 6cddd97..46bb70d 100644 Binary files a/src/clicache/test/native_shared_ptrTests.cpp and b/src/clicache/test/native_shared_ptrTests.cpp differ http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/clicache/test/native_unique_ptrTests.cpp ---------------------------------------------------------------------- diff --git a/src/clicache/test/native_unique_ptrTests.cpp b/src/clicache/test/native_unique_ptrTests.cpp index 393aed5..5ed9e81 100644 --- a/src/clicache/test/native_unique_ptrTests.cpp +++ b/src/clicache/test/native_unique_ptrTests.cpp @@ -1,5 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the 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. + */ + +#include "begin_native.hpp" #include #include +#include "end_native.hpp" #include #include "Utils.hpp" http://git-wip-us.apache.org/repos/asf/geode-native/blob/d58a5e30/src/tests/cli/QueryHelper/QueryStringsM.cpp ---------------------------------------------------------------------- diff --git a/src/tests/cli/QueryHelper/QueryStringsM.cpp b/src/tests/cli/QueryHelper/QueryStringsM.cpp index da40374..aab1745 100644 --- a/src/tests/cli/QueryHelper/QueryStringsM.cpp +++ b/src/tests/cli/QueryHelper/QueryStringsM.cpp @@ -15,6 +15,10 @@ * limitations under the License. */ +#include "begin_native.hpp" +#include +#include "end_native.hpp" + #include "QueryStringsM.hpp" #include "impl/ManagedString.hpp" @@ -35,9 +39,9 @@ namespace Apache { Apache::Geode::Client::ManagedString mg_pquery( pquery ); - auto nativeptr = std::make_unique( + auto nativeptr = std::unique_ptr(new testData::QueryStrings( static_cast( pcategory ), - mg_pquery.CharPtr, pisLargeResultset ); + mg_pquery.CharPtr, pisLargeResultset )); m_nativeptr = gcnew native_conditional_unique_ptr(std::move(nativeptr)); }