diff options
Diffstat (limited to 'subversion/bindings/cxxhl/src/tristate.cpp')
-rw-r--r-- | subversion/bindings/cxxhl/src/tristate.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/subversion/bindings/cxxhl/src/tristate.cpp b/subversion/bindings/cxxhl/src/tristate.cpp new file mode 100644 index 0000000..10a2207 --- /dev/null +++ b/subversion/bindings/cxxhl/src/tristate.cpp @@ -0,0 +1,44 @@ +/** + * @copyright + * ==================================================================== + * 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. + * ==================================================================== + * @endcopyright + */ + +#include "svncxxhl/tristate.hpp" + +#include "svn_types.h" +#undef TRUE +#undef FALSE + +namespace subversion { +namespace cxxhl { +namespace version_1_9_dev { + +tristate::tristate(short value) throw() + : m_value(value) +{} + +const tristate tristate::TRUE = tristate(svn_tristate_true); +const tristate tristate::FALSE = tristate(svn_tristate_false); +const tristate tristate::UNKNOWN = tristate(svn_tristate_unknown); + +} // namespace version_1_9_dev +} // namespace cxxhl +} // namespace subversion |