MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / gen_name

Function gen_name

src/gpre/obj_cxx.cpp:2567–2579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2565//
2566
2567static TEXT* gen_name(char* const string, const ref* reference, bool as_blob)
2568{
2569 if (reference->ref_field->fld_array_info && !as_blob)
2570 fb_utils::snprintf(string, MAX_REF_SIZE, "fb_%d",
2571 reference->ref_field->fld_array_info->ary_ident);
2572 else if (reference->ref_port)
2573 fb_utils::snprintf(string, MAX_REF_SIZE, "fb_%d.fb_%d",
2574 reference->ref_port->por_ident, reference->ref_ident);
2575 else
2576 fb_utils::snprintf(string, MAX_REF_SIZE, "fb_%d", reference->ref_ident);
2577
2578 return string;
2579}
2580
2581
2582//____________________________________________________________

Callers 15

asgn_fromFunction · 0.70
asgn_toFunction · 0.70
asgn_to_procFunction · 0.70
gen_at_endFunction · 0.70
gen_blob_openFunction · 0.70
gen_emodifyFunction · 0.70
gen_event_initFunction · 0.70
gen_fetchFunction · 0.70
gen_forFunction · 0.70
gen_functionFunction · 0.70
gen_get_or_put_sliceFunction · 0.70
gen_loopFunction · 0.70

Calls 1

snprintfFunction · 0.50

Tested by

no test coverage detected