mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Now use #pragma once
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| /* | /* | ||||||
| * malloc-free JSON parser for Arduino | * Arduino JSON library | ||||||
| * Benoit Blanchon 2014 - MIT License | * Benoit Blanchon 2014 - MIT License | ||||||
| */ | */ | ||||||
|  |  | ||||||
| #include "JsonArray.h" | #include "JsonArray.h" | ||||||
| #include "JsonHashTable.h" | #include "JsonHashTable.h" | ||||||
|   | |||||||
| @@ -1,10 +1,9 @@ | |||||||
| /* | /* | ||||||
|  * malloc-free JSON parser for Arduino |  * Arduino JSON library | ||||||
|  * Benoit Blanchon 2014 - MIT License |  * Benoit Blanchon 2014 - MIT License | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #ifndef __JSONARRAY_H | #pragma once | ||||||
| #define __JSONARRAY_H |  | ||||||
|  |  | ||||||
| #include "JsonObjectBase.h" | #include "JsonObjectBase.h" | ||||||
|  |  | ||||||
| @@ -37,6 +36,4 @@ private: | |||||||
|  |  | ||||||
| 	JsonArray(char* json, jsmntok_t* tokens); | 	JsonArray(char* json, jsmntok_t* tokens); | ||||||
| 	jsmntok_t* getToken(int index); | 	jsmntok_t* getToken(int index); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| #endif |  | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| /* | /* | ||||||
| * malloc-free JSON parser for Arduino | * Arduino JSON library | ||||||
| * Benoit Blanchon 2014 - MIT License | * Benoit Blanchon 2014 - MIT License | ||||||
| */ | */ | ||||||
|  |  | ||||||
| #include "JsonArray.h" | #include "JsonArray.h" | ||||||
|   | |||||||
| @@ -1,10 +1,9 @@ | |||||||
| /* | /* | ||||||
| * malloc-free JSON parser for Arduino | * Arduino JSON library | ||||||
| * Benoit Blanchon 2014 - MIT License | * Benoit Blanchon 2014 - MIT License | ||||||
| */ | */ | ||||||
|  |  | ||||||
| #ifndef __JSONHASHTABLE_H | #pragma once | ||||||
| #define __JSONHASHTABLE_H |  | ||||||
|  |  | ||||||
| #include "JsonObjectBase.h" | #include "JsonObjectBase.h" | ||||||
|  |  | ||||||
| @@ -34,6 +33,4 @@ private: | |||||||
|  |  | ||||||
| 	JsonHashTable(char* json, jsmntok_t* tokens); | 	JsonHashTable(char* json, jsmntok_t* tokens); | ||||||
| 	jsmntok_t* getToken(const char* key); | 	jsmntok_t* getToken(const char* key); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| #endif |  | ||||||
| @@ -1,8 +1,7 @@ | |||||||
| /* | /* | ||||||
|  * malloc-free JSON parser for Arduino | * Arduino JSON library | ||||||
|  * Benoit Blanchon 2014 | * Benoit Blanchon 2014 - MIT License | ||||||
|  * MIT License | */ | ||||||
|  */ |  | ||||||
|  |  | ||||||
| #include "JsonObjectBase.h" | #include "JsonObjectBase.h" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,11 +1,9 @@ | |||||||
| /* | /* | ||||||
|  * malloc-free JSON parser for Arduino | * Arduino JSON library | ||||||
|  * Benoit Blanchon 2014 | * Benoit Blanchon 2014 - MIT License | ||||||
|  * MIT License | */ | ||||||
|  */ |  | ||||||
|  |  | ||||||
| #ifndef __JSONOBJECTBASE_H | #pragma once | ||||||
| #define __JSONOBJECTBASE_H |  | ||||||
|  |  | ||||||
| #include "jsmn.h" | #include "jsmn.h" | ||||||
|  |  | ||||||
| @@ -47,6 +45,3 @@ protected: | |||||||
| 	char* json; | 	char* json; | ||||||
| 	jsmntok_t* tokens; | 	jsmntok_t* tokens; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,10 +1,9 @@ | |||||||
| /* | /* | ||||||
| * malloc-free JSON parser for Arduino | * Arduino JSON library | ||||||
| * Benoit Blanchon 2014 - MIT License | * Benoit Blanchon 2014 - MIT License | ||||||
| */ | */ | ||||||
|  |  | ||||||
| #ifndef __JSONPARSER_H | #pragma once | ||||||
| #define __JSONPARSER_H |  | ||||||
|  |  | ||||||
| #include "JsonHashTable.h" | #include "JsonHashTable.h" | ||||||
| #include "JsonArray.h" | #include "JsonArray.h" | ||||||
| @@ -63,7 +62,4 @@ private: | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	jsmntok_t tokens[MAX_TOKENS]; | 	jsmntok_t tokens[MAX_TOKENS]; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | /* | ||||||
|  | * Arduino JSON library | ||||||
|  | * Benoit Blanchon 2014 - MIT License | ||||||
|  | */ | ||||||
|  |  | ||||||
| #include "CppUnitTest.h" | #include "CppUnitTest.h" | ||||||
| #include "JsonParser.h" | #include "JsonParser.h" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | /* | ||||||
|  | * Arduino JSON library | ||||||
|  | * Benoit Blanchon 2014 - MIT License | ||||||
|  | */ | ||||||
|  |  | ||||||
| #include "CppUnitTest.h" | #include "CppUnitTest.h" | ||||||
| #include "JsonParser.h" | #include "JsonParser.h" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | /* | ||||||
|  | * Arduino JSON library | ||||||
|  | * Benoit Blanchon 2014 - MIT License | ||||||
|  | */ | ||||||
|  |  | ||||||
| #include "CppUnitTest.h" | #include "CppUnitTest.h" | ||||||
| #include "JsonParser.h" | #include "JsonParser.h" | ||||||
| #include <string> | #include <string> | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | /* | ||||||
|  | * Arduino JSON library | ||||||
|  | * Benoit Blanchon 2014 - MIT License | ||||||
|  | */ | ||||||
|  |  | ||||||
| #include "CppUnitTest.h" | #include "CppUnitTest.h" | ||||||
| #include "JsonParser.h" | #include "JsonParser.h" | ||||||
| #include <string> | #include <string> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user