MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / php_binding_identity

Function php_binding_identity

src/pipeline/pass_pkgmap.c:2858–2866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2856}
2857
2858static bool php_binding_identity(yyjson_val *value, const CBMImport *imp) {
2859 yyjson_val *kind = yyjson_obj_get(value, "kind");
2860 yyjson_val *def = yyjson_obj_get(value, "is_default");
2861 return yyjson_is_obj(value) && yyjson_obj_size(value) == 5 && yyjson_is_int(kind) &&
2862 yyjson_get_int(kind) == (int)imp->kind && yyjson_is_bool(def) &&
2863 yyjson_get_bool(def) == imp->is_default &&
2864 php_json_string_eq(yyjson_obj_get(value, "local_name"), imp->local_name) &&
2865 php_json_string_eq(yyjson_obj_get(value, "module_path"), imp->module_path);
2866}
2867
2868static bool php_json_add_string(yyjson_mut_doc *doc, yyjson_mut_val *obj, const char *key,
2869 const char *text) {

Callers 1

Calls 1

php_json_string_eqFunction · 0.85

Tested by

no test coverage detected