MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / AST_ShallowCopy

Function AST_ShallowCopy

src/ast/ast.c:491–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491AST *AST_ShallowCopy
492(
493 AST *orig
494) {
495 AST_IncreaseRefCount(orig);
496 size_t ast_size = sizeof(AST);
497 AST *shallow_copy = rm_malloc(ast_size);
498 memcpy(shallow_copy, orig, ast_size);
499 return shallow_copy;
500}
501
502inline bool AST_AliasIsReferenced
503(

Callers 2

ExecutionCtx_CloneFunction · 0.85
_ClonePlanInternalsFunction · 0.85

Calls 2

AST_IncreaseRefCountFunction · 0.85
rm_mallocFunction · 0.85

Tested by

no test coverage detected