[DEV] replace 'include guard' with 'pragma once'

This commit is contained in:
Edouard DUPIN 2016-02-02 21:18:54 +01:00
parent 33204c6cff
commit e786cd605c
15 changed files with 22 additions and 79 deletions

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_ARRAY_H__
#define __ETK_JSON_ARRAY_H__
#pragma once
#include <etk/types.h>
#include <ejson/Value.h>
@ -169,7 +167,5 @@ namespace ejson {
virtual bool transfertIn(std11::shared_ptr<ejson::Value> _obj);
virtual std11::shared_ptr<ejson::Value> clone() const;
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_BOOLEAN_H__
#define __ETK_JSON_BOOLEAN_H__
#pragma once
#include <etk/types.h>
#include <ejson/Value.h>
@ -53,7 +51,5 @@ namespace ejson {
virtual bool transfertIn(std11::shared_ptr<ejson::Value> _obj);
virtual std11::shared_ptr<ejson::Value> clone() const;
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_NULL_H__
#define __ETK_JSON_NULL_H__
#pragma once
#include <etk/types.h>
#include <ejson/Value.h>
@ -31,7 +29,7 @@ namespace ejson {
virtual bool transfertIn(std11::shared_ptr<ejson::Value> _obj);
virtual std11::shared_ptr<ejson::Value> clone() const;
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_NUMBER_H__
#define __ETK_JSON_NUMBER_H__
#pragma once
#include <etk/types.h>
#include <ejson/Value.h>
@ -65,7 +63,6 @@ namespace ejson {
virtual bool transfertIn(std11::shared_ptr<ejson::Value> _obj);
virtual std11::shared_ptr<ejson::Value> clone() const;
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_OBJECT_H__
#define __ETK_JSON_OBJECT_H__
#pragma once
#include <etk/types.h>
#include <etk/Hash.h>
@ -215,7 +213,5 @@ namespace ejson {
virtual std11::shared_ptr<ejson::Value> clone() const;
virtual std11::shared_ptr<ejson::Object> cloneObj() const;
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_STRING_H__
#define __ETK_JSON_STRING_H__
#pragma once
#include <etk/types.h>
#include <ejson/Value.h>
@ -51,7 +49,5 @@ namespace ejson {
virtual bool transfertIn(std11::shared_ptr<ejson::Value> _obj);
virtual std11::shared_ptr<ejson::Value> clone() const;
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_VALUE_H__
#define __ETK_JSON_VALUE_H__
#pragma once
#include <etk/types.h>
#include <memory>
@ -312,5 +310,3 @@ namespace ejson {
#include <ejson/Object.h>
#include <ejson/String.h>
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __EJSON_DEBUG_H__
#define __EJSON_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -39,4 +37,3 @@ namespace ejson {
} \
} while (0)
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ETK_JSON_H__
#define __ETK_JSON_H__
#pragma once
#include <ejson/Value.h>
#include <vector>
@ -86,6 +84,5 @@ namespace ejson {
//__LINE__, __class__, __func__
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __EJSON_TEST_ALL_H__
#define __EJSON_TEST_ALL_H__
#pragma once
#include "testCommon.h"
#include <gtest/gtest.h>
@ -311,6 +308,4 @@ TEST(TestAll, testGeneric5) {
localTest(base, base, -1);
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __EJSON_TEST_BOOLEAN_H__
#define __EJSON_TEST_BOOLEAN_H__
#pragma once
#include "testCommon.h"
#include <gtest/gtest.h>
@ -49,4 +46,3 @@ TEST(TestBoolean, testBaseFalse2) {
localTest(refOutputBoolean2, "{ tmpElement:False }\n", 1);
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __EJSON_TEST_COMMON_H__
#define __EJSON_TEST_COMMON_H__
#pragma once
#include <etk/types.h>
#include <test-debug/debug.h>
@ -57,4 +54,3 @@ static void localTest(const std::string& _ref, const std::string& _input, int32_
}
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __EJSON_TEST_DOCUMENT_H__
#define __EJSON_TEST_DOCUMENT_H__
#pragma once
#include "testCommon.h"
#include <gtest/gtest.h>
@ -22,5 +19,3 @@ TEST(TestDocument, testTabbedDoc) {
localTest(refOutputDocument, "{ \t\r }\n", -1);
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __EJSON_TEST_NULL_H__
#define __EJSON_TEST_NULL_H__
#pragma once
#include "testCommon.h"
#include <gtest/gtest.h>
@ -27,4 +24,3 @@ TEST(TestNull, testTabbedNullElementNoPThese) {
localTest(refOutputNull, "tmpElement:null\n", -1);
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __EJSON_TEST_NUMBER_H__
#define __EJSON_TEST_NUMBER_H__
#pragma once
#include "testCommon.h"
#include <gtest/gtest.h>
@ -30,4 +27,3 @@ TEST(TestNumber, testFloat) {
localTest("{\n\t\"tmpElement\": -956.256000\n}\n", "{tmpElement : -956.256}\n", -1);
}
#endif