Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / utility / errorcodes.cpp
index 6df554854a674db374752e725856b82f22722c90..00c57aa67c4ac86d3f71fba0b1c96aaedf72d883 100644 (file)
@@ -1,10 +1,10 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2010,2011,2012, by the GROMACS development team, led by
- * David van der Spoel, Berk Hess, Erik Lindahl, and including many
- * others, as listed in the AUTHORS file in the top-level source
- * directory and at http://www.gromacs.org.
+ * Copyright (c) 2010,2011,2012,2013,2014, by the GROMACS development team, led by
+ * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
+ * and including many others, as listed in the AUTHORS file in the
+ * top-level source directory and at http://www.gromacs.org.
  *
  * GROMACS is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
  * \author Teemu Murtola <teemu.murtola@gmail.com>
  * \ingroup module_utility
  */
-#include "gromacs/utility/errorcodes.h"
+#include "gmxpre.h"
+
+#include "errorcodes.h"
 
 #include <cstdlib>
 
-#include "gromacs/legacyheaders/thread_mpi/mutex.h"
+#include "thread_mpi/mutex.h"
 
 #include "errorformat.h"
 
@@ -53,6 +55,9 @@ namespace gmx
 namespace
 {
 
+//! \addtogroup module_utility
+//! \{
+
 /*! \brief
  * Strings corresponding to gmx::ErrorCode values.
  *
@@ -94,9 +99,11 @@ void standardErrorHandler(int retcode, const char *msg,
 
 //! Global error handler set with setFatalErrorHandler().
 ErrorHandlerFunc g_errorHandler = standardErrorHandler;
-//! Mutex for protecting access to g_errorHandler.
+//! Mutex for protecting access to ::g_errorHandler.
 tMPI::mutex      handler_mutex;
 
+//! \}
+
 }   // namespace
 
 const char *getErrorCodeString(int errorcode)