Move JSON_parser stuff out of global namespace
Esse commit está contido em:
@@ -38,7 +38,7 @@ SOFTWARE.
|
||||
#define MAX_LENGTH_OF_LONG 20
|
||||
static const char long_min_digits[] = "9223372036854775808";
|
||||
|
||||
using namespace HPHP;
|
||||
namespace HPHP {
|
||||
|
||||
#ifdef true
|
||||
# undef true
|
||||
@@ -865,3 +865,5 @@ bool JSON_parser(Variant &z, const char *p, int length, bool assoc/*<fb>*/,
|
||||
s_json_parser->error_code = JSON_ERROR_SYNTAX;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "hphp/runtime/base/complex_types.h"
|
||||
#include "hphp/runtime/base/string_buffer.h"
|
||||
|
||||
namespace HPHP {
|
||||
|
||||
void utf16_to_utf8(HPHP::StringBuffer &buf, unsigned short utf16);
|
||||
bool JSON_parser(HPHP::Variant &z, const char *p, int length,
|
||||
bool assoc/*<fb>*/, bool loose/*</fb>*/);
|
||||
@@ -38,4 +40,6 @@ json_error_codes json_get_last_error_code();
|
||||
const char *json_get_last_error_msg();
|
||||
void json_set_last_error_code(json_error_codes ec);
|
||||
|
||||
}
|
||||
|
||||
#endif // incl_HPHP_JSON_PARSER_H_
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário