summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-05-19 16:32:43 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-05-20 14:17:50 +0100
commit9653f95f75863870a9e6b1ffad8c0ab48fa3fa4d (patch)
treef2b46c3c25f91e83e79b5cbeade943dfd4539e12 /cli
parenta6b011b102975ab75cf5f130ec1be93b24d913ee (diff)
common,cli,wrappers,retrace,gui: Use #pragma once.
Smaller footprint, and simplifies refactoring.
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.hpp4
-rw-r--r--cli/cli_pager.hpp4
-rw-r--r--cli/cli_resources.hpp4
-rw-r--r--cli/cli_retrace.hpp4
-rw-r--r--cli/pickle.hpp4
5 files changed, 5 insertions, 15 deletions
diff --git a/cli/cli.hpp b/cli/cli.hpp
index 088f0e8c..81405651 100644
--- a/cli/cli.hpp
+++ b/cli/cli.hpp
@@ -25,8 +25,7 @@
*
*********************************************************************/
-#ifndef _APITRACE_CLI_HPP_
-#define _APITRACE_CLI_HPP_
+#pragma once
struct Command {
@@ -52,4 +51,3 @@ extern const Command sed_command;
extern const Command trace_command;
extern const Command trim_command;
-#endif /* _APITRACE_CLI_HPP_ */
diff --git a/cli/cli_pager.hpp b/cli/cli_pager.hpp
index 95d98781..197d712f 100644
--- a/cli/cli_pager.hpp
+++ b/cli/cli_pager.hpp
@@ -24,12 +24,10 @@
**************************************************************************/
-#ifndef _CLI_PAGER_HPP_
-#define _CLI_PAGER_HPP_
+#pragma once
void
pipepager(void);
-#endif /* _CLI_PAGER_HPP_ */
diff --git a/cli/cli_resources.hpp b/cli/cli_resources.hpp
index ee3882be..27b883c3 100644
--- a/cli/cli_resources.hpp
+++ b/cli/cli_resources.hpp
@@ -23,8 +23,7 @@
*
**************************************************************************/
-#ifndef _CLI_RESOURCES_HPP_
-#define _CLI_RESOURCES_HPP_
+#pragma once
#include <stdlib.h>
@@ -43,4 +42,3 @@ os::String
findWrapper(const char *wrapperFilename, bool verbose = false);
-#endif /* _CLI_RESOURCES_HPP_ */
diff --git a/cli/cli_retrace.hpp b/cli/cli_retrace.hpp
index 0dfa823e..6df0fbe6 100644
--- a/cli/cli_retrace.hpp
+++ b/cli/cli_retrace.hpp
@@ -25,8 +25,7 @@
*
*********************************************************************/
-#ifndef _CLI_RETRACE_HPP_
-#define _CLI_RETRACE_HPP_
+#pragma once
#include <vector>
@@ -43,4 +42,3 @@ executeRetrace(const std::vector<const char *> & opts,
const char *traceName);
-#endif /* _CLI_RETRACE_HPP_ */
diff --git a/cli/pickle.hpp b/cli/pickle.hpp
index 20dbb13d..cbdacc2a 100644
--- a/cli/pickle.hpp
+++ b/cli/pickle.hpp
@@ -27,8 +27,7 @@
* Python pickle writer
*/
-#ifndef _PICKLE_HPP_
-#define _PICKLE_HPP_
+#pragma once
#include <assert.h>
#include <stddef.h>
@@ -385,4 +384,3 @@ protected:
}
};
-#endif /* _Pickle_HPP_ */