Now use #pragma once

This commit is contained in:
Benoît Blanchon
2014-07-03 13:58:08 +02:00
parent bae5c36f41
commit 78a920a5fc
11 changed files with 54 additions and 50 deletions

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,8 @@
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#include "CppUnitTest.h" #include "CppUnitTest.h"
#include "JsonParser.h" #include "JsonParser.h"

View File

@ -1,3 +1,8 @@
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#include "CppUnitTest.h" #include "CppUnitTest.h"
#include "JsonParser.h" #include "JsonParser.h"

View File

@ -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>

View File

@ -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>