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
* Benoit Blanchon 2014 - MIT License
*/
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#include "JsonArray.h"
#include "JsonHashTable.h"

View File

@ -1,10 +1,9 @@
/*
* malloc-free JSON parser for Arduino
* Benoit Blanchon 2014 - MIT License
*/
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#ifndef __JSONARRAY_H
#define __JSONARRAY_H
#pragma once
#include "JsonObjectBase.h"
@ -37,6 +36,4 @@ private:
JsonArray(char* json, jsmntok_t* tokens);
jsmntok_t* getToken(int index);
};
#endif
};

View File

@ -1,6 +1,6 @@
/*
* malloc-free JSON parser for Arduino
* Benoit Blanchon 2014 - MIT License
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#include "JsonArray.h"

View File

@ -1,10 +1,9 @@
/*
* malloc-free JSON parser for Arduino
* Benoit Blanchon 2014 - MIT License
*/
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#ifndef __JSONHASHTABLE_H
#define __JSONHASHTABLE_H
#pragma once
#include "JsonObjectBase.h"
@ -34,6 +33,4 @@ private:
JsonHashTable(char* json, jsmntok_t* tokens);
jsmntok_t* getToken(const char* key);
};
#endif
};

View File

@ -1,8 +1,7 @@
/*
* malloc-free JSON parser for Arduino
* Benoit Blanchon 2014
* MIT License
*/
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#include "JsonObjectBase.h"

View File

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

View File

@ -1,10 +1,9 @@
/*
* malloc-free JSON parser for Arduino
* Benoit Blanchon 2014 - MIT License
*/
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#ifndef __JSONPARSER_H
#define __JSONPARSER_H
#pragma once
#include "JsonHashTable.h"
#include "JsonArray.h"
@ -63,7 +62,4 @@ private:
}
jsmntok_t tokens[MAX_TOKENS];
};
#endif
};

View File

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

View File

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

View File

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

View File

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