Skip to content

Commit

Permalink
api: Switch to "#pragma once" as include guard
Browse files Browse the repository at this point in the history
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
  • Loading branch information
Pekka Enberg authored and avikivity committed Jul 22, 2015
1 parent e57fe36 commit dcbbafd
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 61 deletions.
4 changes: 1 addition & 3 deletions api/api.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_API_HH_
#define API_API_HH_
#pragma once

#include "http/httpd.hh"
#include "json/json_elements.hh"
Expand Down Expand Up @@ -105,4 +104,3 @@ future<json::json_return_type> sum_stats(distributed<T>& d, uint64_t F::*f) {
}

}
#endif /* API_API_HH_ */
7 changes: 1 addition & 6 deletions api/cache_service.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_CACHE_SERVICE_HH_
#define API_CACHE_SERVICE_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,7 +11,3 @@ namespace api {
void set_cache_service(http_context& ctx, routes& r);

}



#endif /* API_CACHE_SERVICE_HH_ */
7 changes: 1 addition & 6 deletions api/collectd.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_COLLECTD_HH_
#define API_COLLECTD_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,7 +11,3 @@ namespace api {
void set_collectd(http_context& ctx, routes& r);

}



#endif /* API_COLLECTD_HH_ */
5 changes: 1 addition & 4 deletions api/column_family.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_COLUMN_FAMILY_HH_
#define API_COLUMN_FAMILY_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,5 +11,3 @@ namespace api {
void set_column_family(http_context& ctx, routes& r);

}

#endif /* API_COLUMN_FAMILY_HH_ */
5 changes: 1 addition & 4 deletions api/commitlog.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_COMMITLOG_SERVICE_HH_
#define API_COMMITLOG_SERVICE_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,5 +11,3 @@ namespace api {
void set_commitlog(http_context& ctx, routes& r);

}

#endif /* API_COMMITLOG_SERVICE_HH_ */
7 changes: 1 addition & 6 deletions api/compaction_manager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_COMPACTION_MANAGER_HH_
#define API_COMPACTION_MANAGER_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,7 +11,3 @@ namespace api {
void set_compaction_manager(http_context& ctx, routes& r);

}



#endif /* API_COMPACTION_MANAGER_HH_ */
5 changes: 1 addition & 4 deletions api/endpoint_snitch.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_ENDPOINT_SNITCH_HH_
#define API_ENDPOINT_SNITCH_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,5 +11,3 @@ namespace api {
void set_endpoint_snitch(http_context& ctx, routes& r);

}

#endif /* API_ENDPOINT_SNITCH_HH_ */
7 changes: 1 addition & 6 deletions api/failure_detector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_FAILURE_DETECTOR_HH_
#define API_FAILURE_DETECTOR_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,7 +11,3 @@ namespace api {
void set_failure_detector(http_context& ctx, routes& r);

}



#endif /* API_FAILURE_DETECTOR_HH_ */
5 changes: 1 addition & 4 deletions api/gossiper.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_GOSSIPER_HH_
#define API_GOSSIPER_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,5 +11,3 @@ namespace api {
void set_gossiper(http_context& ctx, routes& r);

}

#endif /* API_GOSSIPER_HH_ */
7 changes: 1 addition & 6 deletions api/hinted_handoff.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_HINTED_HANDOFF_HH_
#define API_HINTED_HANDOFF_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,7 +11,3 @@ namespace api {
void set_hinted_handoff(http_context& ctx, routes& r);

}



#endif /* API_HINTED_HANDOFF_HH_ */
5 changes: 1 addition & 4 deletions api/messaging_service.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_MESSAGING_SERVICE_HH_
#define API_MESSAGING_SERVICE_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,5 +11,3 @@ namespace api {
void set_messaging_service(http_context& ctx, routes& r);

}

#endif /* API_MESSAGING_SERVICE_HH_ */
5 changes: 1 addition & 4 deletions api/storage_proxy.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_STORAGE_PROXY_HH_
#define API_STORAGE_PROXY_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,5 +11,3 @@ namespace api {
void set_storage_proxy(http_context& ctx, routes& r);

}

#endif /* API_STORAGE_PROXY_HH_ */
5 changes: 1 addition & 4 deletions api/storage_service.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* Copyright 2015 Cloudius Systems
*/

#ifndef API_STORAGE_SERVICE_HH_
#define API_STORAGE_SERVICE_HH_
#pragma once

#include "api.hh"

Expand All @@ -12,5 +11,3 @@ namespace api {
void set_storage_service(http_context& ctx, routes& r);

}

#endif /* API_APP_HH_ */

0 comments on commit dcbbafd

Please sign in to comment.