diff options
author | Roald J. van Loon <roaldvanloon@gmail.com> | 2012-12-24 13:10:57 +0100 |
---|---|---|
committer | Roald van Loon <roaldvanloon@gmail.com> | 2012-12-24 22:26:56 +0000 |
commit | 17ae36a5420eb4568f93ba3d9f185dfbc0a42918 (patch) | |
tree | ae06815a5638dea51b98466d81b6b0c5a46f987d /src/common/code_environment.cc | |
parent | 18001d059656224abbf7d92c1c54befd33ec8d6e (diff) | |
download | ceph-17ae36a5420eb4568f93ba3d9f185dfbc0a42918.tar.gz |
cleanup: changed order of #includes, global_context.h, debug.hwip-dout
- lots of rewriting of #include ordering (see below)
- renamed mdstypes.h to mds_types.h, same as {osd,mon}_types.h
- included global/global_context.h and global/debug.h where used
- fixed lots of duplicate includes
The order of #includes is now;
1. types include (include/types.h, mds/mds_types.h, etc)
2. system includes (like stl, boost, etc)
3. ceph includes (include/..)
4. ceph common (common/..)
5. ceph other (auth/.., os/.., global/.., etc)
6. list of messages/.., if used
7. local includes (headers from same module)
8. own header (<basename>.h)
"using namespace" stuff is always directly below #include, not intermixed with them
(WIP notice: most files have this implemented, but some not yet)
Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>
Diffstat (limited to 'src/common/code_environment.cc')
-rw-r--r-- | src/common/code_environment.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/code_environment.cc b/src/common/code_environment.cc index 58b27f86049..cf5db9b5481 100644 --- a/src/common/code_environment.cc +++ b/src/common/code_environment.cc @@ -12,17 +12,18 @@ * */ -#include "common/code_environment.h" - #include <errno.h> #include <iostream> #include <stdlib.h> #include <string.h> #include <string> + #if defined(__linux__) #include <sys/prctl.h> #endif +#include "code_environment.h" + code_environment_t g_code_env = CODE_ENVIRONMENT_UTILITY; extern "C" const char *code_environment_to_str(enum code_environment_t e) |