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,5 +1,5 @@ | ||||
| /* | ||||
| * malloc-free JSON parser for Arduino | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
|   | ||||
| @@ -1,10 +1,9 @@ | ||||
| /* | ||||
|  * malloc-free JSON parser for Arduino | ||||
|  * Arduino JSON library | ||||
|  * Benoit Blanchon 2014 - MIT License | ||||
|  */ | ||||
|  | ||||
| #ifndef __JSONARRAY_H | ||||
| #define __JSONARRAY_H | ||||
| #pragma once | ||||
|  | ||||
| #include "JsonObjectBase.h" | ||||
|  | ||||
| @@ -38,5 +37,3 @@ private: | ||||
| 	JsonArray(char* json, jsmntok_t* tokens); | ||||
| 	jsmntok_t* getToken(int index); | ||||
| }; | ||||
|  | ||||
| #endif | ||||
| @@ -1,5 +1,5 @@ | ||||
| /* | ||||
| * malloc-free JSON parser for Arduino | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
|   | ||||
| @@ -1,10 +1,9 @@ | ||||
| /* | ||||
| * malloc-free JSON parser for Arduino | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #ifndef __JSONHASHTABLE_H | ||||
| #define __JSONHASHTABLE_H | ||||
| #pragma once | ||||
|  | ||||
| #include "JsonObjectBase.h" | ||||
|  | ||||
| @@ -35,5 +34,3 @@ private: | ||||
| 	JsonHashTable(char* json, jsmntok_t* tokens); | ||||
| 	jsmntok_t* getToken(const char* key); | ||||
| }; | ||||
|  | ||||
| #endif | ||||
| @@ -1,7 +1,6 @@ | ||||
| /* | ||||
|  * malloc-free JSON parser for Arduino | ||||
|  * Benoit Blanchon 2014 | ||||
|  * MIT License | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #include "JsonObjectBase.h" | ||||
|   | ||||
| @@ -1,11 +1,9 @@ | ||||
| /* | ||||
|  * malloc-free JSON parser for Arduino | ||||
|  * Benoit Blanchon 2014 | ||||
|  * MIT License | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #ifndef __JSONOBJECTBASE_H | ||||
| #define __JSONOBJECTBASE_H | ||||
| #pragma once | ||||
|  | ||||
| #include "jsmn.h" | ||||
|  | ||||
| @@ -47,6 +45,3 @@ protected: | ||||
| 	char* json; | ||||
| 	jsmntok_t* tokens; | ||||
| }; | ||||
|  | ||||
| #endif | ||||
|  | ||||
|   | ||||
| @@ -1,10 +1,9 @@ | ||||
| /* | ||||
| * malloc-free JSON parser for Arduino | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #ifndef __JSONPARSER_H | ||||
| #define __JSONPARSER_H | ||||
| #pragma once | ||||
|  | ||||
| #include "JsonHashTable.h" | ||||
| #include "JsonArray.h" | ||||
| @@ -64,6 +63,3 @@ private: | ||||
|  | ||||
| 	jsmntok_t tokens[MAX_TOKENS]; | ||||
| }; | ||||
|  | ||||
| #endif | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /* | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #include "CppUnitTest.h" | ||||
| #include "JsonParser.h" | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /* | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #include "CppUnitTest.h" | ||||
| #include "JsonParser.h" | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /* | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #include "CppUnitTest.h" | ||||
| #include "JsonParser.h" | ||||
| #include <string> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /* | ||||
| * Arduino JSON library | ||||
| * Benoit Blanchon 2014 - MIT License | ||||
| */ | ||||
|  | ||||
| #include "CppUnitTest.h" | ||||
| #include "JsonParser.h" | ||||
| #include <string> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user