/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | c_service_driver_code_emitter.cpp | 62 StringBuilder sb; in EmitLowDriverSourceFile() local 64 EmitLicense(sb); in EmitLowDriverSourceFile() 65 sb.Append("\n"); in EmitLowDriverSourceFile() 66 EmitLowDriverInclusions(sb); in EmitLowDriverSourceFile() 67 sb.Append("\n"); in EmitLowDriverSourceFile() 68 EmitLogTagMacro(sb, FileName(baseName_ + "Driver")); in EmitLowDriverSourceFile() 69 sb.Append("\n"); in EmitLowDriverSourceFile() 70 EmitLowDriverBind(sb); in EmitLowDriverSourceFile() 71 sb.Append("\n"); in EmitLowDriverSourceFile() 72 EmitDriverInit(sb); in EmitLowDriverSourceFile() [all …]
|
D | cpp_service_driver_code_emitter.cpp | 45 StringBuilder sb; in EmitDriverSourceFile() local 47 EmitLicense(sb); in EmitDriverSourceFile() 48 EmitDriverInclusions(sb); in EmitDriverSourceFile() 49 sb.Append("\n"); in EmitDriverSourceFile() 50 EmitLogTagMacro(sb, FileName(baseName_ + "Driver")); in EmitDriverSourceFile() 51 sb.Append("\n"); in EmitDriverSourceFile() 52 EmitDriverUsings(sb); in EmitDriverSourceFile() 53 sb.Append("\n"); in EmitDriverSourceFile() 54 EmitDriverServiceDecl(sb); in EmitDriverSourceFile() 55 sb.Append("\n"); in EmitDriverSourceFile() [all …]
|
D | c_interface_code_emitter.cpp | 54 StringBuilder sb; in EmitLowModeInterfaceHeaderFile() local 56 EmitLicense(sb); in EmitLowModeInterfaceHeaderFile() 57 EmitHeadMacro(sb, interfaceFullName_); in EmitLowModeInterfaceHeaderFile() 58 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile() 59 EmitImportInclusions(sb); in EmitLowModeInterfaceHeaderFile() 60 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile() 61 EmitHeadExternC(sb); in EmitLowModeInterfaceHeaderFile() 62 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile() 63 EmitInterfaceVersionMacro(sb); in EmitLowModeInterfaceHeaderFile() 65 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile() [all …]
|
D | c_client_proxy_code_emitter.cpp | 55 StringBuilder sb; in EmitPassthroughProxySourceFile() local 57 EmitLicense(sb); in EmitPassthroughProxySourceFile() 58 EmitPassthroughProxyInclusions(sb); in EmitPassthroughProxySourceFile() 59 sb.Append("\n"); in EmitPassthroughProxySourceFile() 60 EmitLogTagMacro(sb, FileName(proxyName_)); in EmitPassthroughProxySourceFile() 61 sb.Append("\n"); in EmitPassthroughProxySourceFile() 62 EmitProxyGetMethodImpl(sb); in EmitPassthroughProxySourceFile() 63 sb.Append("\n"); in EmitPassthroughProxySourceFile() 64 EmitPassthroughGetInstanceMethod(sb); in EmitPassthroughProxySourceFile() 65 sb.Append("\n"); in EmitPassthroughProxySourceFile() [all …]
|
D | c_service_impl_code_emitter.cpp | 62 StringBuilder sb; in EmitLowServiceImplHeaderFile() local 64 sb.Append("\n"); in EmitLowServiceImplHeaderFile() 65 EmitLicense(sb); in EmitLowServiceImplHeaderFile() 66 EmitHeadMacro(sb, implFullName_); in EmitLowServiceImplHeaderFile() 67 EmitLowServiceImplInclusions(sb); in EmitLowServiceImplHeaderFile() 68 sb.Append("\n"); in EmitLowServiceImplHeaderFile() 69 EmitHeadExternC(sb); in EmitLowServiceImplHeaderFile() 70 sb.Append("\n"); in EmitLowServiceImplHeaderFile() 71 EmitLowServiceImplDefinition(sb); in EmitLowServiceImplHeaderFile() 72 sb.Append("\n"); in EmitLowServiceImplHeaderFile() [all …]
|
D | c_service_stub_code_emitter.cpp | 51 StringBuilder sb; in EmitServiceStubHeaderFile() local 53 EmitLicense(sb); in EmitServiceStubHeaderFile() 54 EmitHeadMacro(sb, stubFullName_); in EmitServiceStubHeaderFile() 55 sb.Append("\n"); in EmitServiceStubHeaderFile() 56 EmitStubHeaderInclusions(sb); in EmitServiceStubHeaderFile() 57 sb.Append("\n"); in EmitServiceStubHeaderFile() 58 EmitHeadExternC(sb); in EmitServiceStubHeaderFile() 59 sb.Append("\n"); in EmitServiceStubHeaderFile() 60 EmitCbServiceStubDef(sb); in EmitServiceStubHeaderFile() 62 sb.Append("\n"); in EmitServiceStubHeaderFile() [all …]
|
D | java_client_proxy_code_emitter.cpp | 42 StringBuilder sb; in EmitProxyFile() local 44 EmitLicense(sb); in EmitProxyFile() 45 EmitPackage(sb); in EmitProxyFile() 46 sb.Append("\n"); in EmitProxyFile() 47 EmitProxyImports(sb); in EmitProxyFile() 48 sb.Append("\n"); in EmitProxyFile() 49 EmitProxyImpl(sb); in EmitProxyFile() 51 std::string data = sb.ToString(); in EmitProxyFile() 57 void JavaClientProxyCodeEmitter::EmitProxyImports(StringBuilder &sb) const in EmitProxyImports() 59 EmitProxyCorelibImports(sb); in EmitProxyImports() [all …]
|
D | c_custom_types_code_emitter.cpp | 55 StringBuilder sb; in EmitPassthroughCustomTypesHeaderFile() local 57 EmitLicense(sb); in EmitPassthroughCustomTypesHeaderFile() 58 EmitHeadMacro(sb, baseName_); in EmitPassthroughCustomTypesHeaderFile() 59 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile() 60 EmitPassthroughHeaderInclusions(sb); in EmitPassthroughCustomTypesHeaderFile() 61 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile() 62 EmitHeadExternC(sb); in EmitPassthroughCustomTypesHeaderFile() 63 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile() 64 EmitCustomTypeDecls(sb); in EmitPassthroughCustomTypesHeaderFile() 65 EmitTailExternC(sb); in EmitPassthroughCustomTypesHeaderFile() [all …]
|
D | cpp_custom_types_code_emitter.cpp | 52 StringBuilder sb; in EmitPassthroughCustomTypesHeaderFile() local 54 EmitLicense(sb); in EmitPassthroughCustomTypesHeaderFile() 55 EmitHeadMacro(sb, marcoName); in EmitPassthroughCustomTypesHeaderFile() 56 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile() 57 EmitPassthroughHeaderFileInclusions(sb); in EmitPassthroughCustomTypesHeaderFile() 58 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile() 59 EmitBeginNamespace(sb); in EmitPassthroughCustomTypesHeaderFile() 60 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile() 61 EmitUsingNamespace(sb); in EmitPassthroughCustomTypesHeaderFile() 62 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile() [all …]
|
D | cpp_interface_code_emitter.cpp | 49 StringBuilder sb; in EmitInterfaceHeaderFile() local 51 EmitLicense(sb); in EmitInterfaceHeaderFile() 52 EmitHeadMacro(sb, interfaceFullName_); in EmitInterfaceHeaderFile() 53 sb.Append("\n"); in EmitInterfaceHeaderFile() 54 EmitInterfaceInclusions(sb); in EmitInterfaceHeaderFile() 56 sb.Append("\n"); in EmitInterfaceHeaderFile() 57 EmitInterfaceBuffSizeMacro(sb); in EmitInterfaceHeaderFile() 59 sb.Append("\n"); in EmitInterfaceHeaderFile() 60 EmitBeginNamespace(sb); in EmitInterfaceHeaderFile() 61 EmitUsingNamespace(sb); in EmitInterfaceHeaderFile() [all …]
|
D | cpp_service_stub_code_emitter.cpp | 44 StringBuilder sb; in EmitStubHeaderFile() local 46 EmitLicense(sb); in EmitStubHeaderFile() 47 EmitHeadMacro(sb, stubFullName_); in EmitStubHeaderFile() 48 sb.Append("\n"); in EmitStubHeaderFile() 49 EmitStubHeaderInclusions(sb); in EmitStubHeaderFile() 50 sb.Append("\n"); in EmitStubHeaderFile() 51 EmitStubDecl(sb); in EmitStubHeaderFile() 52 sb.Append("\n"); in EmitStubHeaderFile() 53 EmitTailMacro(sb, stubFullName_); in EmitStubHeaderFile() 55 std::string data = sb.ToString(); in EmitStubHeaderFile() [all …]
|
D | cpp_client_proxy_code_emitter.cpp | 54 StringBuilder sb; in EmitProxyHeaderFile() local 56 EmitLicense(sb); in EmitProxyHeaderFile() 57 EmitHeadMacro(sb, proxyFullName_); in EmitProxyHeaderFile() 58 sb.Append("\n"); in EmitProxyHeaderFile() 59 EmitProxyHeaderInclusions(sb); in EmitProxyHeaderFile() 60 sb.Append("\n"); in EmitProxyHeaderFile() 61 EmitBeginNamespace(sb); in EmitProxyHeaderFile() 62 sb.Append("\n"); in EmitProxyHeaderFile() 63 EmitProxyDecl(sb, ""); in EmitProxyHeaderFile() 64 sb.Append("\n"); in EmitProxyHeaderFile() [all …]
|
D | cpp_service_impl_code_emitter.cpp | 50 StringBuilder sb; in EmitImplHeaderFile() local 52 EmitLicense(sb); in EmitImplHeaderFile() 53 EmitHeadMacro(sb, implFullName_); in EmitImplHeaderFile() 54 sb.Append("\n"); in EmitImplHeaderFile() 55 EmitServiceImplInclusions(sb); in EmitImplHeaderFile() 56 sb.Append("\n"); in EmitImplHeaderFile() 57 EmitServiceImplDecl(sb); in EmitImplHeaderFile() 58 sb.Append("\n"); in EmitImplHeaderFile() 59 EmitTailMacro(sb, implFullName_); in EmitImplHeaderFile() 61 std::string data = sb.ToString(); in EmitImplHeaderFile() [all …]
|
D | java_client_interface_code_emitter.cpp | 43 StringBuilder sb; in EmitInterfaceFile() local 45 EmitLicense(sb); in EmitInterfaceFile() 46 EmitPackage(sb); in EmitInterfaceFile() 47 sb.Append("\n"); in EmitInterfaceFile() 48 EmitInterfaceImports(sb); in EmitInterfaceFile() 49 sb.Append("\n"); in EmitInterfaceFile() 50 EmitInterfaceDefinition(sb); in EmitInterfaceFile() 52 std::string data = sb.ToString(); in EmitInterfaceFile() 58 void JavaClientInterfaceCodeEmitter::EmitInterfaceImports(StringBuilder &sb) const in EmitInterfaceImports() 60 EmitInterfaceCorelibImports(sb); in EmitInterfaceImports() [all …]
|
/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
D | ast_array_type.cpp | 83 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument 87 …sb.Append(prefix).AppendFormat("if (!WritePodArray(%s, %s, sizeof(%s), %s)) {\n", parcelName.c_str… in EmitCWriteVar() 89 sb.Append(prefix + TAB) in EmitCWriteVar() 91 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 92 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() 93 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 96 sb.Append(prefix).AppendFormat( in EmitCWriteVar() 98 sb.Append(prefix + TAB) in EmitCWriteVar() 100 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 101 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() [all …]
|
D | ast_fd_type.cpp | 66 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument 68 …sb.Append(prefix).AppendFormat("if (!WriteFileDescriptor(%s, %s)) {\n", parcelName.c_str(), name.c… in EmitCWriteVar() 69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar() 70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() 72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 76 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument 79 …sb.Append(prefix).AppendFormat("if (!ReadFileDescriptor(%s, &%s)) {\n", parcelName.c_str(), name.c… in EmitCProxyReadVar() 81 …sb.Append(prefix).AppendFormat("if (!ReadFileDescriptor(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCProxyReadVar() 83 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar() [all …]
|
D | ast_string_type.cpp | 66 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument 68 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteString(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar() 69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar() 70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() 72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 76 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyWriteOutVar() argument 79 sb.Append(prefix).AppendFormat("if (%s == NULL || %s == 0) {\n", name.c_str(), lenName.c_str()); in EmitCProxyWriteOutVar() 80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: %s is invalid\", __func__);\n", name… in EmitCProxyWriteOutVar() 81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyWriteOutVar() [all …]
|
D | ast_union_type.cpp | 32 StringBuilder sb; in Dump() local 33 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump() 34 sb.AppendFormat("union %s {\n", name_.c_str()); in Dump() 37 sb.Append(prefix + " "); in Dump() 38 … sb.AppendFormat("%s %s;\n", std::get<1>(it)->ToString().c_str(), std::get<0>(it).c_str()); in Dump() 41 sb.Append(prefix).Append("};\n"); in Dump() 42 return sb.ToString(); in Dump() 90 StringBuilder sb; in EmitCTypeDecl() local 91 sb.AppendFormat("union %s {\n", name_.c_str()); in EmitCTypeDecl() 96 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCType().c_str(), memberName.c_str()); in EmitCTypeDecl() [all …]
|
D | ast_native_buffer_type.cpp | 61 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCWriteVar() argument 63 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteNativeBufferHandle(%s, %s)) {\n", parcelName.c_st… in EmitCWriteVar() 65 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: failed to write %s\", __func__);\n",… in EmitCWriteVar() 66 sb.Append(prefix + TAB).Append("return HDF_ERR_INVALID_PARAM;\n"); in EmitCWriteVar() 67 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 71 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument 73 sb.Append(prefix); in EmitCProxyReadVar() 75 sb.Append("*"); in EmitCProxyReadVar() 77 sb.AppendFormat("%s = HdfSbufReadNativeBufferHandle(%s);\n", name.c_str(), parcelName.c_str()); in EmitCProxyReadVar() 78 sb.Append(prefix).AppendFormat("if (%s == NULL) {\n", name.c_str()); in EmitCProxyReadVar() [all …]
|
D | ast_struct_type.cpp | 35 StringBuilder sb; in Dump() local 36 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump() 37 sb.AppendFormat("struct %s {\n", name_.c_str()); in Dump() 40 sb.Append(prefix + " "); in Dump() 41 … sb.AppendFormat("%s %s;\n", std::get<1>(it)->ToString().c_str(), std::get<0>(it).c_str()); in Dump() 44 sb.Append(prefix).Append("};\n"); in Dump() 45 return sb.ToString(); in Dump() 93 StringBuilder sb; in EmitCTypeDecl() local 94 sb.AppendFormat("struct %s {\n", name_.c_str()); in EmitCTypeDecl() 99 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCType().c_str(), memberName.c_str()); in EmitCTypeDecl() [all …]
|
D | ast_enum_type.cpp | 34 StringBuilder sb; in Dump() local 35 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump() 37 sb.AppendFormat("enum %s : %s {\n", name_.c_str(), baseType_->ToString().c_str()); in Dump() 39 sb.AppendFormat("enum %s {\n", name_.c_str()); in Dump() 46 sb.Append(" ").AppendFormat("%s,\n", it->GetName().c_str()); in Dump() 48 … sb.Append(" ").AppendFormat("%s = %s,\n", it->GetName().c_str(), value->Dump("").c_str()); in Dump() 53 sb.Append(prefix).Append("};\n"); in Dump() 55 return sb.ToString(); in Dump() 103 StringBuilder sb; in EmitCTypeDecl() local 104 sb.AppendFormat("enum %s {\n", name_.c_str()); in EmitCTypeDecl() [all …]
|
D | ast_ulong_type.cpp | 67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument 69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint64(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar() 70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar() 71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() 73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument 79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint64(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar() 80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar() 81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar() [all …]
|
D | ast_uchar_type.cpp | 67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument 69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint8(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCWriteVar() 70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar() 71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() 73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument 79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint8(%s, %s)) {\n", parcelName.c_str(), name.c_st… in EmitCProxyReadVar() 80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar() 81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar() [all …]
|
D | ast_ushort_type.cpp | 67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument 69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint16(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar() 70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar() 71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() 73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument 79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint16(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar() 80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar() 81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar() [all …]
|
D | ast_uint_type.cpp | 67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument 69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint32(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar() 70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar() 71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar() 72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar() 73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar() 77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument 79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint32(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar() 80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar() 81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar() [all …]
|