fix: neat a dedicated translation unit for definitions

...yes, sometimes we even want to emit code ;-)
This commit is contained in:
Fischlurch 2015-01-02 11:26:27 +01:00
parent 4e597cf0ce
commit cd85b3425e
2 changed files with 46 additions and 1 deletions

View file

@ -97,7 +97,8 @@ namespace diff{
namespace error = lumiera::error;
LUMIERA_ERROR_DEFINE(DIFF_CONFLICT, "Collision in diff application: contents of target not as expected.");
LUMIERA_ERROR_DECLARE(DIFF_CONFLICT); ///< Collision in diff application: contents of target not as expected.
/**
* Definition frame for a language to describe differences in data structures.

44
src/lib/diff/diff.cpp Normal file
View file

@ -0,0 +1,44 @@
/*
Diff - common helpers for the diff handling framework
Copyright (C) Lumiera.org
2015, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *****************************************************/
/** @file diff.cpp
** Diff handling framework support code.
** This translation unit emits code used by the implementation
** of generic functionality
**
** @see diff-language.hpp
**
*/
#include "lib/error.hpp"
#include "lib/diff/diff-language.hpp"
namespace lib {
namespace diff{
LUMIERA_ERROR_DEFINE(DIFF_CONFLICT, "Collision in diff application: contents of target not as expected.");
}} // namespace lib::diff