From 707cc94fe52463870a9c6c8e2e66eaaa389e601d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 24 Feb 2009 15:16:26 +0200 Subject: Start tracking XSD/e with git after version 3.0.0 --- examples/cxx/hybrid/wildcard/body.cxx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 examples/cxx/hybrid/wildcard/body.cxx (limited to 'examples/cxx/hybrid/wildcard/body.cxx') diff --git a/examples/cxx/hybrid/wildcard/body.cxx b/examples/cxx/hybrid/wildcard/body.cxx new file mode 100644 index 0000000..e6bd164 --- /dev/null +++ b/examples/cxx/hybrid/wildcard/body.cxx @@ -0,0 +1,26 @@ +// file : examples/cxx/hybrid/wildcard/body.cxx +// author : Boris Kolpackov +// copyright : not copyrighted - public domain + +#include "body.hxx" + +namespace email +{ + void body:: + body_type (body::type t) + { + if (body_type_ == type_binary) + { + delete binary_; + binary_ = 0; + } + + body_type_ = t; + } + + void + destroy_body (void* p, size_t) + { + delete static_cast (p); + } +} -- cgit v1.1