MCPcopy Create free account
hub / github.com/apache/cloudberry / new_variable

Function new_variable

src/interfaces/ecpg/preproc/variable.c:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7static struct variable *allvariables = NULL;
8
9struct variable *
10new_variable(const char *name, struct ECPGtype *type, int brace_level)
11{
12 struct variable *p = (struct variable *) mm_alloc(sizeof(struct variable));
13
14 p->name = mm_strdup(name);
15 p->type = type;
16 p->brace_level = brace_level;
17
18 p->next = allvariables;
19 allvariables = p;
20
21 return p;
22}
23
24static struct variable *
25find_struct_member(char *name, char *str, struct ECPGstruct_member *members, int brace_level)

Callers 2

find_struct_memberFunction · 0.85
find_variableFunction · 0.85

Calls 2

mm_allocFunction · 0.85
mm_strdupFunction · 0.85

Tested by

no test coverage detected