Fix all header defines
This commit is contained in:
@@ -35,8 +35,8 @@ static void initJsonEscape()
|
||||
static void outputEscape()
|
||||
{
|
||||
printf( "// Automatically generated file. Do not modify.\n"
|
||||
"#ifndef __UNIVALUE_ESCAPES_H__\n"
|
||||
"#define __UNIVALUE_ESCAPES_H__\n"
|
||||
"#ifndef BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H\n"
|
||||
"#define BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H\n"
|
||||
"static const char *escapes[256] = {\n");
|
||||
|
||||
for (unsigned int i = 0; i < 256; i++) {
|
||||
@@ -66,7 +66,7 @@ static void outputEscape()
|
||||
}
|
||||
|
||||
printf( "};\n"
|
||||
"#endif // __UNIVALUE_ESCAPES_H__\n");
|
||||
"#endif // BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H\n");
|
||||
}
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// Distributed under the MIT/X11 software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef __UNIVALUE_H__
|
||||
#define __UNIVALUE_H__
|
||||
#ifndef BITCOIN_UNIVALUE_UNIVALUE_H
|
||||
#define BITCOIN_UNIVALUE_UNIVALUE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
@@ -152,4 +152,4 @@ extern enum jtokentype getJsonToken(std::string& tokenVal,
|
||||
unsigned int& consumed, const char *raw);
|
||||
extern const char *uvTypeName(UniValue::VType t);
|
||||
|
||||
#endif // __UNIVALUE_H__
|
||||
#endif // BITCOIN_UNIVALUE_UNIVALUE_H
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Automatically generated file. Do not modify.
|
||||
#ifndef __UNIVALUE_ESCAPES_H__
|
||||
#define __UNIVALUE_ESCAPES_H__
|
||||
#ifndef BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H
|
||||
#define BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H
|
||||
static const char *escapes[256] = {
|
||||
NULL,
|
||||
NULL,
|
||||
@@ -259,4 +259,4 @@ static const char *escapes[256] = {
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
#endif // __UNIVALUE_ESCAPES_H__
|
||||
#endif // BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H
|
||||
|
||||
Reference in New Issue
Block a user