Changeset 472
- Timestamp:
- 02/14/16 03:41:36 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/extvalue.cpp
r465 r472 252 252 tlsGetRef(ExtObject_serialization).remove(*this);//JSON only tracks recursion, does not track reuse 253 253 break; 254 case NativeSerialization:; //nop ( avoidwarning)254 case NativeSerialization:; //nop (just to avoid compiler warning) 255 255 } 256 256 … … 1010 1010 const char* ExtValue::deserialize_inner(const char* in) 1011 1011 { 1012 while(isspace(*in)) in++; 1012 1013 const char* ret = parseNumber(in); 1013 1014 if (ret) … … 1036 1037 while (*p) 1037 1038 { 1039 if (isspace(*p)) p++; 1038 1040 if (*p == ']') { p++; break; } 1039 1041 ret = tmp.deserialize(p); … … 1067 1069 while (*p) 1068 1070 { 1071 if (isspace(*p)) p++; 1069 1072 if (*p == '}') { p++; break; } 1070 1073 ret = args[1].deserialize(p); … … 1092 1095 return in + 4; 1093 1096 } 1097 else if (!strncmp(in, "true", 4)) 1098 { 1099 setInt(1); 1100 return in + 4; 1101 } 1102 else if (!strncmp(in, "false", 5)) 1103 { 1104 setInt(0); 1105 return in + 5; 1106 } 1094 1107 else if (!strncmp(in, "invalid", 9)) 1095 1108 { … … 1179 1192 tlsGetRef(ExtObject_serialization).begin(); 1180 1193 const char* ret = deserialize_inner(in); 1194 if (ret) while(isspace(*ret)) ret++; 1181 1195 tlsGetRef(ExtObject_serialization).end(); 1182 1196 return ret;
Note: See TracChangeset
for help on using the changeset viewer.